Installer.ApplyMultiplePatches 方法

ApplyMultiplePatches方法會將一或多個修補程式套用至有資格接收修補程式的產品。 方法會設定 PATCH 屬性。

語法

Installer.ApplyMultiplePatches(
  PatchPackagesList,
  Product,
  szPropertiesList
)

參數

PatchPackagesList

字串,包含修補檔案路徑的分號分隔清單。 例如:「」c:\sus\download\cache\Office\sp1.msp;c:\sus\download\cache\Office\QFE1.msp;c:\sus\download\cache\Office\ZLEn.msp「」

產品

此參數提供要修補之產品的 ProductCode 。 這是選擇性參數。 當此參數為 Null 時,修補程式會套用至有資格接收這些修補程式的所有產品。

szPropertiesList

指定命令列屬性設定的 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 3.0 或更新版本。
DLL
Msi.dll
IID
IID_IInstaller定義為 000C1090-0000-0000-C000-000000000046

另請參閱

關於屬性

ProductCode

補丁

在命令列上設定公用屬性值

MsiApplyMultiplePatches

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