2013-10-15 19:17:36 +04:00
|
|
|
#.rst:
|
|
|
|
# CPackWIX
|
|
|
|
# --------
|
|
|
|
#
|
|
|
|
# CPack WiX generator specific options
|
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# Variables specific to CPack WiX generator
|
|
|
|
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
|
|
|
# The following variables are specific to the installers built on
|
2013-10-15 21:23:23 +04:00
|
|
|
# Windows using WiX.
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# .. variable:: CPACK_WIX_UPGRADE_GUID
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-16 19:12:31 +04:00
|
|
|
# Upgrade GUID (``Product/@UpgradeCode``)
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# Will be automatically generated unless explicitly provided.
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2015-10-08 21:39:07 +03:00
|
|
|
# It should be explicitly set to a constant generated globally unique
|
2013-10-15 21:23:23 +04:00
|
|
|
# identifier (GUID) to allow your installers to replace existing
|
|
|
|
# installations that use the same GUID.
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# You may for example explicitly set this variable in your
|
|
|
|
# CMakeLists.txt to the value that has been generated per default. You
|
|
|
|
# should not use GUIDs that you did not generate yourself or which may
|
|
|
|
# belong to other projects.
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# A GUID shall have the following fixed length syntax::
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# (each X represents an uppercase hexadecimal digit)
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# .. variable:: CPACK_WIX_PRODUCT_GUID
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-16 19:12:31 +04:00
|
|
|
# Product GUID (``Product/@Id``)
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# Will be automatically generated unless explicitly provided.
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# If explicitly provided this will set the Product Id of your installer.
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# The installer will abort if it detects a pre-existing installation that
|
|
|
|
# uses the same GUID.
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# The GUID shall use the syntax described for CPACK_WIX_UPGRADE_GUID.
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# .. variable:: CPACK_WIX_LICENSE_RTF
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# RTF License File
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# If CPACK_RESOURCE_FILE_LICENSE has an .rtf extension it is used as-is.
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# If CPACK_RESOURCE_FILE_LICENSE has an .txt extension it is implicitly
|
|
|
|
# converted to RTF by the WiX Generator.
|
2013-12-26 18:23:54 +04:00
|
|
|
# The expected encoding of the .txt file is UTF-8.
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# With CPACK_WIX_LICENSE_RTF you can override the license file used by the
|
|
|
|
# WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported
|
|
|
|
# format or the .txt -> .rtf conversion does not work as expected.
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# .. variable:: CPACK_WIX_PRODUCT_ICON
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# The Icon shown next to the program name in Add/Remove programs.
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# If set, this icon is used in place of the default icon.
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
2013-11-20 00:38:09 +04:00
|
|
|
# .. variable:: CPACK_WIX_UI_REF
|
|
|
|
#
|
|
|
|
# This variable allows you to override the Id of the ``<UIRef>`` element
|
|
|
|
# in the WiX template.
|
|
|
|
#
|
|
|
|
# The default is ``WixUI_InstallDir`` in case no CPack components have
|
|
|
|
# been defined and ``WixUI_FeatureTree`` otherwise.
|
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# .. variable:: CPACK_WIX_UI_BANNER
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# The bitmap will appear at the top of all installer pages other than the
|
|
|
|
# welcome and completion dialogs.
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# If set, this image will replace the default banner image.
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# This image must be 493 by 58 pixels.
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# .. variable:: CPACK_WIX_UI_DIALOG
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# Background bitmap used on the welcome and completion dialogs.
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# If this variable is set, the installer will replace the default dialog
|
|
|
|
# image.
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# This image must be 493 by 312 pixels.
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# .. variable:: CPACK_WIX_PROGRAM_MENU_FOLDER
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# Start menu folder name for launcher.
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# If this variable is not set, it will be initialized with CPACK_PACKAGE_NAME
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# .. variable:: CPACK_WIX_CULTURES
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# Language(s) of the installer
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# Languages are compiled into the WixUI extension library. To use them,
|
|
|
|
# simply provide the name of the culture. If you specify more than one
|
|
|
|
# culture identifier in a comma or semicolon delimited list, the first one
|
|
|
|
# that is found will be used. You can find a list of supported languages at:
|
|
|
|
# http://wix.sourceforge.net/manual-wix3/WixUI_localization.htm
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# .. variable:: CPACK_WIX_TEMPLATE
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# Template file for WiX generation
|
2013-03-01 06:09:58 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# If this variable is set, the specified template will be used to generate
|
|
|
|
# the WiX wxs file. This should be used if further customization of the
|
|
|
|
# output is required.
|
2013-03-01 06:09:58 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# If this variable is not set, the default MSI template included with CMake
|
|
|
|
# will be used.
|
2013-05-06 19:21:42 +04:00
|
|
|
#
|
2013-12-17 01:30:11 +04:00
|
|
|
# .. variable:: CPACK_WIX_PATCH_FILE
|
|
|
|
#
|
2015-12-15 01:04:41 +03:00
|
|
|
# Optional list of XML files with fragments to be inserted into
|
|
|
|
# generated WiX sources
|
2013-12-17 01:30:11 +04:00
|
|
|
#
|
|
|
|
# This optional variable can be used to specify an XML file that the
|
|
|
|
# WiX generator will use to inject fragments into its generated
|
|
|
|
# source files.
|
|
|
|
#
|
|
|
|
# Patch files understood by the CPack WiX generator
|
|
|
|
# roughly follow this RELAX NG compact schema:
|
|
|
|
#
|
|
|
|
# .. code-block:: none
|
|
|
|
#
|
|
|
|
# start = CPackWiXPatch
|
|
|
|
#
|
|
|
|
# CPackWiXPatch = element CPackWiXPatch { CPackWiXFragment* }
|
|
|
|
#
|
|
|
|
# CPackWiXFragment = element CPackWiXFragment
|
|
|
|
# {
|
|
|
|
# attribute Id { string },
|
|
|
|
# fragmentContent*
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# fragmentContent = element * - CPackWiXFragment
|
|
|
|
# {
|
|
|
|
# (attribute * { text } | text | fragmentContent)*
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# Currently fragments can be injected into most
|
2016-09-09 11:53:26 +03:00
|
|
|
# Component, File, Directory and Feature elements.
|
2013-12-17 01:30:11 +04:00
|
|
|
#
|
2015-03-06 22:40:53 +03:00
|
|
|
# The following additional special Ids can be used:
|
|
|
|
#
|
|
|
|
# * ``#PRODUCT`` for the ``<Product>`` element.
|
|
|
|
# * ``#PRODUCTFEATURE`` for the root ``<Feature>`` element.
|
2015-02-13 13:57:20 +03:00
|
|
|
#
|
2013-12-17 01:30:11 +04:00
|
|
|
# The following example illustrates how this works.
|
|
|
|
#
|
|
|
|
# Given that the WiX generator creates the following XML element:
|
|
|
|
#
|
|
|
|
# .. code-block:: xml
|
|
|
|
#
|
|
|
|
# <Component Id="CM_CP_applications.bin.my_libapp.exe" Guid="*"/>
|
|
|
|
#
|
|
|
|
# The following XML patch file may be used to inject an Environment element
|
|
|
|
# into it:
|
|
|
|
#
|
|
|
|
# .. code-block:: xml
|
|
|
|
#
|
|
|
|
# <CPackWiXPatch>
|
|
|
|
# <CPackWiXFragment Id="CM_CP_applications.bin.my_libapp.exe">
|
|
|
|
# <Environment Id="MyEnvironment" Action="set"
|
|
|
|
# Name="MyVariableName" Value="MyVariableValue"/>
|
|
|
|
# </CPackWiXFragment>
|
|
|
|
# </CPackWiXPatch>
|
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# .. variable:: CPACK_WIX_EXTRA_SOURCES
|
2013-05-06 19:21:42 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# Extra WiX source files
|
2013-05-06 19:21:42 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# This variable provides an optional list of extra WiX source files (.wxs)
|
|
|
|
# that should be compiled and linked. The full path to source files is
|
|
|
|
# required.
|
2013-07-03 02:19:31 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# .. variable:: CPACK_WIX_EXTRA_OBJECTS
|
2013-07-03 02:19:31 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# Extra WiX object files or libraries
|
2013-07-03 02:19:31 +04:00
|
|
|
#
|
2013-10-15 21:23:23 +04:00
|
|
|
# This variable provides an optional list of extra WiX object (.wixobj)
|
|
|
|
# and/or WiX library (.wixlib) files. The full path to objects and libraries
|
|
|
|
# is required.
|
2013-11-10 22:48:29 +04:00
|
|
|
#
|
|
|
|
# .. variable:: CPACK_WIX_EXTENSIONS
|
|
|
|
#
|
|
|
|
# This variable provides a list of additional extensions for the WiX
|
|
|
|
# tools light and candle.
|
|
|
|
#
|
|
|
|
# .. variable:: CPACK_WIX_<TOOL>_EXTENSIONS
|
|
|
|
#
|
|
|
|
# This is the tool specific version of CPACK_WIX_EXTENSIONS.
|
|
|
|
# ``<TOOL>`` can be either LIGHT or CANDLE.
|
|
|
|
#
|
|
|
|
# .. variable:: CPACK_WIX_<TOOL>_EXTRA_FLAGS
|
|
|
|
#
|
|
|
|
# This list variable allows you to pass additional
|
|
|
|
# flags to the WiX tool ``<TOOL>``.
|
|
|
|
#
|
|
|
|
# Use it at your own risk.
|
|
|
|
# Future versions of CPack may generate flags which may be in conflict
|
|
|
|
# with your own flags.
|
|
|
|
#
|
|
|
|
# ``<TOOL>`` can be either LIGHT or CANDLE.
|
|
|
|
#
|
2014-01-08 04:28:24 +04:00
|
|
|
# .. variable:: CPACK_WIX_CMAKE_PACKAGE_REGISTRY
|
|
|
|
#
|
|
|
|
# If this variable is set the generated installer will create
|
|
|
|
# an entry in the windows registry key
|
|
|
|
# ``HKEY_LOCAL_MACHINE\Software\Kitware\CMake\Packages\<package>``
|
|
|
|
# The value for ``<package>`` is provided by this variable.
|
|
|
|
#
|
|
|
|
# Assuming you also install a CMake configuration file this will
|
|
|
|
# allow other CMake projects to find your package with
|
|
|
|
# the :command:`find_package` command.
|
|
|
|
#
|
2014-03-02 02:13:35 +04:00
|
|
|
# .. variable:: CPACK_WIX_PROPERTY_<PROPERTY>
|
|
|
|
#
|
|
|
|
# This variable can be used to provide a value for
|
|
|
|
# the Windows Installer property ``<PROPERTY>``
|
|
|
|
#
|
2015-10-08 21:39:07 +03:00
|
|
|
# The following list contains some example properties that can be used to
|
2014-03-02 02:13:35 +04:00
|
|
|
# customize information under
|
|
|
|
# "Programs and Features" (also known as "Add or Remove Programs")
|
|
|
|
#
|
|
|
|
# * ARPCOMMENTS - Comments
|
|
|
|
# * ARPHELPLINK - Help and support information URL
|
|
|
|
# * ARPURLINFOABOUT - General information URL
|
2016-03-01 11:49:37 +03:00
|
|
|
# * ARPURLUPDATEINFO - Update information URL
|
2014-03-02 02:13:35 +04:00
|
|
|
# * ARPHELPTELEPHONE - Help and support telephone number
|
|
|
|
# * ARPSIZE - Size (in kilobytes) of the application
|
2016-07-20 16:27:01 +03:00
|
|
|
#
|
|
|
|
# .. variable:: CPACK_WIX_ROOT_FEATURE_TITLE
|
|
|
|
#
|
|
|
|
# Sets the name of the root install feature in the WIX installer. Same as
|
|
|
|
# CPACK_COMPONENT_<compName>_DISPLAY_NAME for components.
|
|
|
|
#
|
|
|
|
# .. variable:: CPACK_WIX_ROOT_FEATURE_DESCRIPTION
|
|
|
|
#
|
|
|
|
# Sets the description of the root install feature in the WIX installer. Same as
|
|
|
|
# CPACK_COMPONENT_<compName>_DESCRIPTION for components.
|
|
|
|
#
|
2016-07-20 16:32:38 +03:00
|
|
|
# .. variable:: CPACK_WIX_SKIP_PROGRAM_FOLDER
|
|
|
|
#
|
|
|
|
# If this variable is set to true, the default install location
|
|
|
|
# of the generated package will be CPACK_PACKAGE_INSTALL_DIRECTORY directly.
|
|
|
|
# The install location will not be located relatively below
|
|
|
|
# ProgramFiles or ProgramFiles64.
|
|
|
|
#
|
|
|
|
# .. note::
|
|
|
|
# Installers created with this feature do not take differences
|
|
|
|
# between the system on which the installer is created
|
|
|
|
# and the system on which the installer might be used into account.
|
|
|
|
#
|
|
|
|
# It is therefor possible that the installer e.g. might try to install
|
|
|
|
# onto a drive that is unavailable or unintended or a path that does not
|
|
|
|
# follow the localization or convention of the system on which the
|
|
|
|
# installation is performed.
|
|
|
|
#
|
2012-10-03 18:08:49 +04:00
|
|
|
|
|
|
|
#=============================================================================
|
2015-02-13 13:57:20 +03:00
|
|
|
# Copyright 2014-2015 Kitware, Inc.
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
|
|
|
# Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
# see accompanying file Copyright.txt for details.
|
|
|
|
#
|
|
|
|
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
# See the License for more information.
|
|
|
|
#=============================================================================
|
|
|
|
# (To distribute this file outside of CMake, substitute the full
|
|
|
|
# License text for the above reference.)
|
|
|
|
|
|
|
|
if(NOT CPACK_WIX_ROOT)
|
|
|
|
file(TO_CMAKE_PATH "$ENV{WIX}" CPACK_WIX_ROOT)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
find_program(CPACK_WIX_CANDLE_EXECUTABLE candle
|
2016-03-01 11:49:37 +03:00
|
|
|
PATHS "${CPACK_WIX_ROOT}" PATH_SUFFIXES "bin")
|
2012-10-03 18:08:49 +04:00
|
|
|
|
|
|
|
if(NOT CPACK_WIX_CANDLE_EXECUTABLE)
|
|
|
|
message(FATAL_ERROR "Could not find the WiX candle executable.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
find_program(CPACK_WIX_LIGHT_EXECUTABLE light
|
2016-03-01 11:49:37 +03:00
|
|
|
PATHS "${CPACK_WIX_ROOT}" PATH_SUFFIXES "bin")
|
2012-10-03 18:08:49 +04:00
|
|
|
|
|
|
|
if(NOT CPACK_WIX_LIGHT_EXECUTABLE)
|
|
|
|
message(FATAL_ERROR "Could not find the WiX light executable.")
|
|
|
|
endif()
|