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=DEVDEV
> _______________________________________________
> 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-tf3292742.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=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to