다음을 통해 공유


Installer.ReinstallProduct 메서드

Installer 개체의 ReinstallProduct 메서드는 제품을 다시 설치하거나 설치된 제품의 설치 문제를 해결합니다.

구문

Installer.ReinstallProduct(
  Product,
  ReinstallMode
)

매개 변수

제품

제품의 제품 코드를 지정합니다.

ReinstallMode

다시 설치 유형을 지정합니다. 이 매개 변수는 다음 값 중 하나 이상일 수 있습니다.

의미
msiReinstallModeFileMissing
파일이 누락된 경우에만 다시 설치합니다.
msiReinstallModeFileOlderVersion
파일이 없거나 이전 버전이면 다시 설치합니다.
msiReinstallModeFileEqualVersion
파일이 없거나 동일하거나 이전 버전인 경우 다시 설치합니다.
msiReinstallModeFileExact
파일이 없거나 정확한 버전이 아닌 경우 다시 설치합니다.
msiReinstallModeFileVerify
합계 실행 파일을 확인하고 누락되거나 손상된 경우 다시 설치합니다.
msiReinstallModeFileReplace
버전에 관계없이 모든 파일을 다시 설치합니다.
msiReinstallModeUserData
필요한 per=user 레지스트리 항목을 확인합니다.
msiReinstallModeMachineData
필요한 per=machine 레지스트리 항목을 확인합니다.
msiReinstallModeShortcut
바로 가기의 유효성을 검사합니다.
msiReinstallModePackage
Recache 원본을 사용하여 패키지를 설치합니다.

 

반환 값

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

요구 사항

요구 사항
버전
Windows Server 2012, Windows 8, Windows Server 2008 R2 또는 Windows 7에 설치 관리자 5.0을 Windows. Windows Server 2008 또는 Windows Vista에서 설치 관리자 4.0 또는 Windows Installer 4.5를 Windows. Windows Server 2003 또는 Windows XP의 Windows 설치 관리자
DLL
Msi.dll
IID
IID_IInstaller 000C1090-0000-0000-C000-0000000000046으로 정의됩니다.

추가 정보

MsiReinstallProduct

설치 및 구성 함수