Where can i find an msi conditions parser
-
14-11-2019 - |
Question
I am looking for a library or utility that can parse the msi launch conditions. Basically i want to take these statements and translate them into our own langauge, but before i do that i need to parse it up.
I can already pull a list conditions out of an MSI, for example:
NOT VersionNT OR (VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT > 501)
But i was hoping there was already something that can break this up into a more interpretable format.
Additional question, what is this language called? I can figure out how to refer to it or search for it.
Cheers
Solution
See:
Windows Installer exposes a Win32 function and an Automation Method for evaluating conditions.
OTHER TIPS
Try the Wine source code. They have the following grammar file for conditions:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow