root / tmp / org.txm.setups / nsis-2.5 / nsisconf.nsh @ 3099
Historique | Voir | Annoter | Télécharger (1,69 ko)
1 | 2961 | mdecorde | ;------------------------ |
---|---|---|---|
2 | 2961 | mdecorde | ;DEFAULT NSIS CONFIG FILE |
3 | 2961 | mdecorde | ;------------------------ |
4 | 2961 | mdecorde | |
5 | 2961 | mdecorde | ;This header file will be included when compiling any NSIS installer, |
6 | 2961 | mdecorde | ;you can use it to add script code to every installer you compile. |
7 | 2961 | mdecorde | |
8 | 2961 | mdecorde | ;This file is treated as if it is in the directory of your script. |
9 | 2961 | mdecorde | ;When using relative paths, the files have to be in your build directory. |
10 | 2961 | mdecorde | |
11 | 2961 | mdecorde | ;------------------------ |
12 | 2961 | mdecorde | ;EXAMPLES |
13 | 2961 | mdecorde | ;------------------------ |
14 | 2961 | mdecorde | |
15 | 2961 | mdecorde | ;Compress installer exehead with an executable compressor (such as UPX / Petite). |
16 | 2961 | mdecorde | |
17 | 2961 | mdecorde | ;Paths should be absolute to allow building from any location. |
18 | 2961 | mdecorde | ;Note that your executable compressor should not compress the first icon. |
19 | 2961 | mdecorde | |
20 | 2961 | mdecorde | ;!packhdr temp.dat '"C:\Program Files\upx\upx" -9 -q temp.dat' |
21 | 2961 | mdecorde | ;!packhdr temp.dat '"C:\Program Files\petite\petite" -9 -b0 -r** -p0 -y temp.dat' |
22 | 2961 | mdecorde | |
23 | 2961 | mdecorde | ;------------------------ |
24 | 2961 | mdecorde | |
25 | 2961 | mdecorde | ;Set default compressor |
26 | 2961 | mdecorde | |
27 | 2961 | mdecorde | ;SetCompressor bzip2 |
28 | 2961 | mdecorde | |
29 | 2961 | mdecorde | ;------------------------ |
30 | 2961 | mdecorde | |
31 | 2961 | mdecorde | ;Change the default icons |
32 | 2961 | mdecorde | |
33 | 2961 | mdecorde | ;Icon "${NSISDIR}\Contrib\Graphics\Icons\arrow-install.ico" |
34 | 2961 | mdecorde | ;UninstallIcon "${NSISDIR}\Contrib\Graphics\Icons\arrow-uninstall.ico" |
35 | 2961 | mdecorde | |
36 | 2961 | mdecorde | ;------------------------ |
37 | 2961 | mdecorde | |
38 | 2961 | mdecorde | ;Define symbols |
39 | 2961 | mdecorde | |
40 | 2961 | mdecorde | ;!define COMPANYNAME "bla" |
41 | 2961 | mdecorde | |
42 | 2961 | mdecorde | ;------------------------ |
43 | 2961 | mdecorde | ;MODERN UI |
44 | 2961 | mdecorde | ;------------------------ |
45 | 2961 | mdecorde | |
46 | 2961 | mdecorde | ;The Modern UI will insert the MUI_NSISCONF macro just before processing the settings. |
47 | 2961 | mdecorde | ;Here you can set default settings for the Modern UI. |
48 | 2961 | mdecorde | |
49 | 2961 | mdecorde | ;------------------------ |
50 | 2961 | mdecorde | |
51 | 2961 | mdecorde | !define MUI_INSERT_NSISCONF |
52 | 2961 | mdecorde | |
53 | 2961 | mdecorde | !macro MUI_NSISCONF |
54 | 2961 | mdecorde | |
55 | 2961 | mdecorde | ;Example: Change the default Modern UI icons |
56 | 2961 | mdecorde | |
57 | 2961 | mdecorde | ;!ifndef MUI_ICON & MUI_UNICON |
58 | 2961 | mdecorde | ; !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\arrow-install.ico" |
59 | 2961 | mdecorde | ; !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\arrow-uninstall.ico" |
60 | 2961 | mdecorde | ;!endif |
61 | 2961 | mdecorde | |
62 | 2961 | mdecorde | !macroend |