![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
ApplyPatch Method (patchPackage, transform)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller.Package ► InstallPackage ► ApplyPatch(PatchPackage, String)
Applies a patch package to the database, resulting in an installation package that
has the patch built-in.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public void ApplyPatch( PatchPackage patchPackage, string transform )
Public Sub ApplyPatch ( patchPackage As PatchPackage, transform As String )
public: void ApplyPatch( PatchPackage^ patchPackage, String^ transform )
member ApplyPatch : patchPackage : PatchPackage * transform : string -> unit
![](collapse_all.gif)
- 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.
![](collapse_all.gif)
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.11.1.2318)