2016-06-29 1 views
0

Wix Bootstrapper (* .wxs) 원본 파일에서 설치 조건을 감지하려고합니다. Wix는 설명서에의 "기본 제공 변수 굽기"를 선언합니다.Under Wix Burn 조건은 Wix "Burn Built-in Variables"가 설정되어 있습니까?

내 소스 코드는 다음과 같습니다 : 나는 WixBundleAction이 설정되어 있는지 굽기 로그에 표시되지 않습니다

<util:RegistrySearch 
    Id="SearchForMyProduct" 
    Variable="MyProductIsInstalled" 
    Result="exists" 
    Root="HKLM" 
    Key="SYSTEM\CurrentControlSet\services\MyProduct" /> 

<bal:Condition Message="service was found. MyProduct is already installed. Please uninstall and try again"> 
    (WixBundleAction = 3) AND (MyProductIsInstalled = 0) 
</bal:Condition> 

. WixBundleAction을 테스트 한 값에 상관없이 (WixBundleAction = 3) FALSE입니다. 두 번 클릭하거나 명령 줄에서 설치 프로그램을 실행하는지 여부는 동일합니다.

답변

0

변수에 따라 다릅니다. WixBundleAction의 경우 설명서에는 번들이 시작될 때 (명령 줄 매개 변수를 기반으로) 및 계획 단계 중에 발생한다고되어 있습니다.

WixBundleAction - set to the numeric value of BOOTSTRAPPER_ACTION 
        from the command-line and updated 
        during the call to IBootstrapperEngine::Plan(). 
관련 문제