4 CPack Nullsoft Scriptable Install System (NSIS) generator specific options.
6 The NSIS generator requires NSIS 3.0 or newer.
8 Variables specific to CPack NSIS generator
9 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 The following variables are specific to the graphical installers built
12 on Windows Nullsoft Scriptable Install System.
14 .. variable:: CPACK_NSIS_INSTALL_ROOT
16 The default installation directory presented to the end user by the NSIS
17 installer is under this root dir. The full directory presented to the end
18 user is: ``${CPACK_NSIS_INSTALL_ROOT}/${CPACK_PACKAGE_INSTALL_DIRECTORY}``
20 .. variable:: CPACK_NSIS_MUI_ICON
22 An icon filename. The name of a ``*.ico`` file used as the main icon for the
23 generated install program.
25 .. variable:: CPACK_NSIS_MUI_UNIICON
27 An icon filename. The name of a ``*.ico`` file used as the main icon for the
28 generated uninstall program.
30 .. variable:: CPACK_NSIS_INSTALLER_MUI_ICON_CODE
34 .. variable:: CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP
36 The filename of a bitmap to use as the NSIS ``MUI_WELCOMEFINISHPAGE_BITMAP``.
38 .. variable:: CPACK_NSIS_MUI_UNWELCOMEFINISHPAGE_BITMAP
40 The filename of a bitmap to use as the NSIS ``MUI_UNWELCOMEFINISHPAGE_BITMAP``.
42 .. variable:: CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS
44 Extra NSIS commands that will be added to the beginning of the install
45 Section, before your install tree is available on the target system.
47 .. variable:: CPACK_NSIS_EXTRA_INSTALL_COMMANDS
49 Extra NSIS commands that will be added to the end of the install Section,
50 after your install tree is available on the target system.
52 .. variable:: CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS
54 Extra NSIS commands that will be added to the uninstall Section, before
55 your install tree is removed from the target system.
57 .. variable:: CPACK_NSIS_COMPRESSOR
59 The arguments that will be passed to the NSIS `SetCompressor` command.
61 .. variable:: CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL
63 Ask about uninstalling previous versions first. If this is set to ``ON``,
64 then an installer will look for previous installed versions and if one is
65 found, ask the user whether to uninstall it before proceeding with the
68 .. variable:: CPACK_NSIS_MODIFY_PATH
70 Modify ``PATH`` toggle. If this is set to ``ON``, then an extra page will appear
71 in the installer that will allow the user to choose whether the program
72 directory should be added to the system ``PATH`` variable.
74 .. variable:: CPACK_NSIS_DISPLAY_NAME
76 The display name string that appears in the Windows `Apps & features`
79 .. variable:: CPACK_NSIS_PACKAGE_NAME
81 The title displayed at the top of the installer.
83 .. variable:: CPACK_NSIS_INSTALLED_ICON_NAME
85 A path to the executable that contains the installer icon.
87 .. variable:: CPACK_NSIS_HELP_LINK
89 URL to a web site providing assistance in installing your application.
91 .. variable:: CPACK_NSIS_URL_INFO_ABOUT
93 URL to a web site providing more information about your application.
95 .. variable:: CPACK_NSIS_CONTACT
97 Contact information for questions and comments about the installation
100 .. variable:: CPACK_NSIS_<compName>_INSTALL_DIRECTORY
102 Custom install directory for the specified component ``<compName>`` instead
105 .. variable:: CPACK_NSIS_CREATE_ICONS_EXTRA
107 Additional NSIS commands for creating `Start Menu` shortcuts.
109 .. variable:: CPACK_NSIS_DELETE_ICONS_EXTRA
111 Additional NSIS commands to uninstall `Start Menu` shortcuts.
113 .. variable:: CPACK_NSIS_EXECUTABLES_DIRECTORY
115 Creating NSIS `Start Menu` links assumes that they are in ``bin`` unless this
116 variable is set. For example, you would set this to ``exec`` if your
117 executables are in an exec directory.
119 .. variable:: CPACK_NSIS_MUI_FINISHPAGE_RUN
121 Specify an executable to add an option to run on the finish page of the
124 .. variable:: CPACK_NSIS_MENU_LINKS
126 Specify links in ``[application]`` menu. This should contain a list of pair
127 ``link`` ``link name``. The link may be a URL or a path relative to
128 installation prefix. Like::
130 set(CPACK_NSIS_MENU_LINKS
131 "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake.html"
132 "CMake Help" "https://cmake.org" "CMake Web Site")
134 .. variable:: CPACK_NSIS_UNINSTALL_NAME
136 Specify the name of the program to uninstall the version.
137 Default is ``Uninstall``.
139 .. variable:: CPACK_NSIS_WELCOME_TITLE
141 The title to display on the top of the page for the welcome page.
143 .. variable:: CPACK_NSIS_WELCOME_TITLE_3LINES
145 Display the title in the welcome page on 3 lines instead of 2.
147 .. variable:: CPACK_NSIS_FINISH_TITLE
149 The title to display on the top of the page for the finish page.
151 .. variable:: CPACK_NSIS_FINISH_TITLE_3LINES
153 Display the title in the finish page on 3 lines instead of 2.
155 .. variable:: CPACK_NSIS_MUI_HEADERIMAGE
157 The image to display on the header of installers pages.