Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

UAC, Shield Icons, and setup programs

Closed Thread
 
Thread Tools Display Modes
Old 03-08-2007   #1 (permalink)
Anthony Wieser
Guest


 

UAC, Shield Icons, and setup programs

How does Vista decide that a program is a setup program, and requires
elevation?

I have some installers that don't actually require elevation, yet they're
marked with the little shield icon. Is there a description anywhere of what
actually causes elevation? I can't find an explicit list, and have spent
days searching Google, msdn, and live.com, to no avail.

Does the OS look at the import table for a specific call, is there some
other signature algorithm at work here.

--
Anthony Wieser
Wieser Software Ltd

Old 03-08-2007   #2 (permalink)
DevilsPGD
Guest


 

Re: UAC, Shield Icons, and setup programs

In message <OENVv#VYHHA.688@TK2MSFTNGP03.phx.gbl> "Anthony Wieser"
<newsgroups-sansspam@wieser-software.com> wrote:

>How does Vista decide that a program is a setup program, and requires
>elevation?
>
>I have some installers that don't actually require elevation, yet they're
>marked with the little shield icon. Is there a description anywhere of what
>actually causes elevation? I can't find an explicit list, and have spent
>days searching Google, msdn, and live.com, to no avail.
>
>Does the OS look at the import table for a specific call, is there some
>other signature algorithm at work here.


If the file has a manifest that specifies it's requirements, Vista
honours that. Otherwise, any EXE with "setup" or "update" or a few
other keywords will be elevated, as will an MSI.
--
Insert something clever here.
Old 03-08-2007   #3 (permalink)
Dave R.
Guest


 

Re: UAC, Shield Icons, and setup programs


"DevilsPGD" <spam_narf_spam@crazyhat.net> wrote in message
news:i5lvu2tj0bq4oj8nbl88ier66029djb1do@4ax.com...
> In message <OENVv#VYHHA.688@TK2MSFTNGP03.phx.gbl> "Anthony Wieser"
> <newsgroups-sansspam@wieser-software.com> wrote:
>
>>How does Vista decide that a program is a setup program, and requires
>>elevation?
>>
>>I have some installers that don't actually require elevation, yet
>>they're
>>marked with the little shield icon. Is there a description anywhere
>>of what
>>actually causes elevation? I can't find an explicit list, and have
>>spent
>>days searching Google, msdn, and live.com, to no avail.
>>
>>Does the OS look at the import table for a specific call, is there
>>some
>>other signature algorithm at work here.

>
> If the file has a manifest that specifies it's requirements, Vista
> honours that. Otherwise, any EXE with "setup" or "update" or a few
> other keywords will be elevated, as will an MSI.


Does anyone know what the full list of keywords is? It would be nice to
know so I can tell our developers to avoid them.

Regards,

Dave


Old 03-08-2007   #4 (permalink)
DevilsPGD
Guest


 

Re: UAC, Shield Icons, and setup programs

In message <45f008e0$0$97215$892e7fe2@authen.yellow.readfreenews.net>
"Dave R." <dwragle at drbsystems dot com> wrote:

>Does anyone know what the full list of keywords is? It would be nice to
>know so I can tell our developers to avoid them.


I could swear one of our devels email me the list, but I can't find it
at the moment -- Take a stab at MSDN though...
--
Insert something clever here.
Old 03-09-2007   #5 (permalink)
Anthony Wieser
Guest


 

Re: UAC, Shield Icons, and setup programs


"DevilsPGD" <spam_narf_spam@crazyhat.net> wrote in message
news:i5lvu2tj0bq4oj8nbl88ier66029djb1do@4ax.com...
> In message <OENVv#VYHHA.688@TK2MSFTNGP03.phx.gbl> "Anthony Wieser"
> <newsgroups-sansspam@wieser-software.com> wrote:
>
>>How does Vista decide that a program is a setup program, and requires
>>elevation?
>>
>>I have some installers that don't actually require elevation, yet they're
>>marked with the little shield icon.


> If the file has a manifest that specifies it's requirements, Vista
> honours that.


So can I put a manifest in the same folder as a program to state that it
doesn't require elevation? Otherwise, I assume that I need to use the
manifest tool mt to embed the manifest in the exe?

I found some information here:
http://msdn2.microsoft.com/en-us/library/aa905330.aspx
and here:
http://msdn2.microsoft.com/en-us/library/aa480150.aspx

that might be useful to someone else.

> Otherwise, any EXE with "setup" or "update" or a few
> other keywords will be elevated, as will an MSI.

--
Anthony Wieser
Wieser Software Ltd

Old 03-09-2007   #6 (permalink)
Dave R.
Guest


 

Re: UAC, Shield Icons, and setup programs


"DevilsPGD" <spam_narf_spam@crazyhat.net> wrote in message
news:vvh1v2dpqbv0pfgdkd1btbrmmjhl51l0sl@4ax.com...
> In message <45f008e0$0$97215$892e7fe2@authen.yellow.readfreenews.net>
> "Dave R." <dwragle at drbsystems dot com> wrote:
>
>>Does anyone know what the full list of keywords is? It would be nice
>>to
>>know so I can tell our developers to avoid them.

>
> I could swear one of our devels email me the list, but I can't find it
> at the moment -- Take a stab at MSDN though...


The only good resource I could find in MSDN was in the MS paper "Windows
Vista Application Development Requirements for User Account Control
Compatibility" which says:

> Installer Detection only applies to:
> 1. 32-bit executables
> 2. Applications without a requestedExecutionLevel
> 3. Interactive processes running as a standard user with UAC enabled
>
> Before a 32-bit process is created, the following attributes are
> checked to determine whether it is an installer:
> . Filename includes keywords like "install," "setup," "update," etc.
> . Keywords in the following Versioning Resource fields: Vendor,
> Company Name, Product Name, File Description, Original Filename,
> Internal Name, and Export Name.
> . Keywords in the side-by-side application manifest embedded in the
> executable.
> . Keywords in specific StringTable entries linked in the executable.
> . Key attributes in the resource file data linked in the executable.
> . Targeted sequences of bytes within the executable.
>
> Note
> The keywords and sequences of bytes were derived from common
> characteristics observed from various installer technologies.


Now, a couple of questions come to mind. First, is the list an English
language only list, or does the list contain entries from various
languages. Second, what about the "etc."? I still don't have anything
I can take to our development meetings. <sigh>

I'd really like someone from MS to step up here and clear this up, but I
won't hold my breath.

Regards,

Dave


Old 03-12-2007   #7 (permalink)
Antoine Leca
Guest


 

Re: UAC, Shield Icons, and setup programs

Dave R. wrote:
> "Windows Vista Application Development Requirements for User Account
> Control Compatibility" which says:
>> Before a 32-bit process is created, the following attributes are
>> checked to determine whether it is an installer:
>> . Filename includes keywords like "install," "setup," "update," etc.

>
> Now, a couple of questions come to mind. First, is the list an
> English language only list, or does the list contain entries from
> various languages.


IANAMD (... MS developper), so this is just a guess.

Given that the trend is toward MUI technology (one-binary-fits-all, and the
localized content is separated into .mui files which are distributed
separately), I guess the list embedded should include the name for any
language. It makes sense as well, since nothing should prevent say a German
to install a program in her mothertongue on an English-speaking computer.

I notice also that with "instal", you're covering a good number of Romance
language, French Installer, Spanish Instalar, Catalan Instal·lació, etc.

(And yes I am hoping "install", with 2 l's, is a typo or more precisely a
defect introduced into the Word document by the cute AutoCorrect
technology...)


Antoine

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
running programs launches office setup thedicemaster Vista security 0 01-23-2008 04:12 PM
Something you should reflect regarding finishing setup programs Hansjörg Vista security 1 01-19-2008 05:53 AM
Vista places a shield in the lower right corner of some application icons - What is it? Sarah M. Weinberger Vista General 2 12-31-2007 12:30 AM
Desktop Icons for programs are wrong J Vista General 3 09-27-2007 09:18 PM
Why some exe's have shield icons and others don't? Cat Vista General 8 04-03-2007 05:22 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50