Don't know if this helps Beth, but I wrote an install for Nant so
developers can install it to their machines (mostly because we have some
custom tasks etc) but because our build scripts also create installers, I
included cabarc.exe and cabinet.dll in the install.  These are installed
to the Nant\bin folder, and the MSI task runs fine with just these
installed on a dev machine (no need for the SDK)

 

You might want to give it a go and see if it helps.

 

Cheers,

 

Bill

 

 

  _____  

From: Beth Hechanova [mailto:bhechan...@imsco-us.com] 
Sent: 29 January 2009 20: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.bu
ild(179,6):

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

 
C:\content\ContentTrunk\ContentManagementTool\src\ContentManagementTool.bu
ild(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. 



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

 

IMPORTANT 
The information contained in this e-mail and any attachments is intended for 
the addressee only
and may contain legally privileged or confidential information. If you are not 
the intended
recipient you must not use, disclose, copy, distribute, alter, or take any 
action in reliance
on the information and Avon Insurance plc will not accept liability for any 
loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty or 
representation as to its
accuracy or reliability. If you are not the addressee, please notify us 
immediately on 01789 202121*
and delete the material from your computer and destroy any copies.

Avon Insurance plc reserves the right to monitor and record incoming and 
outgoing email messages for
the purposes of investigating or detecting unauthorised use of its system and 
ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a result 
of any virus being passed on.

Avon Insurance plc (No. 209606).
Registered in England.
Registered Office: Tiddington Road, Stratford-upon-Avon, Warwickshire CV37 7BJ.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of British 
Insurers.
For security and training purposes telephone calls may be recorded and 
monitored.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
------------------------------------------------------------------------------
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