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.
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
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