|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Re: msi task - 'cabarc' failed to startDoes anyone else have any ideas? I've got verbose=true switched on and I've tried setting the path to cabarc and mergemod in the Path system variable on my machine (as opposed to setting it in NAnt) but I'm still getting the same error. My NAnt script resides in C:/code/Project/trunk, which is where I'm running it from (ie I open a command prompt and then navigate to that folder and run NAnt). I would assume my working directory is the directory I run NAnt from. Does anyone have any ideas as to why cabarc is trying to find this file -> 'C:\Documents and Settings\user\Local Settings\Temp\tm In case it's of any use, here's a copy of my msi task:
<msi sourcedir="${build.current.dir}" output="${msi.file}" verbose="true"> <directories> <features> </msi>
From: nant-users-bounces@... [mailto:nant-users-bounces@...] On Behalf Of rkjmailcentre-mailinglists@...
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... Failure:
C:\code\Project-SVN\trunk\default.build(317,6): 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. ------------------------------------------------------------------------- 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@... https://lists.sourceforge.net/lists/listinfo/nant-users |
|
|
Re: msi task - 'cabarc' failed to startTry running the build in debug mode (NAnt.exe -debug),
and send me the resulting output.
Gert From: nant-users-bounces@... [mailto:nant-users-bounces@...] On Behalf Of rkjmailcentre-mailinglists@... Sent: dinsdag 18 maart 2008 9:50 To: nant-users@... Subject: Re: [NAnt-users] msi task - 'cabarc' failed to start Does anyone else have any ideas? I've got verbose=true switched on and I've tried setting the path to cabarc and mergemod in the Path system variable on my machine (as opposed to setting it in NAnt) but I'm still getting the same error. My NAnt script resides in C:/code/Project/trunk, which is where I'm running it from (ie I open a command prompt and then navigate to that folder and run NAnt). I would assume my working directory is the directory I run NAnt from. Does anyone have
any ideas as to why cabarc is trying to find this file -> 'C:\Documents and Settings\user\Local
Settings\Temp\tm In case it's of any use, here's a copy of my msi task:
<msi sourcedir="${build.current.dir}" output="${msi.file}"
verbose="true">
<directories>
<features> </msi>
From:
nant-users-bounces@...
[mailto:nant-users-bounces@...] On Behalf Of
rkjmailcentre-mailinglists@...
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... Failure:
C:\code\Project-SVN\trunk\default.build(317,6): 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. ------------------------------------------------------------------------- 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@... https://lists.sourceforge.net/lists/listinfo/nant-users |
|
|
Re: msi task - 'cabarc' failed to starthi,
there is some probs with microsoft support tools, just few days back I was also facing the same problem but now I am not getting this error. Resolution: First of u need to create a setup project (any sample project) using .NET IDE and install that project in your system. then it will activate your 'cabarc' file to run in your system. What I am thinking here initially NantContrib is not able to activate this file thats why its not starting. so first u have to activate this then u run the msi build script..... best of luck. I think it will wor. :)
|
| Free Forum Powered by Nabble | Forum Help |