InstallPackage Constructor (packagePath, openMode)

DTF API

Copy image CopyHover image
Deployment Tools Foundation InstallPackage Constructor (packagePath, openMode)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstaller.PackageInstallPackageInstallPackage(String, DatabaseOpenMode)
Creates a new InstallPackage object. The file source directory and working directory are the same as the location as the package file.
Declaration Syntax
C# Visual Basic Visual C++ F#
public InstallPackage(
	string packagePath,
	DatabaseOpenMode openMode
)
Public Sub New ( 
	packagePath As String,
	openMode As DatabaseOpenMode
)
public:
InstallPackage(
	String^ packagePath, 
	DatabaseOpenMode openMode
)
new : 
        packagePath : string * 
        openMode : DatabaseOpenMode -> InstallPackage
Parameters
packagePath (String)
Path to the install package to be created or opened
openMode (DatabaseOpenMode)
Open mode for the database

Assembly: Microsoft.Deployment.WindowsInstaller.Package (Module: Microsoft.Deployment.WindowsInstaller.Package.dll) Version: 3.0.0.0 (3.11.1.2318)