Platform SDK: Transaction Server |
[This product will work only on Windows NT 4.0 versions and earlier. For Windows 2000 and later, see COM+ (Component Services).]
Installs a component or components that are valid within a package's collection.
Syntax
object.InstallPackage(FileName, InstallPath, options)
Parameters
object
Required. An object variable that evaluates to a Package utility object.
FileName
Required; String. String expression evaluating to the name of the package to install.
InstallPath
Required; String. String expression evaluating to the install path for component files.
options
Required; Long. A long value specifying install options. This parameter can be 0 or mtsInstallUsers, which adds users saved in the package file. If this option is not specified, users saved in the package file are not installed.
Remarks
All component files must be in the same directory of the package file. Component files arecopied to the install path specified as an argument of the InstallPackage method.
The changes are applied immediately to the catalog.
For a description of the Components collection and its associated properties, see the Using MTS Collections topic..