How to elevate UAC for the application?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?WVhR?=

    How to elevate UAC for the application?

    In Vista, startup an application that need to elevate UAC power, there are
    two kinds dialog box:
    1. this application need to permission to contine.
    2. Unknow application to access your computer.

    I know how to do for the second way, embed the xml code below, but how to
    do for the first way? thank you

    <?xml version="1.0" encoding="UTF-8" standalone="yes "?>

    <assembly xmlns="urn:sche mas-microsoft-com:asm.v1" manifestVersion ="1.0">
    <description>Yo urAppName Application</description>

    <!-- Identify the application security requirements. -->
    <trustInfo xmlns="urn:sche mas-microsoft-com:asm.v2">
    <security>
    <requestedPrivi leges>
    <requestedExecu tionLevel level="requireA dministrator"
    uiAccess="false "/>
    </requestedPrivil eges>
    </security>
    </trustInfo>
    </assembly>


  • Phill W.

    #2
    Re: How to elevate UAC for the application?

    YXQ wrote:
    In Vista, startup an application that need to elevate UAC power, there are
    two kinds dialog box:
    1. this application need to permission to contine.
    2. Unknow application to access your computer.
    >
    I know how to do for the second way, embed the xml code below, but how to
    do for the first way?
    Short answer - you need to Digitally Sign your code.

    More fully:
    (taken from: http://technet.microsoft.com/en-gb/m.../cc138019.aspx)

    (Search for "Figure 11"; it's just below there)
    If an image is a Windows component digitally signed by Microsoft
    and the image is in the Windows system directory, then the dialog
    displays a blue stripe across the top as shown at the top of Figure
    11. ...
    .... that's the "Windows" flavour of UAC dialog ...
    ... The gray stripe (middle dialog) is for images that are
    digitally signed by someone other than Microsoft, ...
    .... that's the "A program needs ..." version ...
    ... and the orange stripe (bottom dialog) is for unsigned images.
    .... and that's the big, nasty, yellow-y, orange-y "An unidentified
    program ..." flavour, that you're getting at the moment.


    Time to go out and sign yourself up for a Digital Certificate, if you
    don't have one already, and start signing your applications.

    HTH,
    Phill W.

    Comment

    Working...