Archive: How to spawn a Runas dialog,if My installer was not run as a administrator


How to spawn a Runas dialog,if My installer was not run as a administrator
Thank you.


Show some respect to people you ask for help and write your question in the message body!


Originally posted by v_automation
Show some respect to people you ask for help and write your question in the message body!
I am sorry.My installer want administrator privalige.Then I means I want to spawn a Secondary Logon install process when I detected that the current user is not a administrator.Just as "Run As".I am search the web and the forum.But can't get any tip about it.

Thank you for your reply.

There is http://nsis.sourceforge.net/NSIS-RunAs and the UAC plugin. You can check with the UserInfo plugin and tell the user to restart your installer as admin, and you have RequestExecutionLevel on Vista


Thank you for rapid reply.

Originally posted by Anders
There is http://nsis.sourceforge.net/NSIS-RunAs and the UAC plugin. You can check with the UserInfo plugin and tell the user to restart your installer as admin, and you have RequestExecutionLevel on Vista
Thank you very much.I download the plug in and may try it.
Or I will create a plugin to do it .Thank you.