Page 1 of 1

Install as Administrator

Posted: Fri Oct 23, 2009 4:45 pm
by staylor
I'm curious if it's possible to have the installer run as the Administrator during installation by having the account and password embedded into the installer so that a guest account could run the install.

This would be helpful for allowing any user to install a small app on their machines if the installer had a domain account/password embedded and could escalate itself when run.

Posted: Sat Oct 24, 2009 3:46 pm
by neillans
Afraid this is not possible.

You would need a script to call a RunAs type command on the client -- this functionality is not part of the bootstrapper.

Posted: Mon Oct 26, 2009 6:48 am
by StyX
I guess you might be able to do this by creating "two installers". Where the first one only contains a Run As statement (just remove all the other code shown in the MSIcode tab), and have that execute the second installer which will install the app under the privileges supplied in the Run As statement.

I haven't tested it myself.