Version Property

Return or set the version information for the current package.

Syntax

object.Version [= value]

The Version property syntax has the following parts:

Part Description
object An object expression that evaluates to a Package object.
value A string which specifies the current package version. See the Remarks section for information on how the version string should be formatted.

Remarks

The package version consists of two 32-bit values, a most significant version number and a least significant version number. The high word of the most significant version number is typically considered to be the major version, while the low word is the minor version. The least significant version number is commonly the build number. For example, if the most significant version number has a value of 65568 (10020h) and the least significant version has a value of 1225 (4C9h), it would be considered to be Version 1.20 Build 1225.

The Version property returns the version information as a string, consisting of four values separated by periods. Using the above example, the property would return the string "1.20.0.1225". To change the package version, set the property to a string value using the same format. It is not required that all four values be specified. For example, setting the property to a value of "1.30" is valid, and would set only the most significant portion of the version.

If no version has been set for the current package, this property will return an empty string. To remove the version number from the package, set the property to an empty string.

See Also

Information Property