Yes. I am able to open the archive using Winzip. However,

        my $zip = Archive::Zip->new();
        my $status = $zip->read( $archive );
        return ( -1 ) if $status != AZ_OK;

fails with the message below. Is there another module that can extract the
archive?

Thanks

Rajesh

-----Original Message-----
From: Andrew Gaffney [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 7:09 AM
To: '[EMAIL PROTECTED]'
Subject: Re: Need to extract an Installshield archive


Rajesh Dorairajan wrote:
> Hello,
> 
> I've an archive (.exe) generated by Installshield that contains the
> distribution. I need to extract it to a temporary location and execute the
> setup.exe from the Bundle. I tried Archive::Zip, but it bombed with the
> message 
> 
> "format error: can't find EOCD signature 
>       
>
Archive::Zip::Archive::_findEndOfCentralDirectory('Archive::Zip::Archive=HAS
> H(0x3cc3240)','IO::File=GLOB(0x3cc4b1c)') called at
> C:/Perl/site/lib/Archive/Zip.pm line 931
>       
>
Archive::Zip::Archive::readFromFileHandle('Archive::Zip::Archive=HASH(0x3cc3
> 240)','IO::File=GLOB(0x3cc4b1c)'"
> 
> I am not sure if Archive::Zip module recognizes the archive created by
> Installshield. Does anybody have a suggestion on how this can be done?
> Perhaps there is another Module that extract the contents? My search on
CPAN
> did not yield any results. Any help will be deeply appreciated.

I don't believe that InstallShield uses the ZIP format for its archive. I do
seem to 
remember that I have been able to open one in either WinRar or WinAce, so it
should be a 
common format.

-- 
Andrew Gaffney


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to