Old 11th November 2009, 15:26   #1
pizzaM4N
Junior Member
 
Join Date: Nov 2009
Posts: 3
Question create NSIS installer with 7z or zip?

Hello,
I want to create an installer for wiles with a total size of 4GB. I am a novice at working with NSIS.
There are 4 zip or 7z files in a folder with the setup(wich I try to create now). Each one is about 1GB big. The setup should unpack this archives to the installation folder (for example c:/programfiles/MyApp) the user choses when he runs the setup.


my code:

SetCompress force
SetCompressor lzma
Name "MyApp"
OutFile "MyApp.exe"
InstallDir "$PROGRAMFILES\MyApp"
Page directory
Page instfiles
Section "MyApp"
SetOutPath $INSTDIR

SectionEnd

Where do I have to edit which command that MyApp.exe unpacks the 4 1GB files to the chosen install folder?

regards pizzaM4N
pizzaM4N is offline   Reply With Quote
Old 11th November 2009, 17:52   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
there's a plugin for nsis to extract 7-zip archives. search the forum!
Yathosho is offline   Reply With Quote
Old 11th November 2009, 19:50   #3
pizzaM4N
Junior Member
 
Join Date: Nov 2009
Posts: 3
I have searched the forum and I read about this plugin, but I am a noob in this.

File "ArchiveName.7z"
Nsis7z::Extract "ArchiveName.7z"
Delete "$OUTDIR/ArchiveName.7z"
GetFunctionAddress $R9 CallbackTest
Nsis7z::ExtractWithCallback "Test.7z" $R9

do I have to write this lines in certain line? If I have to do it, in which one?
Do I need this lines?
!addplugindir "..\Release"
!addplugindir "."
What means this?
Delete "$OUTDIR\Test.7z"
Because of the fact, that I know just some codes I would be very happy if someone can complete my posted installer for the 4 archives.
pizzaM4N is offline   Reply With Quote
Old 12th November 2009, 05:20   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
To learn NSIS, please start with the examples:
NSIS\Examples\example1.nsi and example2.nsi

Then use the command reference to look up what the commands you mentioned do:
http://nsis.sourceforge.net/Docs/Chapter4.html
http://nsis.sourceforge.net/Docs/Chapter5.html
MSG 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