Public Attributes | |
string | Id |
string | InstalledVersion |
string | MinimumVersion |
string | MaximumVersion |
string | Property |
May be nested under Product, Module, Fragment. The extension provides a simple method of correctly comparing two versions in dotted form. It sets a property if the version is between the minimum and maximum versions.
<Wix ... xmlns:AppSecIncSystemTools="http://schemas.appsecinc.com/wix/SystemToolsExtension"> <Product ...> ... <Property Id="PROGRAM_VERSION"> <RegistrySearch Id='RegistrySearchProgramVer' Type='raw' Root='HKLM' Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FFFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF}' Name='DisplayVersion' /> </Property> <AppSecIncSystemTools:CompareVersion Id="checkVersion" InstalledVersion="[PROGRAM_VERSION]" MinimumVersion="3.9" Property="ProgramVersionCorrect" /> <Condition Message="Incorrect version!"> ProgramVersionCorrect OR Installed </Condition> ... </Product> </Wix>
Identifier for the version compare (primary key).
The version to be checked
The maximum version.
The minimum version.
The property to be set if the installed version lies between the minimum and maximum versions.
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |