Changes

Identify Client Form Factor

1,126 bytes added, 01:36, 11 November 2009
no edit summary
It relies on a vbs script which queries WMI to identify the hardware chassis type then writes the returned value to wherever you specify in the Registry.<br>
 
You will then need to use [[http://wpkg.org/Packages.xml#Check_conditions_.2F_check_type | logical conditions]] to determine if an application target at a specific platform (laptop or desktop for example) is installed. Remember that logical conditions are counter-intuitive, if you want to install an application on a specific platform you check for what your target platform '''isn't'''. <br>
For example:<br>
<source lang="xml">
<!-- The registry checks below mean this package will only run on a laptop as defined by chassistype package
Remember that if any of the check conditions returns true the package is _not_ installed -->
<check type="logical" condition="or">
<check type="uninstall" condition="versionequalorgreater" path="SonicWALL SSL-VPN NetExtender" value="3.5.108" />
<check type='registry' condition='exists' path="HKLM\Software\NEC\wpkg\ChassisType" value="Desktop" />
<check type='registry' condition='exists' path="HKLM\Software\NEC\wpkg\ChassisType" value="Other" />
<check type='registry' condition='exists' path="HKLM\Software\NEC\wpkg\ChassisType" value="Unknown" />
</check>
</source>
Of course be sure to modify the xml and vbs below to your needs.<br>
41
edits