jameshcunningha
28th June 2005 21:09 UTC
untgz error
I'm trying to use untgz to decompress and extract a tar.gz file. It always gets some part of the way through the process, but then stops, spitting out this message:
gzread: error decompressing
Error: Could not read gzread tarball.
I couldn't find any online help about this anywhere. Any tips?
kichik
28th June 2005 21:13 UTC
You should contact the plug-in author.
ElvenProgrammer
28th June 2005 21:16 UTC
Are you sure the file is a valid archive. Try to open it with other applications. I know it's a dumb suggestion, but it happens to forget about easy solutions...
jameshcunningha
28th June 2005 21:24 UTC
Yeah, using command line gzip/tar completes the process fine on the same files. I think that it may have something to do with how the paths are set up, since it appears to be stopping when the directory changes, but that's a wild guess anyway.
however, untgz works on the same files, if they've been decompressed first. I'll go ahead and contact the author.
Pending some resolution there, I suppose I'll set it up to use gzip/tar. Does anyone have any hints about how to stop the executiong of the installer until another program is finished executing?
Afrow UK
28th June 2005 21:32 UTC
What kind of program? Is the installer executing the program, or will it already have been executed before hand?
-Stu
jameshcunningha
28th June 2005 21:42 UTC
Apologies: I should have been more specific.
During the instfiles process, I'm calling gzip to decompress a tar.gz file. This brings up a console window for the duration of the decompression, but the file installation process ends after the command itself is executed.
So the user can hit "next" before the file is finished decompressing, which is very much not what I want. Is there any way to connect the "next" button to the execution of gzip?
Afrow UK
28th June 2005 23:12 UTC
Simple answer: use nsExec::Exec
If you want to show the output in the installation window, use nsExec::ExecToLog.
-Stu
jameshcunningha
29th June 2005 13:57 UTC
Thank you kindly!