Title: Message
Thanks James
 
I've managed to cobble together a build file using the nantcontrib as the example. However I think I might have missed something, because I get the error below when I run the build (file attached). Any pointers in the right direction are appreciated.
 
 
msi:
 
      [msi] Building MSI Database "Kensington.msi".
      [msi] Storing Banner:
        C:\MyProjects\Kensington\TestSolution\Kensington\Bliss.bmp
      [msi] Storing Background:
        C:\MyProjects\Kensington\TestSolution\Kensington\Bliss.bmp
      [msi] Storing License:
        C:\MyProjects\Kensington\TestSolution\Kensington\license.rtf
      [msi] Adding Properties:
        ProductName
        ProductVersion
        Manufacturer
        ProductCode
        UpgradeCode
      [msi] Adding Directories:
        C:\MyProjects\Kensington\TestSolution\Kensington
      [msi] Add Files:
Total time: 1 seconds.
 
BUILD FAILED
 
      [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 Compon
ent, View FileView, Type InstallerType, Object InstallerObject, String ComponentDirectory, String Co
mponentName, Int32& ComponentCount, Int32& Sequence, View MsiAssemblyView, View MsiAssemblyNameView,
 View ComponentView, View FeatureComponentView, View ClassView, View ProgIdView, View SelfRegView)
   at NAnt.Contrib.Tasks.MSITask.LoadComponents(Database Database, Type InstallerType, Object Instal
lerObject, Int32& LastSequence, View MsiAssemblyView, View MsiAssemblyNameView, View DirectoryView,
View ClassView, View ProgIdView)
   at NAnt.Contrib.Tasks.MSITask.ExecuteTask()
-----Original Message-----
From: James Geurts [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 15:46
To: 'Sam Akiwumi'; [EMAIL PROTECTED]
Subject: RE: [NAntC-Dev] MSITask usage and documentation

Hey Sam,

 

There are not very many examples on the MSI task usage.  However, you could look at some of the build scripts for NAnt contrib.  They are old, but they should still serve a purpose of demonstrating how to use the task.

 

A sample build file with virtual directory support: http://nant.sourceforge.net/wiki/index.php/sample%20build%20file

Older build file to create an MSI and separate merge modules of NAnt and NAntContrib: http://cvs.sourceforge.net/viewcvs.py/*checkout*/nantcontrib/NAntContrib/NAntContribInstall.include?content-type=text%2Fplain&rev=1.7

 

If you have other questions related to the task, please post them here.

 

Jim

 

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam Akiwumi
Sent: Tuesday, January 20, 2004 9:54 AM
To: [EMAIL PROTECTED]
Subject: [NAntC-Dev] MSITask usage and documentation

 

Hello

 

Is there a guide or example of how to use the MSITask? I haven't already looked at the schema and the Wiki FAQ guide but I'm interested in seeing actual examples of usage.

 

Many thanks

Sam

Attachment: Kensington.build
Description: Binary data

Reply via email to