-
I'm going crazy trying to get conditional installation and execution of a C# CA to work. I just keep messing around with the WXS file and different things happen but I'm not sure why. The CA was running for a while but I seem to have broken that and have no idea what I changed that impacted it. Does anyone have suggestions for how to see what's going on with these conditions? "msiexec ... /l*xv log.txt" doesn't seem to even mention the conditions. I remember having similar problems the last time I did conditional install but it was literally years ago. If somebody wants to actually look at this and tell me what I'm missing that would be great, but I'd love to even have some tips about how to debug this stuff. Note that I'm still using Wix 3.11. I didn't honestly even realize it was up to version 5 and this isn't the time to try to switch even to 4. I have three requirements I'm trying to satisfy: 1. If directory exists, install file to it. This is working so I think this bit is right.
2. If #1 directory exists, and property "CONVERT" is "YES", set on the command line, install one or the other version of a file to a different directory. Notice that one has condition "CONVERT=YES" and the other "CONVERT=NO". Each of these components are in separate Component Groups with the same Directory value.
3. If #1 directory exists and property CONVERT is YES, run a custom action.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Have you tried quoting your string constants? |
Beta Was this translation helpful? Give feedback.
-
That was it! Thank you so much! I'm pretty sure I gave up on this the last time I tried it and figured out how to get the end result some other way. I did read that page you linked repeatedly but I kept not seeing the bullet point about quotes for strings. |
Beta Was this translation helpful? Give feedback.
Have you tried quoting your string constants?
YES
is a Property or Directory reference."YES"
is a string with the charactersY
E
andS
in that order.See MSI Conditional Statement Syntax