Hello,

I need an advise...

Our company sells software components. Every our customer (depending on his needs) may want to buy different combination of components.

I would like to create a script that would include these components into MSI file depending on the value (true / false) of some property that I can specify when running script. In this case I would be able to use the same main script (plus *.include module per component) to create a MSI file with any combination of software components. The include module for each component would have targets for getting of source code from source control system, compilation, building doc, building merge module, etc. The main script would check external properties, call targets from *.include modules, and merge necessary components to MSI file.

The scenario described above works very well except the MSI task. It seems it does not let to use if="some condition" to include features and merge modules like in the script below:

<features>

   <feature name="FEATURE_1" if="${component_1.selected}" ...>
       <description>Description of Feature 1</description>
   </feature>

   <feature name="FEATURE_2" if="${component_2.selected}" ...>
       <description>Description of Feature 2</description>
   </feature>

</features>

<mergemodules>

   <merge if="${component_1.selected}" feature="FEATURE_1">
       <modules>
           <include name="MergeModule_1.msm" />
       </modules>
   </merge>

   <merge if="${component_2.selected}" feature="FEATURE_2">
       <modules>
           <include name="MergeModule_2.msm" />
       </modules>
   </merge>

</mergemodules>


How can I accomplish what I need? Is any other way to use the same script to build a MSI file with an arbitrary combination of software components?



Regards, Roman.





------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to