I want to execute ExecWait
in NSIS with admin privileges, I was unable to find any documentation on this issue.
Generally I would recommend that the whole installer should run elevated in a case like this, it makes it clear to the user up-front that elevation is required.
If you cannot do this then you should make sure that the program you want to run requests administrator rights. For this to work you need to launch the program with ExecShell.
If that program does not requests administrator rights you basically have two options:
ExecShell
with the "runas" verb and hope for the best (Fails if the user is not a member of the administrators group, UAC is off or on < Vista)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With