共用方式為


ARPNOREMOVE 屬性

設定ARPNOREMOVE屬性會停用移除產品主控台中的[新增或移除程式] 功能。 若為 Windows 2000,這會停用產品在主控台中新增或移除程式的[移除] 按鈕。 對於先前的作業系統,這會影響從主控台新增或移除程式上安裝的產品清單中移除產品的效果。

如果已設定 ARPNOREMOVE 屬性, RegisterProduct 巨集指令 會在登錄機碼下寫入值 「NoRemove」 :

HKLM\軟體\微軟\窗戶\CurrentVersion\卸載\{product key}

設定 ARPNOREMOVE 屬性可防止此機碼下寫入 UninstallString 值。 UnistallString 值是移除產品的命令列,而不是重新設定產品。

備註

例如,您可以在自訂轉換期間設定此屬性,以防止使用者移除系統管理員自訂。

規格需求

需求
版本
Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5 或更新版本。 Windows Server 2003 或 Windows XP 上的 Windows Installer。 如需 Windows Installer 版本所需的最低 Windows Service Pack 相關資訊,請參閱 Windows Installer Run-Time需求

另請參閱

屬性