title: VBS uninstall application
body: <p>I am trying to get a VBS script together to use as a startup script to uninstall Silverlight if it is a version under 5, but my code keeps giving me a type mismatch when trying to compare the value. </p>
  
  <p>The version is 5.1.10411.0. How do I compare this value to a integer value?</p>
  
  <pre><code>strComputer = "." 
  Set objWMIService = GetObject("winmgmts:\\" &amp; strComputer &amp; "\root\CIMV2") 
  Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Product WHERE Caption = 'Microsoft Silverlight'") 
  Dim item
  For each item in colItems
      prodVer = item.Version
  Next
  If prodVer &lt; 5 Then
      set WshShell = CreateObject("WScript.Shell")
          set oExec = WshShell.Exec("wmic product where caption='Microsoft Silverlight' call uninstall")
  End If
  </code></pre>