Jake,
Are you sure that you are running 0.8.3 final ? I found a checkin for MsiTask.cs dated 8/3/2003 with the following comment:


"- The componentFiles fileset requires a Parent, otherwise a null
reference exception will be thrown."
which looks suspiciously like your issue. That commit date would mean that the fix should be in both 0.8.3rc3 and 0.8.3 final.
As I said your sample builds fine for me against 0.8.3 final.
I notice that your Build.bat looks to be picking up nant from the path. Is it possible that you have an older version hanging around ?


Ian

I seem to be having a ton of trouble communicating with this list......

He we go again:

I tried to send a zip file with a complete example but it apparently was too big. I'll email that to anybody who asks for it individually. Below is an example of a build script that worked with build 0.8.1 but does not work with 0.8.3:

<?xml version="1.0" encoding="utf-8" ?>
<project name="RedPark" default="msi" >

<target name="msi" description="Build MSI install for Red Park Demo">
<property name="installsource.dir" value="E:\SourceCode\trashcode\Installers\nant" />


<msi
output="Redpark.msi"
sourcedir="."
banner="logo.bmp"
license="license.rtf"
debug="true"
verbose="true"
>
<properties>
<property name="ProductName" value="Red Park" />
<property name="ProductVersion" value="1.0" />
<property name="Manufacturer" value="Enron accounting"/>
<property name="ProductCode" value="{2D2FB50C-DADF-4813-8932-8EF1E8CB8E80}" />
<property name="UpgradeCode" value="{B989702A-035F-44F1-B40D-192BA25DECB7}" />
</properties>


<directories>
<directory name="REDPARK_FOLDER" foldername="RedPark" root="ProgramFilesFolder">
<directory name="ARTS_FOLDER" foldername="Arts" />
<directory name="SPORT_FOLDER" foldername="Sports" />
<directory name="MONDIR" foldername="Gate" />
</directory>
</directories>


<features>
<feature name="DefaultFeature" title="Red Park" display="1" typical="true" directory="REDPARK_FOLDER">
<description>Red park editor.</description>
</feature>
</features>


<components>
<component name="RedParkFiles" id="{ECDD456D-CC0B-4836-AD12-868DB2AB4C7B}" attr="2" directory="REDPARK_FOLDER" feature="DefaultFeature">
<key file="redpark.exe" />
<fileset basedir="RedPark">
<includes name="readme.txt" />
<includes name="help.txt" />
<includes name="redpark.exe" />
</fileset>
</component>
</components>


        </msi>
    </target>
</project>





Jake Watkins
[EMAIL PROTECTED]






From: Ian MacLean <[EMAIL PROTECTED]>
To: Runs Screaming <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [Nant-users] MSITask issue - Please help
Date: Fri, 12 Sep 2003 00:46:41 +0900

please post your script.

Ian

I'm trying to polish off a build by producing an MSI and I'm running in to some issues with the last release of nant (0.8.3 final). I had previously been able to produce an MSI w/ NANT 0.8.1 w/o too much hassle. Now I constantly get the following exception:


[msi] ERROR: System.NullReferenceException thrown:
Object reference not set to an instance of an object.
at NAnt.Core.DataTypeBase.InitializeElement(XmlNode elementNode)
at NAnt.Core.Types.FileSet.InitializeElement(XmlNode elementNode)
at NAnt.Core.Element.Initialize(XmlNode elementNode)
at NAnt.Contrib.Tasks.MSITask.AddFiles(Database Database, View DirectoryView,
MSIComponent Component, View FileView, Type InstallerType, Object InstallerObje
ct, String ComponentDirectory, String ComponentName, Int32& ComponentCount, Int3
2& Sequence, View MsiAssemblyView, View MsiAssemblyNameView, View ComponentView,
View FeatureComponentView, View ClassView, View ProgIdView, View SelfRegView)
at NAnt.Contrib.Tasks.MSITask.LoadComponents(Database Database, Type Installe
rType, Object InstallerObject, Int32& LastSequence, View MsiAssemblyView, View M
siAssemblyNameView, View DirectoryView, View ClassView, View ProgIdView)
at NAnt.Contrib.Tasks.MSITask.ExecuteTask():
NAnt.Core.BuildException: [msi] ERROR: System.NullReferenceException throw
n:
Object reference not set to an instance of an object.
at NAnt.Core.DataTypeBase.InitializeElement(XmlNode elementNode)
at NAnt.Core.Types.FileSet.InitializeElement(XmlNode elementNode)
at NAnt.Core.Element.Initialize(XmlNode elementNode)
at NAnt.Contrib.Tasks.MSITask.AddFiles(Database Database, View DirectoryView,
MSIComponent Component, View FileView, Type InstallerType, Object InstallerObje
ct, String ComponentDirectory, String ComponentName, Int32& ComponentCount, Int3
2& Sequence, View MsiAssemblyView, View MsiAssemblyNameView, View ComponentView,
View FeatureComponentView, View ClassView, View ProgIdView, View SelfRegView)
at NAnt.Contrib.Tasks.MSITask.LoadComponents(Database Database, Type Installe
rType, Object InstallerObject, Int32& LastSequence, View MsiAssemblyView, View M
siAssemblyNameView, View DirectoryView, View ClassView, View ProgIdView)
at NAnt.Contrib.Tasks.MSITask.ExecuteTask()
at NAnt.Contrib.Tasks.MSITask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()


I create a very simple build script that produces the error with 0.8.3 but not 0.8.1 if it would help. I don't want to spam everybody with it so its not attached. Please ask and I'll send it out.

Any help would be greatly apperciated.



Jake Watkins
[EMAIL PROTECTED]

_________________________________________________________________
Use custom emotions -- try MSN Messenger 6.0! http://www.msnmessenger-download.com/tracking/reach_emoticon




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users






_________________________________________________________________
Fast, faster, fastest: Upgrade to Cable or DSL today! https://broadband.msn.com




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users






-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to