Hi, it seems like wixstdba now supports overriding variables from the command line (looking at the <variable> element in the help, as well as defects 3480653 and 3489809 apparently fixed). However, I have no success.
I am using WiX v3.6.3109.0 Release (from wix36-binaries.zip) I define a variable in my bundle like this: <Variable Name="MYVAR" Value="myvalue" Type="string"> and I use it in a Package InstallCondition like so: InstallCondition="MYVAR = "myothervalue&qot;" Visible ="yes" Then on the command line I pass MYVAR=myothervalue the log shows MYVAR taking on the default value, but nothing else. I expected to see an error, as per help for the variable@Overridable: "Otherwise, WixStdBA won't overwrite the default value and will log "Ignoring attempt to set non-overridable variable: " The installCondition evaluates to false, so I assume that the variable is not set from the command line. Also, I was unable to use the variable overridable attribute (I don't quite understand the help on this; I have tried various syntax, each give me an error message). E.g. <Variable Name="MYVAR" Value="myvalue" Type="string" Overridable ="yes"/> error CNDL0004 : The Variable element contains an unexpected attribute 'Overridable'. or this <Variable Name="MYVAR" Value="myvalue" Type="string"> <bal:WixBalExtension Override="yes"/> </Variable> error CNDL0203 : The Variable element contains an unsupported extension element 'bal:WixBalExtension'. The Variable element does not currently support extension elements. Is the bal:WixBalExtension element using the correct XML namespace? Any help would be appreciated. Thank you Christophe ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users