Expires Property

Returns or sets the number of days before the package expires.

Syntax

object.Expires

The object is an expression that evaluates to a Package object. The property value is a number that specifies the number of days before the package expires. A value of zero indicates that no expiration period has been specified for this package file.

Remarks

Once a package has expired, it cannot be opened or applied on a target system. Along with protecting the package with a password, this provides a mechanism for controlling the distribution of the package.