Product.SourceListClearSource 方法

SourceListClearSource方法會移除網路或 URL 來源。 接受 Type、來源類型和 SourcePath、來源路徑,做為要移除的參數。 這個方法會呼叫 MsiSourceListClearSource

語法

Product.SourceListClearSource(
  Type,
  SourcePath
)

參數

類型

要移除的來源類型:MSISOURCETYPE_NETWORK或MSISOURCETYPE_URL。

SourcePath

要移除的來源路徑。

傳回值

這個方法不會傳回值。

規格需求

需求
版本
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 2000 上的 Windows Installer 3.0 或更新版本
DLL
Msi.dll
IID
IID_IProduct定義為 000C10A0-0000-0000-C000-000000000046

另請參閱

產品

MsiSourceListClearSource

Windows Installer 2.0 和更早版本中不支援