Classification: Public Check the NTProductType - numeric product type from OS version information. private const int VER_NT_WORKSTATION = 1; private const int VER_NT_DOMAIN_CONTROLLER = 2; private const int VER_NT_SERVER = 3; private const int VER_SUITE_SMALLBUSINESS = 1; private const int VER_SUITE_ENTERPRISE = 2; private const int VER_SUITE_TERMINAL = 16; private const int VER_SUITE_DATACENTER = 128; private const int VER_SUITE_SINGLEUSERTS = 256; private const int VER_SUITE_PERSONAL = 512; private const int VER_SUITE_BLADE = 1024;
Steve -----Original Message----- From: Sam Boman [mailto:s...@samb.se] Sent: April-25-13 7:18 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Bundle - NET4.5 - WinXP(and other unsupported OS'es) Using the: <Bundle Condition=" (VersionNT = v6.0 AND ServicePackLevel >= 2) OR (VersionNT = v6.1 AND ServicePackLevel >= 1) OR (VersionNT >= v6.2)" To filter out the specifications of .NET 4.5. *Supported operating systems: *Windows 7 Service Pack 1, Windows Server 2008 R2 SP1, Windows Server 2008 Service Pack 2, Windows Vista Service Pack 2 The Operating System Property Values at: http://msdn.microsoft.com/en-US/library/aa370556.aspx .NET 4.5 can run on: Windows 7 (v6.1 and SP1) and also Windows Server 2008 R2 (v6.1 without any SP). This condition matches Windows 7: (VersionNT = v6.1 AND ServicePackLevel >= 1) But how to match the Windows Server 2008 R2, as it have got the same VersionNT set, but no ServicePackLevel. Thanks, Sam On Thu, Apr 25, 2013 at 9:41 AM, Sam Boman <s...@samb.se> wrote: > I ask the same thing, any examples of the: "Bundle/@Condition attribute" > > //Sam > > > On Wed, Apr 24, 2013 at 3:41 PM, Nick Miller > <nmil...@livetechnology.com>wrote: > >> Is there anywhere where I can see an example of this? I tried using >> the same condition I have for .Net 4.5 and it still skips the prereq >> and tries to run the BA. Also, what is the correct syntax for the >> BootstrapperCore.config for .Net 4.5? If I use '<supportedFramework >> version="v4.5" />' the BA fails to load. >> >> >> -----Original Message----- >> From: Rob Mensching [mailto:r...@robmensching.com] >> Sent: Wednesday, April 24, 2013 8:25 AM >> To: General discussion for Windows Installer XML toolset. >> Subject: Re: [WiX-users] Bundle - NET4.5 - WinXP(and other >> unsupported >> OS'es) >> >> Use the Bundle/@Condition attribute. It was designed for this scenario. >> >> >> On Wed, Apr 24, 2013 at 3:25 AM, Sam Boman <s...@samb.se> wrote: >> >> > Hello, >> > >> > Today we have a bootstrapper, taking care of first installing .NET >> > 4.5, and then the MSI with the application. If the user runs >> > Windows XP, or any OS/Sp-levels not supported by .NET 4.5 the >> > installation fails with a error-code. >> > >> > How do I add a condition in the beginning of the bootstrapper, that >> > checks if the conditions for .NET 4.5 are met? I don't want the >> > .NET >> > 4.5 to first download and then notify the user about the >> incompatibility. >> > >> > Regards, >> > Sam >> > >> > ------------------------------------------------------------------- >> > --- >> > -------- Try New Relic Now & We'll Send You this Cool Shirt New >> > Relic is the only SaaS-based application performance monitoring >> > service that delivers powerful full stack analytics. Optimize and >> > monitor your browser, app, & servers with just a few lines of code. >> > Try New Relic and get this awesome Nerd Life shirt! >> > http://p.sf.net/sfu/newrelic_d2d_apr >> > _______________________________________________ >> > WiX-users mailing list >> > WiX-users@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/wix-users >> > >> > >> >> --------------------------------------------------------------------- >> --------- Try New Relic Now & We'll Send You this Cool Shirt New >> Relic is the only SaaS-based application performance monitoring >> service that delivers powerful full stack analytics. Optimize and >> monitor your browser, app, & servers with just a few lines of code. >> Try New Relic and get this awesome Nerd Life shirt! >> http://p.sf.net/sfu/newrelic_d2d_apr >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> >> >> >> --------------------------------------------------------------------- >> --------- Try New Relic Now & We'll Send You this Cool Shirt New >> Relic is the only SaaS-based application performance monitoring >> service that delivers powerful full stack analytics. Optimize and >> monitor your browser, app, & servers with just a few lines of code. >> Try New Relic and get this awesome Nerd Life shirt! >> http://p.sf.net/sfu/newrelic_d2d_apr >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> > > ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users This message has been marked as Public by Steven Ogilvie on April-25-13 8:31:08 AM. The above classification labels were added to the message by TITUS Message Classification. For more information visit www.titus.com. ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users