C# Class WixSharp.VersionRange

This class represents a range of product versions. It is designed to be used for Major/Minor upgrade scenarios in conjunction with Upgrade strategy classes (e.g. MajorUpgradeStrategy).

Version is represented as a string to allow for predefined value %this%, which means "version of the product MSI being built".

This class includes predefined ranges for common upgrade scenarios.

ファイルを表示 Open project: Eun/WixSharp

Public Properties

Property Type Description
IncludeMaximum bool
IncludeMinimum bool
Maximum string
MigrateFeatures bool?
Minimum string
NewerThanThis VersionRange
OlderThanThis VersionRange
ThisAndNewer VersionRange
ThisAndOlder VersionRange

Property Details

IncludeMaximum public_oe property

Indicates if version range includes Maximum value.
public bool IncludeMaximum
return bool

IncludeMinimum public_oe property

Indicates if version range includes Minimum value.
public bool IncludeMinimum
return bool

Maximum public_oe property

Maximum value of the Version range.

If "%this%" is used the Maximum value will set to the version of the product MSI being built.

public string Maximum
return string

MigrateFeatures public_oe property

Set to true to migrate feature states from upgraded products by enabling the logic in the MigrateFeatureStates action
public bool? MigrateFeatures
return bool?

Minimum public_oe property

Minimum value of the Version range.

If "%this%" is used the Minimum value will set to the version of the product MSI being built.

public string Minimum
return string

NewerThanThis public_oe static_oe property

Predefined "open ended" range between version of the product MSI being built (exclusive) and any newer version.
public static VersionRange,WixSharp NewerThanThis
return VersionRange

OlderThanThis public_oe static_oe property

Predefined range of versions between 0.0.0.0 (inclusive) and the version of the product MSI being built (exclusive).
public static VersionRange,WixSharp OlderThanThis
return VersionRange

ThisAndNewer public_oe static_oe property

Predefined "open ended" range between version of the product MSI being built (inclusive) and any newer version.
public static VersionRange,WixSharp ThisAndNewer
return VersionRange

ThisAndOlder public_oe static_oe property

Predefined range of versions between 0.0.0.0 (inclusive) and the version of the product MSI being built (inclusive).
public static VersionRange,WixSharp ThisAndOlder
return VersionRange