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

Debian Wheezy (7.0 32 bit) / Ubuntu Precise32

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

nsis (last edited 2013-10-01 17:45:57 by bl13-29-23)