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
installations, elegantly.
http://www.instyler.com
-Original Message-
From: sandun css [mailto:sandun...@gmail.com]
Sent: Wednesday, July 01, 2009 6:21 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Boolean paramaters
Hi,
I have some conditions in my msi, like the following
In article 01c9fa0f$da2a52b0$8e7ef8...@com,
Sebastian Brand \(Instyler Software\) wix+us...@instyler.com writes:
All values except 0 and (empty string) are interpreted as TRUE.
Good point. I forgot about 0. But I generally use empty string for
false.
So you
may use the condition
You have a boolean operator right in that very example... I'm just winging
this, but try:
Condition Message=Required prerequisite (PowerShell 1.0) is not found.
![CDATA[Installed OR ((POWERSHELL = 1.0) And (MYFLAG))]]
/Condition
On Wed, Jul 1, 2009 at 12:21 AM, sandun css sandun...@gmail.com
: Christopher Karper [mailto:christopher.kar...@gmail.com]
Sent: 01 July 2009 12:25
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Boolean paramaters
You have a boolean operator right in that very example... I'm just
winging
this, but try:
Condition Message
Message-
From: Buddell, James [mailto:james.budd...@dkib.com]
Sent: Wednesday, July 01, 2009 6:04 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Boolean paramaters
From memory so this may not be 100% - Windows Installer evaluates
properties as true
Think of boolean properties acting the same way that properties act
when you connect them to a checkbox. The property is empty if the
checkbox is cleared and set to some value when the checkbox is
checked.
If you follow this convention with your own properties then MyProperty
will evaluate to
Thanks for the replies. I was able to get it done with 'MYFLAG~=true'
approach.
--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
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
9 matches
Mail list logo