문제

MSI 실행 조건을 구문 분석 할 수있는 도서관이나 유용성을 찾고 있습니다.기본적으로 나는 이러한 진술을하고 우리 자신의 langauge로 번역하고 싶지만, 나는 그것을 구문 분석해야한다는 것을 전에 그것을 해결해야합니다.

MSI에서 목록 조건을 가져올 수 있습니다 (예 :

NOT VersionNT OR (VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT > 501)
.

그러나 나는 이미 이것을 해석 할 수있는 형식으로 깰 수있는 무언가가 있기를 바랐다.

추가 질문,이 언어는 무엇입니까?나는 그것을 참조하거나 그것을 검색하는 방법을 알아낼 수 있습니다.

환호

도움이 되었습니까?

해결책

See:

Conditional Statement Syntax

Windows Installer exposes a Win32 function and an Automation Method for evaluating conditions.

MsiEvaluateCondition Function

Session.EvaluateCondition Method

다른 팁

Try the Wine source code. They have the following grammar file for conditions:

http://source.winehq.org/source/dlls/msi/cond.y

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