[This is preliminary documentation and subject to change.]
For each product listed by the patch package as eligible to receive the patch, the MsiApplyPatch function invokes an installation and sets the PATCH property to the path of the patch package.
UINT WINAPI MsiApplyPatch(
LPCTSTR szPatchPackage, // location of the patch package
LPCTSTR szInstallPackage, // location of product to be patched
// <optional>
INSTALLTYPE eInstallType, // type of install to patch
LPCTSTR szCommandLine // command line <property settings>
);
Type of Installation | Meaning |
---|---|
INSTALLTYPE_NETWORK_IMAGE | Indicates a network installation |
Windows NT: Requires version 4.0 or later. Available as a redistributable for Windows NT 4.0.
Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in msi.h.
Import Library: Use msi.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.