Hi everyone,
I'm trying to create myfirst msi, and obviously I run into problem.
Below my script :
<project name="Build.Core" default="help">
<description>Build file to perform core common
functionality.</description>
<!-- Load the different external assemblies required-->
<loadtasks
assembly="C:\Users\Servers\nantcontrib\bin\NAnt.Contrib.Tasks.dll"/>
<msi
sourcedir="C:\Users\Builder\BuildArea\publish\Importer\Release\bin\"
output="Importer.msi"
template="C:\Users\Servers\nantcontrib\bin\MSITaskTemplate.msi"
errortemplate="C:\Users\Servers\nantcontrib\bin\MSITaskErrors.mst"
verbose="true">
<properties>
<property name="ProductName" value="Myproduct" />
<property name="ProductVersion" value="1" />
<property name="Manufacturer" value="Mycompany" />
<property name="ProductCode" value="{}" />
<property name="UpgradeCode" value="{}" />
</properties>
</msi>
</project>
Create the following error:
NAnt 0.86 (Build 0.86.2898.0; beta1; 08/12/2007)
Copyright (C) 2001-2007 Gerry Shaw
http://nant.sourceforge.net
Buildfile:
file:///C:/Users/agaudin/dev/ECI/trunk/Softic/EWS/Builds/msi.build.xm
l
Target framework: Microsoft .NET Framework 3.5
Base Directory: C:\Users\agaudin\dev\ECI\trunk\Softic\EWS\Builds.
Target(s) specified: help
[loadtasks] Scanning assembly "NAnt.Contrib.Tasks" for extensions.
[msi] Building Installer Database 'Importer.msi'.
[msi] Adding Properties:
[msi] ProductName
[msi] ProductVersion
[msi] Manufacturer
[msi] ProductCode
[msi] UpgradeCode
[msi] Compressing Files...
[exec] Starting 'cabarc (-r N
C:\Users\Builder\BUILDA~1\publish
\Importer\Release\bin\\Importer.cab *)' in 'C:\Documents and
Settings\agaudin\Lo
cal Settings\Temp\tmpE3.tmp'
BUILD FAILED
C:\Users\agaudin\dev\ECI\trunk\Softic\EWS\Builds\msi.build.xml(7,2):
Unable to build Installer database 'Importer.msi'.:
NAnt.Core.BuildException:
C:\Users\agaudin\dev\ECI\trunk\Softic\EWS\Builds\msi.b
uild.xml(7,2):
Unable to build Installer database 'Importer.msi'. --->
C:\Users\agaudin\dev\ECI
\trunk\Softic\EWS\Builds\msi.build.xml(7,2):
Error creating cab file.:
NAnt.Core.BuildException:
C:\Users\agaudin\dev\ECI\trunk\Softic\EWS\Builds\msi.b
uild.xml(7,2):
*Error creating cab file. ---> 'cabarc' failed to start.:
NAnt.Core.BuildException: 'cabarc' failed to start. --->
System.ComponentModel.W
in32Exception: The directory name is invalid
* at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo
startIn
fo)
at System.Diagnostics.Process.Start()
at NAnt.Core.Tasks.ExternalProgramBase.StartProcess()
--- End of inner exception stack trace ---
at NAnt.Core.Tasks.ExternalProgramBase.StartProcess()
at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask()
at NAnt.Core.Tasks.ExecTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at
NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.CreateCabFile(InstallerDat
abase database)
--- End of inner exception stack trace ---
at
NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.CreateCabFile(InstallerDat
abase database)
at NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.Execute()
--- End of inner exception stack trace ---
at NAnt.Contrib.Tasks.Msi.InstallerCreationCommand.Execute()
at NAnt.Contrib.Tasks.Msi.MsiTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Project.InitializeProjectDocument(XmlDocument doc)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
Total time: 2.6 seconds.
I' m wondering if I need a mergemodules element, and what is the role of the
msn task, I'm lost in the concept.
If someone could explain it to me, or else give some indication to but me in
the right direction, it will be deadly!!!
Thanks a lot for any help.
Superfly
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users