- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How can I execute script as an administrator?
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
How can I execute script as an administrator?
Hi,
I have some trouble with executing script with InstallScript project.
I am using InstallShiedl 2020 Professional and I put some script into InstallScript project.
And I need to execute some part of script with an authority of administrator.
Please share any idea regarding my issue.
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @phreeman ,
What are you trying to execute as administrator? Is it an executable? If so, you can use LaunchAppAndWait, and specify LAAW_SHELLEXECUTEVERB = "runas" before running LaunchAppAndWait. I haven't tried this, but hopefully this gets you some information to get you started.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
You can use "LAAW_SHELLEXECUTEVERB=runas" at the beginning of your script, so that your script will run as administrator, Please refer below help link
https://docs.revenera.com/installshield26helplib/LangRef/LAAW_SHELLEXECUTEVERB.htm