ApplyPatch Method (patchPackage, transform)

Microsoft Deployment Tools

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) Version: 3.0.0.0 (3.5.1623.0)