sponsored ads

How can NSIS set "run this program as administrator

sponsored ads

I need NSIS to set "run this program as administrator" on some of the files being installed by the installer.
anyone know how to do? thanks Asked Feb, 10 2011
add commentflag 

sponsored ads

answer this question

it is easy.right click the program icon while pressing SHIFT key,then u can see run as administrator

Answered Sep, 10 2010
vote up 1 vote down

Well, please follow this way to do that:
1.Log in as a user with local administrative privileges.
2.Right click on the application shortcut and select Properties.
3.In the Properties window, click on the Advanced… button near the bottom.


4.Check off the Run as administrator box.


5.close the Advanced Properties box by clicking on the OK button.
6.Close the Properties box by clicking on the OK button.
The next time that you run the application from the modified shortcut, it will run with administrative privileges.

The source:http://dailycupoftech.com/2007/08/14/run-a-program-as-administrator-automatically-in-vista/ Answered May, 05 2011
vote up 1 vote down

Unfortunately, no. A running process cannot be elevated to administrator privileges. I'm looking for a more authoritative source, but for now I have found:

  1. "Programs can't be elevated once they've already been launched..."

  2. "Code can only be elevated at process level when startup, which means that a running process cannot be elevated."

Answered Aug, 06 2010
vote up 1 vote down

Your Answer

community wiki:

The Verified Code is to stop spamming. It will be hidden once your reputation reached 100.
or
Create one

Options

sponsored ads

Download related software from AFC

Set as wallpaper 1.01

Last Updated: Oct 3, 2011
License:
Filesize: 109KB

Continue to downloadPower by Afreecodec.com