MSIUNINSTALLSUPERSEDEDCOMPONENTS 属性

Property 表或命令行中将 MSIUNINSTALLSUPERSEDEDCOMPONENTS 属性设置为 1。 如果已将此属性设置为 1,安装程序将确定任何被取代的补丁中的组件是否变得多余。 安装程序可以注销和卸载冗余组件,以防止在计算机上留下孤立组件。

设置此属性会影响所有被取代的补丁中的组件。 若要为单个组件启用此功能,请使用 Component 表中的 msidbComponentAttributesUninstallOnSupersedence 属性。

Windows Installer 4.0 及更低版本:不支持。 低于 Windows Installer 4.5 的版本会忽略 MSIUNINSTALLSUPERSEDEDCOMPONENTS 属性。

要求

要求
版本
Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Installer 4.5 或 Windows Vista、Windows XP、Windows Server 2003 和 Windows Server 2008 上的 Windows Installer 4.5。 若要了解 Windows Installer 版本要求的最低 Windows Service Pack,请参阅 Windows Installer 运行时要求

请参阅

属性