大网数据广告活动
安装更新与部署

Msimsp.exe

· 52CE 我爱测

The recommended method for generating a patch package is to use patch creation tools such as Msimsp.exe and Patchwiz.dll. The Msimsp.exe tool is only available in the Windows SDK Components for Windows Installer Developers.

The recommended method for generating a patch package is to use patch creation tools such as Msimsp.exe and Patchwiz.dll. The Msimsp.exe tool is only available in the Windows SDK Components for Windows Installer Developers.

Msimsp.exe is a executable file that calls Patchwiz.dll. The tool can be used to create a patch package by passing in the path to a patch creation properties file (.pcp file) and the path to the patch package that is being created. Msimsp.ex can also be used to create a log file and to specify a temporary folder in which the transforms, cabinets, and files that are used to create the patch package are saved.

The command-line syntax for Msimsp.exe is:

Msimsp.exe -s [path to .pcp file] -p [path to .msp file] {options}

The command-line options are not case-sensitive, and slash delimiters can be used instead of a dash. If no options are specified, Msimsp.exe displays the current values of the summary Information properties.

-s*[path to .pcp file]*

This is required and must be followed by the path to the patch creation properties file (.pcp extension). For more information, see PatchWiz.dll.

-ppath to .msp file

This is required and followed by the path to patch package that is being created (.msp extension).

-fpath to temporary folder

Optional. Followed by path to temporary folder. The default location is %TMP%\~pcw_tmp.tmp\.

-k

Optional. Fail if the temporary folder already exists.

-lpath to log file

Optional. Followed by the path to the log file that describes the patch creation process and errors. For more information, see Return Values for UiCreatePatchPackage.

-lppath to log file with performance data

Optional. Followed by the path to the log file that describes the patch creation process and errors. This option writes performance data to log file. This option requires version 4.0 of Patchwiz.dll.

-d

Optional. Displays a dialog if the patch creation completes successfully.

-?

Displays command-line help.

Note: Msimsp.exe can fail when it calls Makecab.exe if there are values in the File column of the File table of the installation package that differ only by case. Windows Installer is case-sensitive and allows an installation package such as in the table below only when Comp1 and Comp2 are installed into different directories. However, in this scenario you cannot use Msimsp.exe or Patchwiz.dll to generate a patch for the package, because Msimsp.exe and Patchwiz.dll call Makecab.exe, which is case-insensitive.

Avoid authoring an installation package such as the following partial File table.

File Component_ FileName
readme.txt Comp1 readme.txt
ReadMe.txt Comp2 readme.txt

Related topics

Creating a Patch Package

A Small Update Patching Example

Windows Installer Development Tools

Released Versions, Tools, and Redistributables

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。