Here is an odd msi task error and an obvious workaround: If you put a <icon> or <shortcut> tag after the <feature> tag, you get the following error:
----------------------------------------------------- BUILD FAILED Validation Error: The element 'NAnt.Contrib.Tasks.Msi.MsiTask:msi' has invalid child element 'NAnt.Contrib.Tasks.Msi.MsiTask:icons'. Expected 'NAnt.Contrib.Tasks.Msi.MsiTask:mergemodules'. An error occurred at , (33, 4). ----------------------------------------------------- And the obvious workaround is to put those tasks before the <feature> tag. Here is my entire msi task that fails: ----------------------------------------------------- <target name="msi"> <msi sourcedir="" license="..\..\license.rtf" output="ReferenceViewer.msi" debug="true" verbose="true" > <properties> <property name="ProductName" value="Reference Viewer" /> <property name="ProductVersion" value="1.0" /> <property name="Manufacturer" value="UAI, Inc." /> <property name="ProductCode" value="{8D02D6D1-265F-41f0-9BA3-2D25BF2CC3F9}" /> <property name="UpgradeCode" value="{270A4FCD-511D-4b23-AA9F-DAAE8408A906}" /> </properties> <directories> <directory name="D__COMPANY" foldername="UAI" root="ProgramFilesFolder" > <directory name="D__Utilties" foldername="Utilities"> <directory name="D__RV" foldername="Reference Viewer" /> </directory> </directory> <directory name="D__PM_COMPANY" foldername="UAI" root="ProgramMenuFolder" > <directory name="D__PM_Utilties" foldername="Utilities" /> </directory> </directories> <components> <component name="C__MainFiles" id="{98D8B87C-EBB7-406e-830D-C65004FF906B}" attr="2" directory="D__RV" feature="F__DefaultFeature" > <key file="ReferenceViewer.exe" /> <fileset basedir="${build_path}"> <include name="*.exe" /> <include name="*.dll" /> </fileset> </component> </components> <features> <feature name="F__DefaultFeature" title="Reference Viewer" display="1" typical="true" directory="D__RV"> <description>Reference Viewer Files</description> </feature> </features> <icons> <icon name="APPICON" value="app.ico" /> </icons> <shortcuts> <shortcut name="SC__RV" directory="D__PM_Utilties" filename="ReferenceViewer.exe" component="C__MainFiles" target="[$C__MainFiles]\ReferenceViewer.exe" icon="APPICON" iconindex="0" showcmd="1"> <description>UAI Reference Viewer Utility</description> </shortcut> </shortcuts> </msi> </target> ----------------------------------------------------- Thanks, John Cole ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. ------------------------------------------------------- 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 _______________________________________________ NAntContrib-Developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer