nsisconf.nsh 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ;------------------------
  2. ;DEFAULT NSIS CONFIG FILE
  3. ;------------------------
  4. ;This header file will be included when compiling any NSIS installer,
  5. ;you can use it to add script code to every installer you compile.
  6. ;This file is treated as if it is in the directory of your script.
  7. ;When using relative paths, the files have to be in your build directory.
  8. ;------------------------
  9. ;EXAMPLES
  10. ;------------------------
  11. ;Compress installer exehead with an executable compressor (such as UPX / Petite).
  12. ;Paths should be absolute to allow building from any location.
  13. ;Note that your executable compressor should not compress the first icon.
  14. ;!packhdr temp.dat '"C:\Program Files\upx\upx" -9 -q temp.dat'
  15. ;!packhdr temp.dat '"C:\Program Files\petite\petite" -9 -b0 -r** -p0 -y temp.dat'
  16. ;------------------------
  17. ;Set default compressor
  18. ;SetCompressor bzip2
  19. ;------------------------
  20. ;Change the default icons
  21. ;Icon "${NSISDIR}\Contrib\Graphics\Icons\arrow-install.ico"
  22. ;UninstallIcon "${NSISDIR}\Contrib\Graphics\Icons\arrow-uninstall.ico"
  23. ;------------------------
  24. ;Define symbols
  25. ;!define COMPANYNAME "bla"
  26. ;------------------------
  27. ;MODERN UI
  28. ;------------------------
  29. ;The Modern UI will insert the MUI_NSISCONF macro just before processing the settings.
  30. ;Here you can set default settings for the Modern UI.
  31. ;------------------------
  32. !define MUI_INSERT_NSISCONF
  33. !macro MUI_NSISCONF
  34. ;Example: Change the default Modern UI icons
  35. ;!ifndef MUI_ICON & MUI_UNICON
  36. ; !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\arrow-install.ico"
  37. ; !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\arrow-uninstall.ico"
  38. ;!endif
  39. !macroend