다음을 통해 공유


Installer::ProductElevated 속성

Installer 개체의 ProductElevated 속성은 관리되는 제품인 경우 True를 반환하고, 관리되는 제품이 아닌 경우 False를 반환합니다.

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

구문

propVal = Installer.ProductElevated

속성 값

제품의 전체 제품 코드 GUID입니다. 이 매개 변수는 필수입니다.

설명

ProductElevated 속성은 MsiIsProductElevated 함수를 사용합니다. 속성의 반환은 AlwaysInstallElevated 정책을 고려하지 않습니다.

예제

다음 샘플 스크립트는 ProductElevated 속성의 사용을 보여 줍니다.

Dim installer
Set installer = CreateObject("WindowsInstaller.Installer")

' 
' Install Orca tool per-machine
'
installer.InstallProduct "\\products\public\orca\orca.msi", "ALLUSERS=1"

'
' Verify Orca is managed
'

Dim bManaged
bManaged = installer.ProductElevated("{85F4CBCB-9BBC-4B50-A7D8-E1106771498D}")

If bManaged Then
    MsgBox "Success - Product Is Managed"
Else
    MsgBox "Failure - Product Is Not Managed"
End If

요구 사항

요구 사항
버전
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 4.5
DLL
Msi.dll
IID
IID_IInstaller는 000C1090-0000-0000-C000-000000000046으로 정의됩니다.

추가 정보

설치 관리자

Windows Installer 3.1 및 이전 버전에서 지원되지 않음