Install as Administrator

Got a problem you cannot solve? Try here.
Post Reply
staylor
Posts: 3
Joined: Sat Sep 19, 2009 9:49 pm

Install as Administrator

Post 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.
neillans
Posts: 536
Joined: Sat Nov 04, 2006 6:21 am
Location: Scottish Borders, UK

Post 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.
Andy Neillans
StyX
Posts: 51
Joined: Fri Apr 11, 2008 7:14 am
Location: Stavanger, Norway
Contact:

Post 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.
Post Reply