My installation has the following directory hierarchy/structure:

<Main_Install_Folder>
        <Subdir />
        <Subdir />
        <Subdir />
                <Sub_SubDir />>
        <Subdir />
</Main_Install_Folder>

All files in all components saved to the Main_Install_Folder are added to the MSI without a problem.

When the msi task hits one of the subdirectory components (with multiple files to be included), only the first file is added, followed by this error:

Unable to build MSI database 'C:\earthit\users\quinby\SIS_build_0.85\install_test\sis-install-0.0.0.9.msi'.
Object reference not set to an instance of an object.


If I comment out the offending subdir, the next subdir exhibits the same behavior.

I was previously directed by Jim to look at the MSITask.xsd schema at the following link:

http://cvs.sourceforge.net/viewcvs.py/nantcontrib/NAntContrib/src/Tasks/Msi/MsiTask.xsd?rev=1.7&view=auto

At the top of the page is mention of the keepsubdirs attribute -- I've incorporated this xsd into my implementation of nant and played around with this attribute but am still getting this error. Am I on the right track here?

Excerpts of my components are as follows:

<component name="C_Main" id="{0E2DE7A7-6F89-4a99-9368-807676F920E4}" attr="2" directory="MAINFOLDER" feature="DefaultFeature" keepsubdirs="true">
<key file="SIS.exe" />
<fileset basedir="${build.dir}">
<include name="SIS.exe" />
</fileset>
</component>
<component name="C_Resources" id="{A2BDA996-8440-49E7-A4F7-3AB254C98D2B}" attr="2" directory="SUBFOLDER" feature="DefaultFeature">
<key file="crops.txt" />
<fileset basedir="${build.dir}\resources">
<include name="crops.txt" />
<include name="divervehicles.txt" />
</fileset>
</component>




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to