Statistiques
| Révision :

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

Historique | Voir | Annoter | Télécharger (1,01 ko)

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 2956 mdecorde
;
8 2956 mdecorde
; example2.nsi expands on this by adding a uninstaller and start menu shortcuts.
9 728 mdecorde
10 728 mdecorde
;--------------------------------
11 728 mdecorde
12 728 mdecorde
; The name of the installer
13 728 mdecorde
Name "Example1"
14 728 mdecorde
15 728 mdecorde
; The file to write
16 728 mdecorde
OutFile "example1.exe"
17 728 mdecorde
18 2956 mdecorde
; Request application privileges for Windows Vista
19 2956 mdecorde
RequestExecutionLevel user
20 2956 mdecorde
21 2956 mdecorde
; Build Unicode installer
22 2956 mdecorde
Unicode True
23 2956 mdecorde
24 728 mdecorde
; The default installation directory
25 728 mdecorde
InstallDir $DESKTOP\Example1
26 728 mdecorde
27 728 mdecorde
;--------------------------------
28 728 mdecorde
29 728 mdecorde
; Pages
30 728 mdecorde
31 728 mdecorde
Page directory
32 728 mdecorde
Page instfiles
33 728 mdecorde
34 728 mdecorde
;--------------------------------
35 728 mdecorde
36 728 mdecorde
; The stuff to install
37 728 mdecorde
Section "" ;No components page, name is not important
38 728 mdecorde
39 728 mdecorde
  ; Set output path to the installation directory.
40 728 mdecorde
  SetOutPath $INSTDIR
41 728 mdecorde
42 728 mdecorde
  ; Put file there
43 728 mdecorde
  File example1.nsi
44 728 mdecorde
45 728 mdecorde
SectionEnd ; end the section