I want to execute ExecWait in NSIS with admin privileges, I was unable to find any documentation on this issue.
I want to execute ExecWait in NSIS with admin privileges, I was unable to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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:
ExecShellwith 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)