Share via


Installer.ClearSourceList 方法

Installer物件的ClearSourceList方法會從來源清單中移除所有網路來源。

語法

Installer.ClearSourceList(
  Product,
  User
)

參數

產品

指定產品代碼。

使用者

每個使用者安裝的使用者名稱;每部機器安裝的 null 或空字串。

傳回值

這個方法不會傳回值。

規格需求

需求
版本
Windows Server 2008 R2 或 Windows 7 上的 Windows Server 2012、Windows 8、Windows Installer 5.0。 Windows Server 2008 或 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5。 Windows Server 2003 或 Windows XP Windows 上的安裝程式
DLL
Msi.dll
IID
IID_IInstaller定義為 000C1090-0000-0000-C000-000000000046

另請參閱

MsiSourceListClearAll

來源復原