Old 16th March 2005, 04:56   #1
wege
Junior Member
 
Join Date: Mar 2005
Posts: 3
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.
wege is offline   Reply With Quote
Old 16th March 2005, 18:16   #2
HGOwen
Junior Member
 
Join Date: Feb 2005
Posts: 4
Actually, thats why theres a 7zA.exe file

7ZA includes everything needed for 7Z internaly
HGOwen is offline   Reply With Quote
Old 16th March 2005, 19:25   #3
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
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
Comm@nder21 is offline   Reply With Quote
Old 16th March 2005, 19:31   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You need to use 7za.exe like HGOwen has pointed out. 7za.exe is the standalone version of 7-Zip.

-Stu
Afrow UK is offline   Reply With Quote
Old 16th March 2005, 20:04   #5
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
/me still wishes there was a un7z plugin for nsis
Yathosho is offline   Reply With Quote
Old 16th March 2005, 21:25   #6
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
try winrar...

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 16th March 2005, 21:36   #7
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Quote:
I'm using RAR32 for DOS from now on. Dammit.
He got generally annoyed because he used the wrong 7-Zip command-line executable

-Stu
Afrow UK is offline   Reply With Quote
Old 16th March 2005, 22:10   #8
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
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.

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 17th March 2005, 02:57   #9
Mad Doggie
Junior Member
 
Join Date: Sep 2003
Location: Roswell, GA
Posts: 44
Quote:
Originally posted by Yathosho
/me still wishes there was a un7z plugin for nsis
(++)++

Cheers!

Luke
Mad Doggie is offline   Reply With Quote
Old 17th March 2005, 07:43   #10
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Quote:
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 UK is offline   Reply With Quote
Old 17th March 2005, 08:49   #11
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
@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.

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump