nsis.rst 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. CPack NSIS Generator
  2. --------------------
  3. CPack Nullsoft Scriptable Install System (NSIS) generator specific options
  4. Variables specific to CPack NSIS generator
  5. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  6. The following variables are specific to the graphical installers built
  7. on Windows Nullsoft Scriptable Install System.
  8. .. variable:: CPACK_NSIS_INSTALL_ROOT
  9. The default installation directory presented to the end user by the NSIS
  10. installer is under this root dir. The full directory presented to the end
  11. user is: ``${CPACK_NSIS_INSTALL_ROOT}/${CPACK_PACKAGE_INSTALL_DIRECTORY}``
  12. .. variable:: CPACK_NSIS_MUI_ICON
  13. An icon filename. The name of a ``*.ico`` file used as the main icon for the
  14. generated install program.
  15. .. variable:: CPACK_NSIS_MUI_UNIICON
  16. An icon filename. The name of a ``*.ico`` file used as the main icon for the
  17. generated uninstall program.
  18. .. variable:: CPACK_NSIS_INSTALLER_MUI_ICON_CODE
  19. undocumented.
  20. .. variable:: CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP
  21. The filename of a bitmap to use as the NSIS ``MUI_WELCOMEFINISHPAGE_BITMAP``.
  22. .. variable:: CPACK_NSIS_MUI_UNWELCOMEFINISHPAGE_BITMAP
  23. The filename of a bitmap to use as the NSIS ``MUI_UNWELCOMEFINISHPAGE_BITMAP``.
  24. .. variable:: CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS
  25. Extra NSIS commands that will be added to the beginning of the install
  26. Section, before your install tree is available on the target system.
  27. .. variable:: CPACK_NSIS_EXTRA_INSTALL_COMMANDS
  28. Extra NSIS commands that will be added to the end of the install Section,
  29. after your install tree is available on the target system.
  30. .. variable:: CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS
  31. Extra NSIS commands that will be added to the uninstall Section, before
  32. your install tree is removed from the target system.
  33. .. variable:: CPACK_NSIS_COMPRESSOR
  34. The arguments that will be passed to the NSIS `SetCompressor` command.
  35. .. variable:: CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL
  36. Ask about uninstalling previous versions first. If this is set to ``ON``,
  37. then an installer will look for previous installed versions and if one is
  38. found, ask the user whether to uninstall it before proceeding with the
  39. install.
  40. .. variable:: CPACK_NSIS_MODIFY_PATH
  41. Modify ``PATH`` toggle. If this is set to ``ON``, then an extra page will appear
  42. in the installer that will allow the user to choose whether the program
  43. directory should be added to the system ``PATH`` variable.
  44. .. variable:: CPACK_NSIS_DISPLAY_NAME
  45. The display name string that appears in the Windows `Apps & features`
  46. in `Control Panel`
  47. .. variable:: CPACK_NSIS_PACKAGE_NAME
  48. The title displayed at the top of the installer.
  49. .. variable:: CPACK_NSIS_INSTALLED_ICON_NAME
  50. A path to the executable that contains the installer icon.
  51. .. variable:: CPACK_NSIS_HELP_LINK
  52. URL to a web site providing assistance in installing your application.
  53. .. variable:: CPACK_NSIS_URL_INFO_ABOUT
  54. URL to a web site providing more information about your application.
  55. .. variable:: CPACK_NSIS_CONTACT
  56. Contact information for questions and comments about the installation
  57. process.
  58. .. variable:: CPACK_NSIS_<compName>_INSTALL_DIRECTORY
  59. Custom install directory for the specified component ``<compName>`` instead
  60. of ``$INSTDIR``.
  61. .. variable:: CPACK_NSIS_CREATE_ICONS_EXTRA
  62. Additional NSIS commands for creating `Start Menu` shortcuts.
  63. .. variable:: CPACK_NSIS_DELETE_ICONS_EXTRA
  64. Additional NSIS commands to uninstall `Start Menu` shortcuts.
  65. .. variable:: CPACK_NSIS_EXECUTABLES_DIRECTORY
  66. Creating NSIS `Start Menu` links assumes that they are in ``bin`` unless this
  67. variable is set. For example, you would set this to ``exec`` if your
  68. executables are in an exec directory.
  69. .. variable:: CPACK_NSIS_MUI_FINISHPAGE_RUN
  70. Specify an executable to add an option to run on the finish page of the
  71. NSIS installer.
  72. .. variable:: CPACK_NSIS_MENU_LINKS
  73. Specify links in ``[application]`` menu. This should contain a list of pair
  74. ``link`` ``link name``. The link may be a URL or a path relative to
  75. installation prefix. Like::
  76. set(CPACK_NSIS_MENU_LINKS
  77. "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake.html"
  78. "CMake Help" "https://cmake.org" "CMake Web Site")