Skip to content

Strip scheduling condition nodes.

roblabla requested to merge roblabla/msitools:strip-conditions into master

The Windows Installer parser for conditions does not like leading or trailing spaces. This means that fairly common constructs like

<Custom Action='dostuff' After='InstallServices'>
    (NOT Installed) AND (NOT REMOVE)
</Custom>

will have the "wrong" condition (NOT Installed) AND (NOT REMOVE), leading to the windows installer framework raising an error when executing the action.

To avoid this, we simply strip the leading and trailing spaces of conditions.

Merge request reports