Changes

Jump to: navigation, search

Identify Client Form Factor

2 bytes added, 01:42, 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">
<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\NECxxxxx\wpkg\ChassisType" value="Desktop" /> <check type='registry' condition='exists' path="HKLM\Software\NECxxxxx\wpkg\ChassisType" value="Other" /> <check type='registry' condition='exists' path="HKLM\Software\NECxxxxx\wpkg\ChassisType" value="Unknown" />
</check>
</source>
41
edits

Navigation menu