Installer.ClearSourceList 方法

Installer 对象的 ClearSourceList 方法可从源列表中移除所有网络源。

语法

Installer.ClearSourceList(
  Product,
  User
)

参数

Product

指定产品代码。

用户

对于每用户安装,为用户名;对于每计算机安装,为 null 或空字符串。

返回值

此方法不返回值。

要求

要求
版本
Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Server 2008 或 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5。 Windows Server 2003 或 Windows XP 上的 Windows Installer
DLL
Msi.dll
IID
IID_IInstaller 定义为 000C1090-0000-0000-C000-000000000046

另请参阅

MsiSourceListClearAll

源复原能力