Archive: untgz error


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?


You should contact the plug-in author.


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...


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?


What kind of program? Is the installer executing the program, or will it already have been executed before hand?

-Stu


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?


Simple answer: use nsExec::Exec
If you want to show the output in the installation window, use nsExec::ExecToLog.

-Stu


Thank you kindly!