I use the Privileged property in a LaunchCondition to do exactly that Warne & it works without fail. Tested it on XP, XP64, Vista & Vista64 Virtual machines with user accounts which are only members of the "User" group & it always works.
If you're checking during InstallExecute the MSI needs to be elevated at that point otherwise it can't make any per-machine changes so it'll always return true or as Sascha says the machine itself may be the issue. This is one of the things VM's are so good at. See http://www.joyofsetup.com/2007/09/24/test-your-setups-virtually/ Palbinder Sandher Software Deployment & IT Administrator 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: Sascha Beaumont [mailto:sascha.beaum...@gmail.com] Sent: 23 September 2009 01:51 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Vista Standard User and perMachine install >From the documentation: The Privileged property indicates whether the installation is performed in the context of elevated privileges. The installer sets this property if the user has administrator privileges, if the application has been assigned by a system administrator, or if both the user and machine policies AlwaysInstallElevated are set to true. I'd check the MSI logs to see if AlwaysInstallElevated is set true for both machine and user. On Sat, Sep 19, 2009 at 8:30 AM, warne warne <warne...@hotmail.com> wrote: > > Is there a property I could check for that is set when either a XP Limited or Vista Standard user runs my installer? > > I tried 'AdminUser' & 'Privileged but it seems they are always '1' regardless if I run the setup logged in as an administrator or not. > > thanks very much, > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users