Statistiques
| Révision :

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

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

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
; example2.nsi expands on this by adding a uninstaller and start menu shortcuts.
9

    
10
;--------------------------------
11

    
12
; The name of the installer
13
Name "Example1"
14

    
15
; The file to write
16
OutFile "example1.exe"
17

    
18
; Request application privileges for Windows Vista
19
RequestExecutionLevel user
20

    
21
; Build Unicode installer
22
Unicode True
23

    
24
; The default installation directory
25
InstallDir $DESKTOP\Example1
26

    
27
;--------------------------------
28

    
29
; Pages
30

    
31
Page directory
32
Page instfiles
33

    
34
;--------------------------------
35

    
36
; The stuff to install
37
Section "" ;No components page, name is not important
38

    
39
  ; Set output path to the installation directory.
40
  SetOutPath $INSTDIR
41
  
42
  ; Put file there
43
  File example1.nsi
44
  
45
SectionEnd ; end the section