Results 1 to 3 of 3

Thread: Set UAC Execution Level in Script

  1. #1

    Default Set UAC Execution Level in Script

    Hi Friedrich/everybody,

    I have 2 different setup types (controlled by a custom compiler variable -
    One is for initial Setup with UAC asAdministrator and the other for updates
    with UAC asInvoker)

    Is it possible to set the UAC Execution depending the value of this
    variable?

    Best,
    Hanspeter Stutz
    TUI Suisse Ltd.

  2. #2

    Default Re: Set UAC Execution Level in Script

    Hi Hanspeter,

    > I have 2 different setup types (controlled by a custom compiler
    > variable - One is for initial Setup with UAC asAdministrator and
    > the other for updates with UAC asInvoker)
    >
    > Is it possible to set the UAC Execution depending the value of this
    > variable?

    Please try #pragma

    UACLEVEL - Programmatically set the "UAC Execution Level" Generator Setting.
    Set Value to 1 to define 'asInvoker'. Set Value to 2 to define
    'highestAvailable'. Set Value to 3 to define 'requireAdministrator'.

    Does this work?

    Friedrich

  3. #3

    Default Re: Set UAC Execution Level in Script

    Arrghh - as usual --> I was searching in the help for UAC and then stopped
    around page 400 :-)

    That works perfect!!!!

    Thanks,
    Hanspeter

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •