Archive: 7-zip messed up


7-zip messed up
Dumb as I were, I used 7-Zip to compress some of the data contained in my installer. Everything seemed fine, but now I came to conclusion that 7z.exe DOES NOT work if you don't have the whole 7-zip program installed.

There's no logical error displayed, only that "data.bin is not valid archive". This "data.bin" is created with 7-zip and is completely valid archive.

If I go to command prompt and type "7z.exe e data.bin -oData" it displays the "not valid blah blah" error, but if I ALT+TAB myself to Explorer, install 7-zip, go back to command prompt and without doing anything else, type the EXACT same command, it works.

Kind of sucks, you know. I obviously can't rely on that someone else has 7-zip installed and if he/she doesn't, there's just a 7z.exe window flashing and not even time to read the error message. I'm using RAR32 for DOS from now on. Dammit.


Actually, thats why theres a 7zA.exe file

7ZA includes everything needed for 7Z internaly :)


if you want to read the error message, call the 7z.exe directly from dos-prompt/cmd-line or this way through a shortcut:
7zip.exe <parameters> > error.txt
then it writes the output into error.txt, where you can read it :)


You need to use 7za.exe like HGOwen has pointed out. 7za.exe is the standalone version of 7-Zip.

-Stu


/me still wishes there was a un7z plugin for nsis :)


try winrar...


I'm using RAR32 for DOS from now on. Dammit.
He got generally annoyed because he used the wrong 7-Zip command-line executable :D

-Stu

ups ^^

i changed from rar to 7za in one project not to brake any law.
rar is smaller in archive (a little bit) and packer but 7zip is under gnu gpl or so.


Originally posted by Yathosho
/me still wishes there was a un7z plugin for nsis :)
(++)++

Cheers!

Luke

Originally posted by Brummelchen
ups ^^

i changed from rar to 7za in one project not to brake any law.
rar is smaller in archive (a little bit) and packer but 7zip is under gnu gpl or so.
That can be true some times but generally 7z has a much better compression ratio than RAR.

I tried RAR on my map database site with a total of 92mB of maps (in Zip format). I tried RAR first, and it came down to 71mB. I then tried 7z and it came right down to 57mB!

However, some guy tried compressing one map in both formats. It was 30mB unpacked, came to 18mB in RAR but came to 21 in 7z he told me. I'm not sure if he packed it properly or not. Perhaps I shall to some more tests some time.

-Stu

@afrow
i only used parameters for unregistered user (rar) and still
use same for 7z - must be possible to open it with any other
archiver and it must not slow down a system. it's a backup
solution and i dont know any user's system except one ;)
best compression is unfortunately not the best solution here.