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

Was it helpful?

Solution

See:

Conditional Statement Syntax

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

MsiEvaluateCondition Function

Session.EvaluateCondition Method

OTHER TIPS

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top