ApplyPatch Method (patchPackage, transform)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation ApplyPatch Method (patchPackage, transform)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstaller.PackageInstallPackageApplyPatch(PatchPackage, String)
Applies a patch package to the database, resulting in an installation package that has the patch built-in.
Declaration Syntax
C# Visual Basic Visual C++
public void ApplyPatch(
	PatchPackage patchPackage,
	string transform
)
Public Sub ApplyPatch ( 
	patchPackage As PatchPackage,
	transform As String
)
public:
void ApplyPatch(
	PatchPackage^ patchPackage, 
	String^ transform
)
Parameters
patchPackage (PatchPackage)
The patch package to be applied
transform (String)
Optional name of the specific transform to apply. This parameter is usually left null, which causes the patch to be searched for a transform that is valid to apply to this database.
Remarks
If the patch contains any binary file patches, they will not immediately be applied to the target files, though they will at installation time.

After calling this method you can use Consolidate(String) to apply the file patches immediately and also discard any outdated files from the package.

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