Share via


Patch.State 속성

State 속성은 이 패치 인스턴스의 설치 상태를 반환합니다.

이 속성은 읽기 전용입니다.

구문

propVal = Patch.State

속성 값

설명

이 속성은 다음 값 중 하나를 반환합니다.

설치 상태 의미
MSIPATCHSTATE_APPLIED 패치는 이 제품 인스턴스에 적용됩니다.
MSIPATCHSTATE_SUPERSEDED 패치는 이 제품 인스턴스에 적용되지만 대체됩니다.
MSIPATCHSTATE_OBSOLETED 패치는 이 제품 인스턴스에 적용되지만 사용되지 않습니다.

 

이 메서드는 Patch 개체가 ProductCode에 대한 빈 문자열로 초기화된 경우 ERROR_UNKNOWN_PATCH를 반환할 수 있습니다.

요구 사항

요구 사항
버전
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

MsiGetPatchInfoEx

Windows Installer 2.0 이하에서 지원되지 않음