InstallPackage Constructor (packagePath, openMode, sourceDir, workingDir)

Microsoft Deployment Tools

Deployment Tools Foundation InstallPackage Constructor (packagePath, openMode, sourceDir, workingDir)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstaller.PackageInstallPackageInstallPackage(String, DatabaseOpenMode, String, String)
Creates a new InstallPackage object, specifying an alternate file source directory and/or working directory.
Declaration Syntax
C# Visual Basic Visual C++
public InstallPackage(
	string packagePath,
	DatabaseOpenMode openMode,
	string sourceDir,
	string workingDir
)
Public Sub New ( _
	packagePath As String, _
	openMode As DatabaseOpenMode, _
	sourceDir As String, _
	workingDir As String _
)
public:
InstallPackage(
	String^ packagePath, 
	DatabaseOpenMode openMode, 
	String^ sourceDir, 
	String^ workingDir
)
Parameters
packagePath (String)
Path to the install package to be created or opened
openMode (DatabaseOpenMode)
Open mode for the database
sourceDir (String)
Location to obtain source files and cabinets when extracting or updating files in the working directory. This is often the location of an original copy of the package that is not meant to be modified. If this parameter is null, it defaults to the directory of packagePath.
workingDir (String)
Location where files will be extracted to/updated from. Also the location where a temporary folder is created during some operations. If this parameter is null, it defaults to the directory of packagePath.
Remarks
If the source location is different than the working directory, then no files will be modified at the source location.

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