Re: [WiX-users] Boolean paramaters

2009-07-03 Thread John Ludlow
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

Re: [WiX-users] Boolean paramaters

2009-07-02 Thread Sebastian Brand (Instyler Software)
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

Re: [WiX-users] Boolean paramaters

2009-07-02 Thread Richard
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

Re: [WiX-users] Boolean paramaters

2009-07-01 Thread Christopher Karper
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

Re: [WiX-users] Boolean paramaters

2009-07-01 Thread Buddell, James
: 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

Re: [WiX-users] Boolean paramaters

2009-07-01 Thread Wilson, Phil
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

Re: [WiX-users] Boolean paramaters

2009-07-01 Thread Richard
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

Re: [WiX-users] Boolean paramaters

2009-07-01 Thread sandun css
Thanks for the replies. I was able to get it done with 'MYFLAG~=true' approach. -- ___ WiX-users mailing list WiX-users@lists.sourceforge.net

[WiX-users] Boolean paramaters

2009-06-30 Thread sandun css
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