Windows Installer should be requesting elevation when it tries to
install your MSI. Have you set InstallPrivileges="elevated" in your
Package Element? Is your MSI per-user or per-machine (InstallScope
attribute of Package Element sets that). I've only used per-machine
packages so if you're trying to author a per-user package you may not be
able to if you want to do stuff like register COM objects.

I've never needed any kludges or fixes even with WiX v2.0 or v3.0 on
Vista with UAC enabled. If you don't sign your MSI's the UAC prompts
will look scary but they should still prompt for elevation.

Palbinder Sandher 
Software Deployment Engineer
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-----Original Message-----
From: Skildum, Mathew [mailto:mathew.skil...@aspect.com] 
Sent: 15 March 2011 16:23
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Windows 7 MSI privileges

You can also force a true Administrator check in you install (set the
property MSIUSEREALADMINDETECTION) if you do not have time to work
around UAC.

Mat Skildum

-----Original Message-----
From: The Eligible Bachelors [mailto:theeligiblebachel...@yahoo.com]
Sent: Tuesday, March 15, 2011 11:04 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Windows 7 MSI privileges

This is mostly a MSI question and not too WiX specific.

I am porting an old WiX (3.0) installer from XP to Windows 7. The
installer needs to be run as an admin because makes several calls to
external programs that need admin privileges (to register COM objects
and such).

Even when I am logged in as an admin, the calls to these external
programs are failing and thus throwing an error at install time in my
MSI. If I run an admin console and launch the MSI, these errors do not
happen, since I guess I am more of an admin then. Googling around says
this is a common problem in Win 7 and Vista and all the fixes seem
cludgy (batch files, registry hacks).

So my question is how do I get around this and why is this not a huge
deal/common problem? It seems that any installer that needs admin
privileges in Windows 7 has to go though hoops.

Microsoft presumably has created this situation in an effort to increase
security. So is there a new workflow I am supposed to be following to
get the same thing done?

And/or is there a known workaround for this in WiX?


      

------------------------------------------------------------------------
------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit for your
organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit for your
organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to