If you are an administrator and you install the MSI then it will elevate when it goes to the InstallExecuteSequence (and work!) while the UI sequence runs as standard user. If it's failing even though you are an administrator then you are perhaps installing something from the UI sequence. If this is the case, you're really doing the wrong thing, but you fix it by getting the UI sequence to run as administror with an elevated launcher or Run As.
Phil Wilson -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gareth at Serif Sent: Monday, February 26, 2007 5:48 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] How to force the .msi "run as Administrator" You need to make sure that your bootstrapper has one of the magical Vista strings within it like "setup" or "install". This will instantly elevate the priveledges within Vista unless it has a corresponding Manifest file telling it not to. I get the impression that you're calling the MSI file directly and I was under the impression that this was equally magical on Vista. Try adding "setup" to the name of your MSI though - so if you're running myapp.msi, try calling it myapp-setup.msi and see if Vista catches it and elevates the permissions. If you have UAC switched on you should get a different, more-friendly UAC warning. Regards, Gareth Xin Liu (Person Consulting) wrote: > > We have a .msi file built from Wix toolset which calls one of the VS > SDK tool. So if the .msi is ran in Vista, even if you are a member of > Administrator group, it will failed. However, if run it "as Administrator" > (Right click cmd.exe, choose "Run as Administrator", then call the > .msi from the cmd.exe), operation succeed. > So is there a method in Wix to force run the .msi as Administrator. > > Thanks, > Xin Liu > > ---------------------------------------------------------------------- > --- Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV > DEV _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://www.nabble.com/How-to-force-the-.msi-%22run-as-Administrator%22-t f3292742.html#a9159071 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users