root / tmp / org.txm.setups / nsis-2.5 / Examples / example1.nsi @ 3095
Historique | Voir | Annoter | Télécharger (908 octet)
1 |
; example1.nsi |
---|---|
2 |
; |
3 |
; This script is perhaps one of the simplest NSIs you can make. All of the |
4 |
; optional settings are left to their default settings. The installer simply |
5 |
; prompts the user asking them where to install, and drops a copy of example1.nsi |
6 |
; there. |
7 |
|
8 |
;-------------------------------- |
9 |
|
10 |
; The name of the installer |
11 |
Name "Example1" |
12 |
|
13 |
; The file to write |
14 |
OutFile "example1.exe" |
15 |
|
16 |
; The default installation directory |
17 |
InstallDir $DESKTOP\Example1 |
18 |
|
19 |
; Request application privileges for Windows Vista |
20 |
RequestExecutionLevel user |
21 |
|
22 |
;-------------------------------- |
23 |
|
24 |
; Pages |
25 |
|
26 |
Page directory |
27 |
Page instfiles |
28 |
|
29 |
;-------------------------------- |
30 |
|
31 |
; The stuff to install |
32 |
Section "" ;No components page, name is not important |
33 |
|
34 |
; Set output path to the installation directory. |
35 |
SetOutPath $INSTDIR |
36 |
|
37 |
; Put file there |
38 |
File example1.nsi |
39 |
|
40 |
SectionEnd ; end the section |