Hi Beth,

 

The problem appears to be that the working directory - which is a temporary
directory created by the <msi> task - no longer exists when cabarc is
executed.

 

I'll look into that, and make a new nightly build available that either
fixes this issue (if I find the cause) or adds more tracing to allow me to
find the cause.

 

I'll let you know when it's available. Probably in the next day or two.

 

Gert

 

From: Beth Hechanova [mailto:bhechan...@imsco-us.com] 
Sent: donderdag 29 januari 2009 21:00
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] msi task - 'cabarc' failed to start

 

Gert,

I tried executing cabarc from my build file - that works (at least I get a
.cab file - I'm not sure how the msi file gets generated.)

Executing the msi block gives the same error (pasted again below).

Here's the Distribute target I currently have (with the exec to cabarc
directly):

   <target name="Distribute" description="create installer">

<!--    <echo>Path: ${environment::get-variable('PATH')}</echo> -->

    <msi verbose="true" sourcedir="${BuildAreaPublish}\*"
output="${BuildAreaDistribute}\ContentManagementTool.msi" /> 

      <exec verbose="true" program="cabarc" >

      <arg value="-r" />

      <arg value="N" />

      <arg value="${BuildAreaDistribute}/ContentManagementTool.cab" />

      <arg value="${BuildAreaPublish}\*" />

    </exec>

  </target>

Thanks for your help,

Beth

Target(s) specified: Distribute

Distribute:

      [msi] Building Installer Database
'C:/BuildArea/ContentManagementTool/Distribute\ContentManagementTool.msi'.

      [msi] Compressing Files...

                 [exec] Starting 'cabarc (-r N \ContentManagementTool.cab
*)' in 'C:\Documents and Settings\BHechanova.IMS\Local Settings\Te

mp\tmp429.tmp'

BUILD FAILED

C:\content\ContentTrunk\ContentManagementTool\src\ContentManagementTool.buil
d(179,6):

Unable to build Installer database
'C:/BuildArea/ContentManagementTool/Distribute\ContentManagementTool.msi'.

 
C:\content\ContentTrunk\ContentManagementTool\src\ContentManagementTool.buil
d(179,6):

    Error creating cab file.

        'cabarc' failed to start.

            The directory name is invalid

Total time: 1.1 seconds.

Re: [NAnt-users] msi task - 'cabarc' failed to start

Gert Driesen
Thu, 29 Jan 2009 09:41:45 -0800

Beth,

 

 No, that should do it.

 

 

Can you try just executing cabarc from within your build file first?

 

 

For example:

 

<exec program="cabarc" />

 

 

Gert

 

 

 

 

This email and any files transmitted with it are confidential & proprietary
to Systems and Software Enterprises, Inc. (dba IMS). This information is
intended solely for the use of the individual or entity to which it is
addressed. Access or transmittal of the information contained in this
e-mail, in full or in part, to any other organization or persons is not
authorized. 

 

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.15/1921 - Release Date: 1/29/2009
7:13 AM

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to