PDA

View Full Version : Set UAC Execution Level in Script



NewsArchive
03-24-2020, 03:38 AM
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.

NewsArchive
03-24-2020, 03:38 AM
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

NewsArchive
03-24-2020, 03:38 AM
Arrghh - as usual --> I was searching in the help for UAC and then stopped
around page 400 :-)

That works perfect!!!!

Thanks,
Hanspeter