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.
|
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"
|
|
|
|
|
|
|
|
; The default installation directory
|
2008-02-04 00:49:03 +00:00
|
|
|
InstallDir $DESKTOP\Example1
|
2002-08-02 10:01:35 +00:00
|
|
|
|
2008-01-27 17:44:55 +00:00
|
|
|
; Request application privileges for Windows Vista
|
|
|
|
RequestExecutionLevel user
|
|
|
|
|
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
|
|
|
|
2005-08-14 11:17:19 +00:00
|
|
|
SectionEnd ; end the section
|