Skip to content
⌘ NSIS Forum Archive

Help! problem abou install on vista

7 posts

kinki kids#

Help! problem abou install on vista

My program need a dirver to run, so it must run as a administrator, but how can i set my program "run this program as a administrator"?

Does NSIS support this function?

ths
onad#
Make sure you use NSIS version v2.22 or higher and then add the line blow to your script...

RequestExecutionLevel admin

For the rest, see your own quote 😉
kinki kids#
RequestExecutionLevel admin

using this command can elevate setup.exe's privileges really, but can't elevate my program.

After installed, it can't run unless manually enable the option of "Run as a administrator".
kichik#
Embed a manifest in your program as well. For more details, see MSDN.

Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.
o_owd#
Just to be sure,

If I use "RequestExecutionLevel admin" I do not need the .manifest file anymore ? I am talking about the setup file made in NSIS, not the program it installs.

Thanks.