Jim,
I
created a directory named msi_test and unzipped the archive you attached below into it.
The
subdirectories are there under msi_test w/ the required
files.
The
error with addfiles occurs with these
files as well.
Attached is the command file I used to run
NAnt(run.txt- a cmd file, txt so it will
mail), the build file(default.build), and the build
output(out.txt).
Any idea why addFiles is
failing?
Thanks very much in
advance for your help,
Chris.
-----Original Message-----Hi Chris,
From: Jim Geurts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 05, 2005 9:45 AM
To: Cuadras, Christopher (P&C, PL)
Cc: nantcontrib-developer@lists.sourceforge.net
Subject: Re: [NAntC-Dev] InstallerCreationCommand.AddFiles Error
What version of NAntContrib are you using? To generate an install w/ the sample from the wiki, you should use a 0.85 RC release or newer...
I've included a zip that I used to verify that the sample (with minor directory edits) works with the latest code... Just rename the file extension to .zip
Jim
On Apr 5, 2005 8:24 AM, Cuadras, Christopher (P&C, PL) <[EMAIL PROTECTED]> wrote:
I have been experiencing problems running this example msi task from the
wiki:
http://nant.sourceforge.net/wiki/index.php/sample%20build%20file
The problem is, when I run I get this error when the components element is
being processed (addFiles):
C:\TypeFinder\build\NAnt\samp.xml(37,10):
Unable to build Installer database 'MyCompany.MyProduct.msi'.:
NAnt.Core.BuildException: C:\TypeFinder\build\NAnt\samp.xml(37,10):
Unable to build Installer database 'MyCompany.MyProduct.msi'. --->
System.MissingMethodException: Method not found: NAnt.Core.Element
NAnt.Core.Element.InitializeBuildElement(NAnt.Core.Element,
System.Xml.XmlNode, NAnt.Core.Element, System.Type).
at
NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.AddFiles(InstallerDatabase
database, InstallerTable directoryTable, MSIComponent Component,
InstallerTable fileTable, String ComponentDirectory, String ComponentName,
Int32& Sequence, InstallerTable msiAssemblyTable, InstallerTable
msiAssemblyNameTable, InstallerTable componentTable, InstallerTable
featureComponentTable, InstallerTable classTable, InstallerTable
progIdTable, InstallerTable selfRegTable, InstallerTable modComponentTable)
at
NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.LoadComponents(InstallerData
base database, Int32& LastSequence) in
d:\Source\nantcontrib-20050322T055212Z\src\Tasks\Msi\InstallerCreationComman
d.cs:line 2718
at
NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.LoadCommonDataFromTask(Insta
llerDatabase database, Int32& fileSequenceNumber) in
d:\Source\nantcontrib-20050322T055212Z\src\Tasks\Msi\InstallerCreationComman
d.cs:line 2844
at NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.Execute() in
d:\Source\nantcontrib-20050322T055212Z\src\Tasks\Msi\InstallerCreationComman
d.cs:line 2814
--- End of inner exception stack trace ---
at NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.Execute() in
d:\Source\nantcontrib-20050322T055212Z\src\Tasks\Msi\InstallerCreationComman
d.cs:line 2825
at NAnt.Contrib.Tasks.Msi.MsiTask.ExecuteTask() in
d:\Source\nantcontrib-20050322T055212Z\src\Tasks\Msi\MsiTask.cs:line 385
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
I made two changes to the original
1) Added: <loadtasks
assembly="C:/nantcontrib-0.85-nightly-2005-03-31/bin/NAnt.Contrib.Tasks.dll"
/>
To load the contrib task
2) Changed the source.dir property value to c:/TypeFinder/Source
Any and all help would be greatly appreciated.
Chris.
*************************************************************************
PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited. If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
NAntContrib-Developer mailing list
NAntContrib-Developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer
@rem C:\nant-0.85-rc1\bin\NAnt.exe @rem C:\nant-0.85-rc2\bin\NAnt.exe set NANT_CMD=C:\nant-0.85-rc2\bin\NAnt.exe set BUILD_FILE=default.build
%NANT_CMD% -buildfile:%BUILD_FILE% -verbose
default.build
Description: Binary data
C:\msi_test>set NANT_CMD=C:\nant-0.85-rc2\bin\NAnt.exe C:\msi_test>set BUILD_FILE=default.build C:\msi_test>C:\nant-0.85-rc2\bin\NAnt.exe -buildfile:default.build -verbose NAnt 0.85 (Build 0.85.1869.0; rc2; 2/12/2005) Copyright (C) 2001-2005 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/msi_test/default.build Target framework: Microsoft .NET Framework 1.1 Base Directory: C:\msi_test. Target(s) specified: msi [loadtasks] Scanning assembly "NAnt.Contrib.Tasks" for extensions. [loadtasks] Scanning assembly "Interop.MsmMergeTypeLib" for extensions. [loadtasks] Scanning assembly "Interop.StarTeam" for extensions. [loadtasks] Scanning assembly "Interop.WindowsInstaller" for extensions. [loadtasks] Scanning assembly "NAnt.Xsd.Tasks" for extensions. [loadtasks] Scanning assembly "SLiNgshoT.Core" for extensions. [loadtasks] Scanning assembly "SourceSafe.Interop" for extensions. msi: [msi] Building Installer Database 'MyCompany.MyProduct.msi'. [msi] Adding Properties: [msi] ProductName [msi] ProductVersion [msi] Manufacturer [msi] ProductCode [msi] UpgradeCode [msi] TARGETVDIR [msi] TARGETPORT [msi] Adding Directories: [msi] bin [msi] Images [msi] Add Files: BUILD FAILED C:\msi_test\default.build(41,10): Unable to build Installer database 'MyCompany.MyProduct.msi'.: NAnt.Core.BuildException: C:\msi_test\default.build(41,10): Unable to build Installer database 'MyCompany.MyProduct.msi'. ---> System.MissingMethodException: Method not found: NAnt.Core.Element NAnt.Core.Element.InitializeBuildElement(NAnt.Core.Element, System.Xml.XmlNode, NAnt.Core.Element, System.Type). at NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.AddFiles(InstallerDatabase database, InstallerTable directoryTable, MSIComponent Component, InstallerTable fileTable, String ComponentDirectory, String ComponentName, Int32& Sequence, InstallerTable msiAssemblyTable, InstallerTable msiAssemblyNameTable, InstallerTable componentTable, InstallerTable featureComponentTable, InstallerTable classTable, InstallerTable progIdTable, InstallerTable selfRegTable, InstallerTable modComponentTable) at NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.LoadComponents(InstallerDatabase database, Int32& LastSequence) in d:\Source\nantcontrib-20050322T055212Z\src\Tasks\Msi\InstallerCreationCommand.cs:line 2718 at NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.LoadCommonDataFromTask(InstallerDatabase database, Int32& fileSequenceNumber) in d:\Source\nantcontrib-20050322T055212Z\src\Tasks\Msi\InstallerCreationCommand.cs:line 2844 at NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.Execute() in d:\Source\nantcontrib-20050322T055212Z\src\Tasks\Msi\InstallerCreationCommand.cs:line 2814 --- End of inner exception stack trace --- at NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.Execute() in d:\Source\nantcontrib-20050322T055212Z\src\Tasks\Msi\InstallerCreationCommand.cs:line 2825 at NAnt.Contrib.Tasks.Msi.MsiTask.ExecuteTask() in d:\Source\nantcontrib-20050322T055212Z\src\Tasks\Msi\MsiTask.cs:line 385 at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() Total time: 0.8 seconds.