Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSIS Installer based on zip?

Tags:

nsis

Does anyone have a basic NSIS script example that is "installer based on zip"? Or could tell me the command? I know NSIS has that tool built in, but I want to edit a script based on that. NSIS only outputs an .exe of the installer based on zip. I would like to start from script code.

Thanks.

like image 216
Teratosis Avatar asked Oct 24 '25 02:10

Teratosis


1 Answers

The zip2exe tool generates a simple script that it passes to makensis, most of the code is in files it includes:

!define ZIP2EXE_COMPRESSOR_ZLIB
!define ZIP2EXE_INSTALLDIR "c:\foo"

!include "${NSISDIR}\Contrib\zip2exe\Base.nsh" ; You could edit this if you wanted to keep using zip2exe
!include "${NSISDIR}\Contrib\zip2exe\Classic.nsh"

!insertmacro SECTION_BEGIN
File "file1fromzip.txt"
File "file2fromzip.exe"
!insertmacro SECTION_END
like image 163
Anders Avatar answered Oct 27 '25 01:10

Anders



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!