Public Attributes | List of all members
Wix::Extensions::SystemTools::CompareVersion Class Reference

Public Attributes

string Id
 
string InstalledVersion
 
string MinimumVersion
 
string MaximumVersion
 
string Property
 

Detailed Description

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.

Example:
The following example uses a registry search to get the version of an installed program, then uses SystemTools::CompareVersion to check that a suitable version is installed.
<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>

Member Data Documentation

string Wix::Extensions::SystemTools::CompareVersion::Id

Identifier for the version compare (primary key).

string Wix::Extensions::SystemTools::CompareVersion::InstalledVersion

The version to be checked

string Wix::Extensions::SystemTools::CompareVersion::MaximumVersion

The maximum version.

string Wix::Extensions::SystemTools::CompareVersion::MinimumVersion

The minimum version.

string Wix::Extensions::SystemTools::CompareVersion::Property

The property to be set if the installed version lies between the minimum and maximum versions.


The documentation for this class was generated from the following file:


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com