Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CabArc error when expanding CAB file

196 views
Skip to first unread message

Julia Beresford

unread,
Jul 25, 2005, 7:34:02 AM7/25/05
to
My apologies as this is not strictly related to this newsgroup, but some of
you guys might have had experience using CabArc.exe…

I need to programmatically expand a CAB file (the project is to
automatically convert CAB/INF files to MSI). To do this I’m using
CabArc.exe. When I run CabArc on a CAB via the DOS prompt it works fine.
When I run CabArc programmatically (via a batch file using the Shell command
in VB) I get the following error:

-- Error opening 'filename.ext’ for output FDICopy() failed: code 11 [User
aborted]

NOTE: With some CAB files I don’t get an error – I seem to get errors with
large cab files.

I also tried with Extract.exe and although I got a different error (file
name too long, although I don’t think it was) it still failed
programmatically and succeeded via the DOS prompt.

I would be grateful for any clues as to what might be going on here.

Many thanks

Julia Beresford

Richard [Microsoft Windows Installer MVP]

unread,
Jul 25, 2005, 12:13:33 PM7/25/05
to
[Please do not mail me a copy of your followup]

=?Utf-8?B?SnVsaWEgQmVyZXNmb3Jk?= <JuliaBe...@discussions.microsoft.com> spake the secret code
<5FFD0AC4-B9D0-46F1...@microsoft.com> thusly:

>My apologies as this is not strictly related to this newsgroup, but some of

>you guys might have had experience using CabArc.exe [...]

I use 'extrac32 /e <cab file>' and it has never failed. When running
from inside your code, check that your current directory is something
meaningful. This is usually what trips you up when you do it from the
command prompt and it works and you do it from code and it fails.
--
"The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ:
<http://www.xmission.com/~legalize/book/>
Pilgrimage: Utah's annual demoparty
<http://pilgrimage.scene.org>

Julia Beresford

unread,
Jul 26, 2005, 5:11:01 AM7/26/05
to
You pointed me in the right direction - the problem was that although I had
set a valid path, when extracting the contents of the CAB to that path the
max length for a path (255 chars i believe) was being exceeded.

Many thanks.

0 new messages