Statistiques
| Révision :

root / tmp / org.txm.setups / nsis / Examples / example1.nsi @ 1123

Historique | Voir | Annoter | Télécharger (908 octet)

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