Changes

Jump to: navigation, search

Check Version (Windows)

151 bytes added, 07:38, 23 March 2016
from wpkg package
<!-- windows 8 -->
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion" value="6.2" />
<!-- windows 10 8.1 -->
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion" value="6.3" />
<!-- windows 10 -->
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion" value="10.0" />
</source>
This apporach approach can be used to limit a package to certain versions of windows; for example Windows7 already has Internet Explorer 8 installed, so to use a package in a mixed environment with xp and windows7 you could write a check like this:
<source lang="xml">
<check type="logical" condition="or">
11
edits

Navigation menu