![]() |
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 |
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 ;) |
thanks a lot
|
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". |
Embed a manifest in your program as well. For more details, see MSDN.
http://msdn.microsoft.com/library/en...asp?frame=true |
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. |
That's correct. That command adds the manifest.
|
| All times are GMT. The time now is 04:35. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.