title: CAB project targetting only Windows Mobile 6.1 or 6.5.3 devices - Way to restrict the install?
body: <p>I was looking to create a CAB project in Visual Studio 2008 in order to deploy an application to several Windows Mobile devices. Among those devices, some of them are running Windows Mobile <strong>6.1</strong>, others Windows Mobile <strong>6.5</strong> and the last ones Windows Mobile <strong>6.5.3</strong>.</p>
  
  <p>I want to restrict the possibility to install my CAB to the 6.1 &amp; 6.5.3 terminals, not the 6.5 ones.</p>
  
  <p>I already used in the past CAB projects and so I looked at the property window of my project in order to see if I can set the OS minimum/maximal version or if there was a field to excluse some OS versions. The fields are described here: <a href="http://msdn.microsoft.com/en-us/library/ms228717%28v=vs.90%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms228717%28v=vs.90%29.aspx</a></p>
  
  <p>Especially:</p>
  
  <blockquote>
    <p><strong>OSVersionMax</strong></p>
    
    <p>Specifies the maximum Windows CE operating system version number on
    which the .cab file can be installed. There are several ways to
    determine the operating system version number of a device:</p>
    
    <ul>
    <li>See Operating System Version of Windows Mobile Devices.</li>
    <li>View the About page on the device.</li>
    <li>Programmatically query the device by using OSMajor and OSMinor.</li>
    </ul>
    
    <p><strong>OSVersionMin</strong></p>
    
    <p>Specifies the minimum Windows CE operating system version number on
    which the .cab file can be installed. There are several ways to
    determine the operating system version number of a device:</p>
    
    <ul>
    <li>See Operating System Version of Windows Mobile Devices.</li>
    <li>View the About page on the device.</li>
    <li>Programmatically query the device by using OSMajor and OSMinor.</li>
    </ul>
  </blockquote>
  
  <p>The versions of the OS are based on Windows CE version (<a href="http://msdn.microsoft.com/en-us/library/dd722874%28v=vs.90%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/dd722874%28v=vs.90%29.aspx</a>):</p>
  
  <blockquote>
    <p>Windows Mobile 6.5.3 ==> 5.2.23090</p>
    
    <p>Windows Mobile 6.5 ==> 5.2.21234</p>
    
    <p>Windows Mobile 6.1.4 ==> 5.2.20757</p>
    
    <p>Windows Mobile 6.1 ==> 5.2.19202</p>
  </blockquote>
  
  <p>I can't any solution to generate only 1 CAB compatible with my 6.1 &amp; 6.5.3 but not 6.5.</p>
  
  <p>It seems that I should do 2 CAB, each targeting one version. Any idea?</p>