Deployment Tools Foundation
InstallPackage Constructor (packagePath, openMode, sourceDir, workingDir)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller.Package ► InstallPackage ► InstallPackage(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++ | F# |
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 )
new : packagePath : string * openMode : DatabaseOpenMode * sourceDir : string * workingDir : string -> InstallPackage
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.dll) Version: 3.0.0.0 (3.11.1.2318)