我正在寻找一个库或实用程序,可以解析MSI启动条件。基本上我想接受这些陈述并将它们翻译成我们自己的语言,但在我这样做之前我需要解析它。

我已经可以将列表条件从MSI中拉出,例如:

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

但我希望已经有一些东西可以将其分解为更可取的格式。

额外的问题,这门语言是什么?我可以弄清楚如何引用它或搜索它。

cheers

有帮助吗?

解决方案

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