The problem is getting the installer to consider AdminUser only when the OS is Windows 2008 R2 And not to consider it on any other OS.
If a user runs this install on Windows 2008 R2 and they are not "running as Administrator", then I want an error to come up and say You need to be an administrator. Ideally they would run this install from inside a command prompt window that is running as administrator. If a user runs this install on any other OS .. just proceed with the install, don't bother with the "running as Administrator" check. -----Original Message----- From: Jeremy Farrell [mailto:jfarr...@pillardata.com] Sent: Tuesday, March 15, 2011 5:12 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] One install for multiple OS And the problem is? > From: Robert Hermann [mailto:rob.herm...@nicewareintl.com] > > I've got an install for a backend service that needs to > consider a couple of OS and then scenarios within that os. > > For the time being I need my project to first detect the os > and if its not at least Windows 2003, to throw an error. > > If its Windows 2008 R2, then the install needs to detect if > its being run from a Administrator command prompt or not. If > its not, say something. > > I can the logic to work if its either or but not together ... > > Right now I've got > > <!-- first make sure the platform is at least win 2003 --> > <Condition Message='Your operating system must be Windows > 2003 or greater'><![CDATA[VersionNT >= 502]]></Condition> > > <!-- if the platform is win 2008 R2 then check for an > administrator level --> > <Condition Message='You must be an administrator to > execute to this'><![CDATA[VersionNT >= 601 and > AdminUser]]></Condition> > > Rob ------------------------------------------------------------------------------ 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