2013-10-15 19:17:36 +04:00
|
|
|
#.rst:
|
|
|
|
# CPackWIX
|
|
|
|
# --------
|
|
|
|
#
|
|
|
|
# CPack WiX generator specific options
|
|
|
|
#
|
|
|
|
# #section Variables specific to CPack WiX generator #end #module
|
|
|
|
#
|
|
|
|
# The following variables are specific to the installers built on
|
|
|
|
# Windows using WiX. #end #variable
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# CPACK_WIX_UPGRADE_GUID - Upgrade GUID (Product/@UpgradeCode)
|
|
|
|
#
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# Will be automatically generated unless explicitly provided.
|
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# It should be explicitly set to a constant generated gloabally unique
|
|
|
|
# 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 19:17:36 +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
|
2012-10-03 18:08:49 +04:00
|
|
|
# belong to other projects.
|
|
|
|
#
|
|
|
|
# A GUID shall have the following fixed length syntax:
|
|
|
|
# XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# (each X represents an uppercase hexadecimal digit)
|
|
|
|
#
|
|
|
|
# #end #variable
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# CPACK_WIX_PRODUCT_GUID - Product GUID (Product/@Id)
|
|
|
|
#
|
|
|
|
#
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
|
|
|
# Will be automatically generated unless explicitly provided.
|
|
|
|
#
|
|
|
|
# If explicitly provided this will set the Product Id of your installer.
|
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# The installer will abort if it detects a pre-existing installation
|
|
|
|
# that uses the same GUID.
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
|
|
|
# The GUID shall use the syntax described for CPACK_WIX_UPGRADE_GUID.
|
2013-10-15 19:17:36 +04:00
|
|
|
# #end #variable
|
|
|
|
#
|
|
|
|
# ::
|
|
|
|
#
|
|
|
|
# CPACK_WIX_LICENSE_RTF - RTF License File
|
|
|
|
#
|
|
|
|
#
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +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 19:17:36 +04:00
|
|
|
# If CPACK_RESOURCE_FILE_LICENSE has an .txt extension it is implicitly
|
|
|
|
# converted to RTF by the WiX Generator.
|
2012-10-03 18:08:49 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +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.
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #end
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #variable CPACK_WIX_PRODUCT_ICON - The Icon shown next to the program
|
|
|
|
# name in Add/Remove programs.
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
|
|
|
# If set, this icon is used in place of the default icon.
|
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #end
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #variable CPACK_WIX_UI_BANNER - The bitmap will appear at the top of
|
|
|
|
# all installer pages other than the welcome and completion dialogs.
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
|
|
|
# If set, this image will replace the default banner image.
|
|
|
|
#
|
|
|
|
# This image must be 493 by 58 pixels.
|
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #end
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #variable CPACK_WIX_UI_DIALOG - Background bitmap used on the welcome
|
|
|
|
# and completion dialogs.
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# If this variable is set, the installer will replace the default dialog
|
|
|
|
# image.
|
2012-12-15 00:50:18 +04:00
|
|
|
#
|
|
|
|
# This image must be 493 by 312 pixels.
|
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #end
|
2013-03-01 06:09:58 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #variable CPACK_WIX_PROGRAM_MENU_FOLDER - Start menu folder name for
|
|
|
|
# launcher.
|
2013-03-01 06:09:58 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# If this variable is not set, it will be initialized with
|
|
|
|
# CPACK_PACKAGE_NAME
|
2013-05-06 19:21:42 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #end #variable CPACK_WIX_CULTURES - Language(s) of the installer
|
2013-05-06 19:21:42 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# Languages are compiled into the WixUI extension library. To use them,
|
2013-05-06 19:21:42 +04:00
|
|
|
# simply provide the name of the culture. If you specify more than one
|
2013-10-15 19:17:36 +04:00
|
|
|
# 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:
|
2013-05-06 19:21:42 +04:00
|
|
|
# http://wix.sourceforge.net/manual-wix3/WixUI_localization.htm
|
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #end #variable CPACK_WIX_TEMPLATE - Template file for WiX generation
|
2013-07-03 02:19:31 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +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-07-03 02:19:31 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# If this variable is not set, the default MSI template included with
|
|
|
|
# CMake will be used.
|
2013-07-03 02:19:31 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #end #variable CPACK_WIX_EXTRA_SOURCES - Extra WiX source files
|
2013-10-13 15:16:54 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +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-10-13 15:16:54 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #end #variable CPACK_WIX_EXTRA_OBJECTS - Extra WiX object files or
|
|
|
|
# libraries
|
2013-10-13 15:16:54 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +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-10-13 15:16:54 +04:00
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
# #end
|
2012-10-03 18:08:49 +04:00
|
|
|
|
|
|
|
#=============================================================================
|
|
|
|
# Copyright 2012 Kitware, Inc.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
PATHS "${CPACK_WIX_ROOT}/bin")
|
|
|
|
|
|
|
|
if(NOT CPACK_WIX_CANDLE_EXECUTABLE)
|
|
|
|
message(FATAL_ERROR "Could not find the WiX candle executable.")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
find_program(CPACK_WIX_LIGHT_EXECUTABLE light
|
|
|
|
PATHS "${CPACK_WIX_ROOT}/bin")
|
|
|
|
|
|
|
|
if(NOT CPACK_WIX_LIGHT_EXECUTABLE)
|
|
|
|
message(FATAL_ERROR "Could not find the WiX light executable.")
|
|
|
|
endif()
|