For each product listed by the patch package as eligible to receive the patch, the ApplyPatch method of the Installer object invokes an installation and sets the PATCH property to the path of the patch package.
Installer.ApplyPatch( PatchPackage, InstallPackage, InstallType, CommandLine )
Specifies a path to the patch package.
If InstallType is set to msiInstallTypeNetworkImage, InstallPackage specifies the path to the product that is to be patched. If InstallType is set to msiInstallTypeDefault and InstallPackage is set to 0, the installer applies the patch to every eligible product listed in the patch package.
If InstallType is msiInstallTypeSingleInstance, the installer applies the patch to the product specified by InstallPackage. In this case, other eligible products listed in the patch package are ignored and the InstallPackage parameter contains the null-terminated string representing the product code of the instance to patch. This type of installation requires the Windows Installer version shipped with the Windows Server 2003 or later or Windows Installer XP SP1 or later.
This parameter specifies the type of installation to patch. The InstallType parameter is ignored if InstallPackage is omitted.
Indicates a administrative installation. In this case, InstallPackage must be set to a package path. A value of 1 for msiInstallTypeNetworkImage specifies a administrative installation.
Searches system for products to patch. In this case, InstallPackage must be an empty string.
Patch the product specified by InstallPackage. InstallPackage is the product code of the instance to patch. This type of installation requires the Windows Installer version shipped with Windows Server 2003 or later or Windows Installer XP SP1 or later. For more information see, Installing Multiple Instances of Products and Patches.
Specifies property settings being set on the command line. See Remarks section.
This method does not return a value.
Because the list delimiter for transforms, sources, and patches is a semicolon, this character should not be used for file names or paths.
The REINSTALL property is required when applying a small update or minor upgrade patch. Without this property, the patch is registered on the system but cannot update files.
Windows Installer 2.0: You must set the REINSTALL property on the command line when applying a small update or minor upgrade patch. For patches that do not use a Custom Action Type 51 to automatically set the REINSTALL and REINSTALLMODE properties, the REINSTALL property must be explicitly set with the CommandLine parameter. Set the REINSTALL property to list the features affected by the patch, or use a practical default setting of "REINSTALL=ALL". The default value of the REINSTALLMODE property is "omus".
Windows Installer 3.0 and later: Beginning with Windows Installer version 3.0, the REINSTALL property is configured by the installer and does not need to be set on the command line.
||Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer 3.0 or later on Windows Server 2003 or Windows XP.
||IID_IInstaller is defined as 000C1090-0000-0000-C000-000000000046