我在哪里可以找到一个msi条件解析器
-
14-11-2019 - |
题
我正在寻找一个库或实用程序,可以解析MSI启动条件。基本上我想接受这些陈述并将它们翻译成我们自己的语言,但在我这样做之前我需要解析它。
我已经可以将列表条件从MSI中拉出,例如:
NOT VersionNT OR (VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT > 501)
.
但我希望已经有一些东西可以将其分解为更可取的格式。
额外的问题,这门语言是什么?我可以弄清楚如何引用它或搜索它。
cheers
解决方案
See:
Windows Installer exposes a Win32 function and an Automation Method for evaluating conditions.
其他提示
Try the Wine source code. They have the following grammar file for conditions:
不隶属于 StackOverflow