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.
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.