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

RemoveRegistryValues Action

· 52CE 我爱测

The RemoveRegistryValues action can only remove values from the system registry that have been authored into the Registry table or the RemoveRegistry table.

The RemoveRegistryValues action can only remove values from the system registry that have been authored into the Registry table or the RemoveRegistry table. This action removes a registry value that has been authored into the Registry table if the associated component was installed locally or as run from source and is now set to be uninstalled. This action removes a registry value that has been authored into the RemoveRegistry table if the associated component is set to be installed locally or as run from source.

Sequence Restrictions

The InstallValidate action must be called before calling RemoveRegistryValues. If a WriteRegistryValues action is used, it must come after RemoveRegistryValues. RemoveRegistryValues must come before UnregisterMIMEInfo or UnregisterProgIDInfo.

A custom action can be used to add rows to the Registry table during an installation, uninstallation, or repair transaction. These rows do not persist in the Registry table and the information is only available during the current transaction. The custom action must therefore be run in every installation, uninstallation, or repair transaction that requires the information in these additional rows. The custom action must come before the RemoveRegistryValues and WriteRegistryValues actions in the action sequence.

ActionData Messages

Field Description of action data
[1] Registry path to key of removed registry value.
[2] Formatted string of name of removed registry value.

Remarks

To remove a registry value, record the value in the Value column of the Registry table. If the WriteRegistryValues action has attached REG_MULTI_SZ strings to the value in the Registry table, then the RemoveRegistryValues action removes only those strings from the registry value.

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)

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

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