Size: 1099
Comment:
|
← Revision 10 as of 2013-10-01 17:45:57 ⇥
Size: 2030
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
== Simple install of file.txt== | [[http://prdownloads.sourceforge.net/nsis/nsis-2.46-setup.exe?download]] Real world installers: [[http://nsis.sourceforge.net/Category:Real_World_Installers]] == SlackBuild 32 bit == * su * cd /tmp * wget http://slackbuilds.org/slackbuilds/14.0/development/nsis.tar.gz * tar xvzf nsis.tar.gz * cd nsis * wget http://downloads.sourceforge.net/nsis/nsis-2.46-src.tar.bz2 * wget http://downloads.sourceforge.net/nsis/nsis-2.46.zip * chmod 755 nsis.SlackBuild * ./nsis.SlackBuild == Debian Wheezy (7.0 32 bit) / Ubuntu Precise32 == * apt-get install scons * apt-get install nsis * makensis test.nsis == Create installer on Windows == Path to run script '''c:\program files (x86)\nsis\makensis.exe''' . == Simple install of file.txt == Sample test.nsi. The file test.txt must be on the same folder/level of test.nsi. |
Line 21: | Line 46: |
Sample test.nsi. The file file1.txt,file2.txt and file3.txt must be on the same folder/level of test.nsi. |
nsis
NSIS (Nullsoft Scriptable Install System) is a professional open source system to create Windows installers.
http://prdownloads.sourceforge.net/nsis/nsis-2.46-setup.exe?download
Real world installers: http://nsis.sourceforge.net/Category:Real_World_Installers
SlackBuild 32 bit
- su
- cd /tmp
wget http://slackbuilds.org/slackbuilds/14.0/development/nsis.tar.gz
- tar xvzf nsis.tar.gz
- cd nsis
wget http://downloads.sourceforge.net/nsis/nsis-2.46-src.tar.bz2
chmod 755 nsis.SlackBuild
./nsis.SlackBuild
Debian Wheezy (7.0 32 bit) / Ubuntu Precise32
- apt-get install scons
- apt-get install nsis
- makensis test.nsis
Create installer on Windows
Path to run script c:\program files (x86)\nsis\makensis.exe .
Simple install of file.txt
Sample test.nsi. The file test.txt must be on the same folder/level of test.nsi.
# define the name of the installer outfile "SimpleInstaller.exe" # define the directory to install to, the desktop in this case as specified # by the predefined $DESKTOP variable installDir $DESKTOP # default section Section # define the output path for this file setOutPath $INSTDIR # define what to install and place it in the output path File test.txt SectionEnd
Simple install of file1.txt,file2.txt and file3.txt with uninstaller
Sample test.nsi. The file file1.txt,file2.txt and file3.txt must be on the same folder/level of test.nsi.
#set product name !define PROGRAM_NAME "ProgName" #installer name OutFile "InstallerX.exe" #installation dir InstallDir "$PROGRAMFILES\${PROGRAM_NAME}" Section "Install" #target dir SetOutPath "$INSTDIR" File "file1.txt" File "file2.txt" File "file3.txt" WriteUninstaller "$INSTDIR\Uninstall.exe" SectionEnd Section "Uninstall" #delete files rmdir /r "$INSTDIR\*.*" #delete folder rmdir "$INSTDIR" SectionEnd