title: Wix Toolset CustomAction for determining if the OS is windows 7/xp home edition or starter edition and display message for not
body: <p>I am new to Wix Toolset installation. I am using Wix 3.7 and Visual Studio 2010 SP1.</p>
  
  <p>I was going through a tutorial which uses BootStrapper in which there is a conditional Message in Product.Wxs file for checking .NET framework 4.0 is installed there is a PropertyRef Id variable and Condition Message</p>
  
  <pre><code>&lt;PropertyRef Id="NETFRAMEWORK40FULL"/&gt;
  &lt;Condition Message="This application requires .NET Framework 4.0. Please install the .NET Framework then run  
     this installer again."&gt;
    &lt;![CDATA[Installed OR NETFRAMEWORK40FULL]]&gt;
  &lt;/Condition&gt;
  </code></pre>
  
  <p>How can one similarly check for Condition for Windows XP Starter/Home and Windows 7 Starter/Home/Home Premium editions and show conditional message that the installation does not support the OS listed and require Professional Editions.</p>
  
  <p>I have gone through the links on Wixtoolset website, but it didn't help:</p>
  
  <p>Checking Windows Versions
  <a href="http://wixtoolset.org/documentation/manual/v3/howtos/redistributables%5fand%5finstall%5fchecks/block%5finstall%5fon%5fos.html" rel="nofollow">http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/block_install_on_os.html</a></p>
  
  <p><a href="http://msdn.microsoft.com/library/aa370556.aspx" rel="nofollow">http://msdn.microsoft.com/library/aa370556.aspx</a></p>
  
  <p>I have also tried to place the condition in the bootstrapper's Bundle.wxs file as:</p>
  
  <pre><code>&lt;Bundle Name="!(loc.ProductName)" Compressed="yes" Version="1.2.6.0"  
  SplashScreenSourceFile="Resources\SplashScreen.bmp" IconSourceFile="Resources\IXMWeb.ico"  Manufacturer="! 
  (loc.ManufacturerName)" UpgradeCode="FED377E5-8762-48C4-B123-8D4AD89B0222" Condition="((VersionNT &gt;= v5.1) AND 
  (ServicePackLevel &gt;= 3) AND NOT(NTSuitePersonal)) OR ((VersionNT &gt;= v5.2) AND (ServicePackLevel &gt;= 2)) OR 
  (VersionNT &gt;= v6.0 AND NOT(NTSuitePersonal))"&gt;
  </code></pre>
  
  <p>I have gone through the post that I need to use NTSuitePersonal instead of MsiNTSuitePersonal for checking if the edition is Home edition which is being installed.</p>
  
  <p>Please let me know where i am not correct in the above condition used.</p>