title: Windows Mobile Cab Setup to detect .NET CF 3.5 and Install It
body: <p>I have developed windows mobile 6 professional application using targeted framework as .NET CF 3.5 and professional 6 SDK. Also created its SmartDeviceCab file. When I install it on device not having CF 3.5 it fails to run my application (because the device has .NET CF 2.0). 
  Now I know that I must have NET CF 3.5 on the device where I want to run my app.
  How can I detect the current version of CF and install(if required) CF 3.5 from my cab setup. I have explored and gone through much on Setup.dll but its too old way and I didn't find way to run cab file from my Setup.dll. Please help me to find the solution. Would be grateful if link/sample code provided. More frustrating is, I never touched VC++.</p>
  
  <p>I have gone through:
  <a href="https://stackoverflow.com/questions/686651/detecting-if-the-compact-framewok-is-installed-on-mobile-device">Detecting if the Compact Framewok is installed on mobile device</a> and its links.</p>
  
  <p>Shailesh K.</p>