Size: 1367
Comment:
|
Size: 1463
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
== Create installer == Path to run script '''c:\program files (x86)\nsis\makensis.exe''' . |
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
Create installer
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