Patch.CoNtext 屬性

CoNtext屬性會傳回這個修補程式的內容。

這個屬性是唯讀的。

Syntax

propVal = Patch.Context

屬性值

備註

這個屬性會傳回下列其中一個值。

Context 意義
MSIINSTALLCONTEXT_USERMANAGED 1 受管理內容下的修補程式。
MSIINSTALLCONTEXT_USER 2 在 Unmanaged 內容下修補。
MSIINSTALLCONTEXT_MACHINE 4 電腦內容下的修補程式。

 

規格需求

需求
版本
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_IPatch定義為 000C10A1-0000-0000-C000-000000000046

另請參閱

Patch 物件

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