문제

나는 다른 사람들이 작성한 wix 스크립트를 읽고 있습니다. 정말 혼란스러워하는 코드가 있습니다.

<Custom Action='UnLoadSchedulerPerfCounters' After='InstallInitialize'>
    <![CDATA[(Installed) AND (!Scheduler = 3)]]>
</Custom>
<Custom Action='RollbackSchedulerPerfCounters' After='WriteRegistryValues'>
        <![CDATA[(&Scheduler = 3)]]>
</Custom>

그래서, 차이점은 무엇입니까? !Scheduler 그리고 &Scheduler? 속성이 접두사에 의해 제공 될 때 특별한 의미입니다 & 또는 !?

도움이 되었습니까?

해결책

에서 http://www.tramontana.co.hu/wix/lesson5.php#5.3:

일부 특수 문자를 이름으로 선출하면 추가 의미가 있습니다.

%     environment variable (name is case insensitive)
$     action state of component
?     installed state of component
&     action state of feature
!     installed state of feature

마지막 4 개는 다음 정수 값을 반환 할 수 있습니다.

-1   no action to be taken
1    advertised (only for components)
2    not present
3    on the local computer
4    run from the source

다른 팁

이들은 Windows Installer Condition Syntax의 연산자입니다. 전체 목록은이 MSI SDK 문서를 참조하십시오. http://msdn.microsoft.com/en-us/library/aa368012.aspx.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top