Old 15th November 2007, 20:33   #1
xirisone
Junior Member
 
Join Date: Feb 2007
Posts: 19
compress to a zip file with NSIS?

Hi,

I want the installer to put some files on the target machine to a ZIP file -> compress, don't extract.

Can someone point me to the right direction? All I found so far is how to extract files )-:

xirisone
xirisone is offline   Reply With Quote
Old 15th November 2007, 21:19   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Best bet is to use the 7za.exe command-line tool that comes with 7-zip.
http://www.7-zip.org

Stu
Afrow UK is offline   Reply With Quote
Old 16th November 2007, 10:43   #3
xirisone
Junior Member
 
Join Date: Feb 2007
Posts: 19
Hmm... that would mean I put the 7za.exe into the installer and call it after the installer extracted it's files to some tmp-Dir?
Then I must call 7za.exe synchronously from within the installer, the files get zipped, 7za returns, the installer finished and deletes all tmp-files including the 7za.exe.
Is this the way?

TIA xiris

BTW: I didn't find "7za.exe" after installing 7-ZIP (7z456.exe). Only "7z.exe" is available but this file needs "7z.dll" as well.
Is there a seperate download for "7za.exe" ?

Last edited by xirisone; 16th November 2007 at 11:17.
xirisone is offline   Reply With Quote
Old 16th November 2007, 11:39   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Get the command line version from the download page.
http://www.7-zip.org/download.html

Stu
Afrow UK is offline   Reply With Quote
Old 16th November 2007, 12:44   #5
xirisone
Junior Member
 
Join Date: Feb 2007
Posts: 19
@Stu
I'm blind... hit me )-:
Sorry - didn't see that link.
xiris
xirisone is offline   Reply With Quote
Old 28th October 2015, 05:08   #6
manlypullock
Junior Member
 
Join Date: Oct 2015
Posts: 1
zip

try this one.....7-Zip 9.20

Pullock
manlypullock is offline   Reply With Quote
Old 28th October 2015, 08:18   #7
meoit
Senior Member
 
Join Date: Oct 2014
Location: $DESKTOP
Posts: 100
Put all your archivers in rar/7z, add password by using CommandLine. Load Function .OnInit for Installer.
meoit is offline   Reply With Quote
Old 28th October 2015, 08:24   #8
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
Quote:
Originally Posted by meoit View Post
add password by using CommandLine.
That's a bad idea bacause it's very easy to snoop the password. Anyway, the OP never mentioned the need to use passwords.
Yathosho 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