Hi all,
I'm new to NAnt and I'm trying to set up our project for automated builds but 
am having no success. I'm currently trying to use the msi task to build the msi 
for our project but it keeps failing with the following message:
 
      [msi] Compressing Files...
                 [exec] Starting 'cabarc (-r N 
C:\code\PROJECT~3\trunk\builds\lat
est\Project.cab *)' in 'C:\Documents and Settings\user\Local Settings\Temp\tm
p177B.tmp'
Failure:

BUILD FAILED
C:\code\Project-SVN\trunk\default.build(317,6):
Unable to build Installer database 'Deploy\Project.msi'.
    C:\code\Project-SVN\trunk\default.build(317,6):
    Error creating cab file.
        'cabarc' failed to start.
            The system cannot find the file specified

I've added cabarc and mergemodule to the path using the following code: 
 
<!-- Retrieve the path to visual studio from the registry -->
<readregistry property="visualstudio.dir" 
key="SOFTWARE\Microsoft\VisualStudio\8.0\InstallDir"
hive="LocalMachine" />
<echo>Visual Studio path: ${visualstudio.dir}</echo>
<property name="cabarc.dir" value="${string::replace(visualstudio.dir, 'IDE\', 
'Tools\Bin\CabArc.exe')}"/>
<property name="mergemod.dir" value="C:\Program Files\Common Files\Microsoft 
Shared\MSI Tools\mergemod.dll"/>
<setenv name="PATH" path ="${cabarc.dir};${mergemod.dir};%PATH%"/>
<echo>Path: ${environment::get-variable('PATH')}</echo>
 
The echo task shows the paths to cabarc and mergemod have been added to the 
Path environment variable so it should be able to find them. A friend suggested 
that maybe spaces in the path are causing the problem but I don't know which 
path in particular they were referring to. From what I've seen, the fix for 
that issue should be in the version of NAnt I'm using (0.85) anyway though. 
Does anyone have any other ideas??
FYI - it's a C# Winforms project using .NET 2.0.  We want to be able to remove 
visual studio from the build machine in the future but right now I'm just 
trying to get a build that works. Any example build files would be gratefully 
accepted! Most of the good examples I've seen have been for Web projects :(
Thanks,
K.


      Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/y7mail

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to