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