Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   create NSIS installer with 7z or zip? (http://forums.winamp.com/showthread.php?t=314536)

pizzaM4N 11th November 2009 15:26

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.
http://img262.imageshack.us/img262/2931/64904025.jpg

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

Yathosho 11th November 2009 17:52

there's a plugin for nsis to extract 7-zip archives. search the forum!

pizzaM4N 11th November 2009 19:50

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

MSG 12th November 2009 05:20

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


All times are GMT. The time now is 17:21.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.