Here is a more accurate output of the msi task that I sent earlier -- I had an additional SIS directory in the ProgramMenuFolder that I forgot to comment out and it showed up in the output (no big deal but I didn't want to send anyone on the wrong track)

Ted

NAnt 0.85 (Build 0.85.1670.0; net-1.1.win32; nightly; 7/28/2004)
Copyright (C) 2001-2004 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///c:/earthit/users/quinby/SIS_build_0.85/Master.build
Target(s) specified: installtest


installtest:


install:

[msi] Building MSI Database 'C:\earthit\users\quinby\SIS_build_0.85\install_test\sis-install-0.0.0.9.msi'.
[msi] Adding Properties:
[msi] ProductName
[msi] ProductVersion
[msi] Manufacturer
[msi] ProductCode
[msi] ALLUSERS
[msi] Adding Directories:
[msi] SIS
[msi] SIS\config
[msi] SIS\addins
[msi] Add Files:
[msi] C:\earthit\users\quinby\SIS_build_0.85\install_test\SIS\Earthit.SIS.Properties.dll
[msi] C:\earthit\users\quinby\SIS_build_0.85\install_test\SIS\SIS.exe
[msi] C:\earthit\users\quinby\SIS_build_0.85\install_test\SIS\config\DataMgmt.gif


failure:


Build failed

c:\earthit\users\quinby\SIS_build_0.85\Master.build(837,6):
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.


Total time: 1.2 seconds.

At 10:14 AM 7/29/2004, James Geurts wrote:
Hi Ted,

Sorry, I should have mentioned that the xsd file that I pointed you to was
the most recent version, thus only valid for a nightly build of NAntContrib.
Also, the keepsubdirs attribute was just recently added, so it would only be
valid in a very recent nightly build of NAntContrib.

Is there any way you could provide the build script that you are using?
Also, could you provide the entire output w/ error?

Thanks

Jim

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ted Quinby
Sent: Thursday, July 29, 2004 9:37 AM
To: [EMAIL PROTECTED]
Subject: [Nant-users] msi, components, and subdirs

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



------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to