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