Installer.InstallProduct 메서드

Installer 개체의 InstallProduct 메서드는 설치 관리자 패키지를 열고 설치 세션을 초기화합니다.

구문

Installer.InstallProduct(
  packagePath,
  propertyValues
)

매개 변수

packagePath

설치 패키지에 대한 경로를 포함하는 필수 문자열

propertyValues

공백으로 구분된 property=value 쌍을 포함하는 선택적 문자열

관리 설치를 수행하려면 propertyValues에 ACTION=ADMIN을 포함합니다. 자세한 내용은 ACTION 속성을 참조하세요.

반환 값

이 메서드는 값을 반환하지 않습니다.

설명

제품을 완전히 제거하려면 propertyValues에서 REMOVE=ALL을 설정합니다. 자세한 내용은 REMOVE 속성을 참조하세요.

요구 사항

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