nsis.rst 4.9 KB

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