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

Configuring Add/Remove Programs with Windows Installer

· 52CE 我爱测

You can supply all of the information needed to configure Add/Remove Programs in Control Panel by setting the values of certain installer properties in your application's Windows Installer package.

You can supply all of the information needed to configure Add/Remove Programs in Control Panel by setting the values of certain installer properties in your application's Windows Installer package. Setting these properties automatically writes the corresponding values into the registry. If the installer detects that the product is marked for complete removal, operations are automatically added to the script to remove the Add/Remove Programs folder in Control Panel information for the product.

If an application is not registered, it is not listed in Add/Remove Programs in Control Panel. For more information, see Adding and Removing an Application and Leaving No Trace in the Registry.

Applications that have been installed in the per-user installation context are displayed in the Add/Remove Programs of the current user. Applications that have been installed in the per-machine installation context are displayed in the Add/Remove Programs of all users. Applications that have not been installed per-machine, and have only been installed as per-user applications for users other than the current user, do not appear in the Add/Remove Programs of the current user.

Note that installation packages that use the LIMITUI property must also contain the ARPNOMODIFY. This is required for a user to obtain the correct behavior from Add/Remove Programs in Control Panel utility when attempting to configure a product.

The installer uses the following public properties to manage Add/Remove Programs in Control Panel.

Property name Brief description of property
<a href="arpauthorizedcdfprefix.md">ARPAUTHORIZEDCDFPREFIX</a> URL of the update channel for the application. The value the installer writes under the <a href="uninstall-registry-key.md">Uninstall Registry Key</a>.
<a href="arpcomments.md">ARPCOMMENTS</a> Provides Comments for the Add/Remove Programs in the Control Panel. The value the installer writes under the <a href="uninstall-registry-key.md">Uninstall Registry Key</a>.
<a href="arpcontact.md">ARPCONTACT</a> Provides the Contact for Add/Remove Programs in the Control Panel. The value the installer writes under the <a href="uninstall-registry-key.md">Uninstall Registry Key</a>.
<a href="arpinstalllocation.md">ARPINSTALLLOCATION</a> Fully qualified path to the application's primary folder. The value the installer writes under the <a href="uninstall-registry-key.md">Uninstall Registry Key</a>.
<a href="arphelplink.md">ARPHELPLINK</a> Internet address, or URL, for technical support. The value the installer writes under the <a href="uninstall-registry-key.md">Uninstall Registry Key</a>.
<a href="arphelptelephone.md">ARPHELPTELEPHONE</a> Technical support phone numbers. The value the installer writes under the <a href="uninstall-registry-key.md">Uninstall Registry Key</a>.
ARPNOMODIFY Prevents display of a Change button for the product in Add/Remove Programs in the Control Panel.Note: This only affects the display in the ARP. The Windows Installer is still capable of repairing, installing-on-demand, and uninstalling applications through a command line or the programming interface.
ARPNOREMOVE Prevents display of a Remove button for the product in the Add/Remove Programs in the Control Panel. The product can still be removed by selecting the Change button if the installation package has been authored with a user interface that provides product removal as an option.Note: This only affects the display in the ARP. The Windows Installer is still capable of repairing, installing-on-demand, and uninstalling applications through a command line or the programming interface.
ARPNOREPAIR Disables the Repair button in the Add/Remove Programs in the Control Panel.Note: This only affects the display in the ARP. The Windows Installer is still capable of repairing, installing-on-demand, and uninstalling applications through a command line or the programming interface.
<a href="arpproducticon.md">ARPPRODUCTICON</a> Identifies the icon displayed in Add/Remove Programs. If this property is not defined, Add/Remove Programs specifies the display icon.
<a href="arpreadme.md">ARPREADME</a> Provides the ReadMe for Add/Remove Programs in Control Panel. The value the installer writes under the <a href="uninstall-registry-key.md">Uninstall Registry Key</a>.
<a href="arpsize.md">ARPSIZE</a> Estimated size of the application in KB.
ARPSYSTEMCOMPONENT Prevents display of the application in the Programs List of the Add/Remove Programs in the Control Panel.Note: This only affects the display in the ARP. The Windows Installer is still capable of repairing, installing-on-demand, and uninstalling applications through a command line or the programming interface.
<a href="arpurlinfoabout.md">ARPURLINFOABOUT</a> URL for application's home page. The value the installer writes under the <a href="uninstall-registry-key.md">Uninstall Registry Key</a>.
<a href="arpurlupdateinfo.md">ARPURLUPDATEINFO</a> URL for application update information. The value the installer writes under the <a href="uninstall-registry-key.md">Uninstall Registry Key</a>.

Note:
For information regarding the Set Program and Defaults tool, refer to the section Working with Set Program Access and Computer Defaults.

Related topics

Uninstall Registry Key

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)

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

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