cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
COSMED
Level 4

launch program as administrator

Hello,

I use LaunchAppAndWait and I set before laaw_shallexecuteverb as "runas".
My problem is that, during installation, this produce a trigger a User Account Control (UAC) prompt for consent or credentials. Is there a way to avoid this?

Thank you in advance for your reply
Labels (1)
0 Kudos
(4) Replies
J_anitha
Level 8

Are you trying to launch a program from system folder?
0 Kudos
COSMED
Level 4

Thank you J_anitha for your reply.

I launch the program from system folder. Is this the problem?
0 Kudos
J_anitha
Level 8

You can try adding the program under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags, with RUNASADMIN value, just before launching it with LaunchApp API.
0 Kudos
Christoph
Level 8

if the main program, the setup program is launched with admin rights, so will be the child process(without the need to do something extra).
0 Kudos