We are trying to create a Merge Module that we can essentially pass a value into. Then the Merge Module will use that value to determine whether or not to install some files. We want to skip installing some files unless someone passes in a value. The idea being that for people using our MSM by default will not install a file but if we want to we can tell people that they can set this value and the files will get installed.
I found that we should be able to do this with ConfigurationData and Configuration Elements I think based on this thread - http://sourceforge.net/mailarchive/message.php?msg_name=e067caa20905280720m6bbe42bcje5fd4f68c08023a%40mail.gmail.com Below is what we basically have. In the Module Element of the Merge Module: <Configuration Name="InstallSomeFiles" Format="Integer" DefaultValue="0" DisplayName="Install Some Files?" /> Then later we have a Component: <Component Id="MyPackageComponent1" Guid="GUID-HERE" DiskId="1" > <Condition> InstallSomeFiles > 0 </Condition> <File Id="SomeFile1" Name="SomeFile.xml" KeyPath="yes" Source="$(var.OutputDir)" /> </Component> Then inside the Merge element we have: <ConfigurationData Name="InstallSomeFiles" Value="1" /> However it seems that the condition is not picking up the fact that InstallSomeFiles is set up. I thought that a Configuration element could just be referred to like a property. However that is not working. If I define InstallSomeFiles as property instead of a Configuration it works as I would expect because I can change the value and then the Condition works. So the question at the end of all of this is how can I use the value passed into a Merge Module (MSM) to do a Condition? Thanks in advance! Zach ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users