Well, under MSI evaluation logic, if you just use MYFLAG as your
condition, that will evaluate to true as long as MYFLAG has any value
at all.  If you wanted to support MYFLAG=false on the command line and
have the condition evaluate to false, then you would need to check
MYFLAG against a value (in this case that would be "true").

The convention for true/false is to use 1, as in MYFLAG=1 on the
command line, and simply check for MYFLAG having a value.

John

2009/7/1 sandun css <sandun...@gmail.com>:
> Hi,
>
> I have some conditions in my msi, like the following,
>
>
> <Condition Message="Required prerequisite (PowerShell 1.0) is not found.">
>
> <![CDATA[Installed OR (POWERSHELL >= "1.0")]]>
>
> </Condition>
>
> But I need to run these conditions only if a certain parameter is set to
> 'true'. (i.e. msiexec /i installer.msi MYFLAG=true)
>
> Are there boolean parameters, or do I need to treat 'true' and 'false'
> valuse as strings?
>
> Thanks,
>
> Sandun
> ------------------------------------------------------------------------------
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to