Install-MsiPatch

Installs an MSI patch.

Note: Starting with version 3.0 of the PPB, the Install-MsiPatch command can also be generated by dragging and dropping Windows Installer patch files (*.msp) into the script window. If the files are already in the package directory, the source path is referenced relatively with .\, if the source files are outside the package directory, the full path is taken.


Settings:

  • Patch file
    Specifies the Windows Installer patch (*.msp file) to be installed, including path. Use the "..." button to select an existing file (on the packaging system) or enter the path manually.
  • Parameter
    Optional - contains parameters to be passed to the Windows Installer for patch installation.
  • Log options
    • Enable MSI logging
      If this check box is activated, the Windows Installer creates a log file.
    • Level
      If MSI logging is enabled, this setting determines the level of detail of the Windows Installer log.
      • Debug
        The Windows Installer log file contains maximum detailed entries.
      • Normal
        The Windows Installer log file contains the normal level of detail.
  • Variable for MSI exit code
    Optional - Name of a variable that contains the exit code of the Windows Installer. Enter only the name of the variable, not the $ sign and the curly brackets.


Example:

The example below installs the patch for Adobe Reader, which is located in the Files-subdirectory of the package directory. Detailed Windows Installer logging is activated and the return code of the Windows Installer is stored in the variable _MSIReturncode for evaluation in the further course of the script.


Corresponds to DSM eScript command:

  • MSIApplyPatch


See also: