2002-08-02 10:01:35 +00:00
|
|
|
; example1.nsi
|
|
|
|
;
|
|
|
|
; This script is perhaps one of the simplest NSIs you can make. All of the
|
2002-11-22 17:10:51 +00:00
|
|
|
; optional settings are left to their default settings. The installer simply
|
2005-08-14 11:17:19 +00:00
|
|
|
; prompts the user asking them where to install, and drops a copy of example1.nsi
|
2002-08-02 10:01:35 +00:00
|
|
|
; there.
|
2020-04-13 19:16:10 +00:00
|
|
|
;
|
|
|
|
; example2.nsi expands on this by adding a uninstaller and start menu shortcuts.
|
2003-03-11 20:44:48 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
2002-08-02 10:01:35 +00:00
|
|
|
|
|
|
|
; The name of the installer
|
|
|
|
Name "Example1"
|
|
|
|
|
|
|
|
; The file to write
|
|
|
|
OutFile "example1.exe"
|
|
|
|
|
2008-01-27 17:44:55 +00:00
|
|
|
; Request application privileges for Windows Vista
|
|
|
|
RequestExecutionLevel user
|
|
|
|
|
2019-02-11 16:04:47 +00:00
|
|
|
; Build Unicode installer
|
|
|
|
Unicode True
|
|
|
|
|
|
|
|
; The default installation directory
|
|
|
|
InstallDir $DESKTOP\Example1
|
|
|
|
|
2003-09-05 15:16:15 +00:00
|
|
|
;--------------------------------
|
|
|
|
|
|
|
|
; Pages
|
|
|
|
|
|
|
|
Page directory
|
|
|
|
Page instfiles
|
2002-08-02 10:01:35 +00:00
|
|
|
|
2003-03-11 20:44:48 +00:00
|
|
|
;--------------------------------
|
|
|
|
|
2002-08-02 10:01:35 +00:00
|
|
|
; The stuff to install
|
2003-03-14 10:15:31 +00:00
|
|
|
Section "" ;No components page, name is not important
|
2003-03-11 20:44:48 +00:00
|
|
|
|
2002-08-02 10:01:35 +00:00
|
|
|
; Set output path to the installation directory.
|
|
|
|
SetOutPath $INSTDIR
|
2003-03-11 20:44:48 +00:00
|
|
|
|
2002-08-02 10:01:35 +00:00
|
|
|
; Put file there
|
2005-08-14 11:17:19 +00:00
|
|
|
File example1.nsi
|
2003-03-11 20:44:48 +00:00
|
|
|
|
2021-08-25 17:36:17 +00:00
|
|
|
SectionEnd
|