From d57bd887b1694e592e4f66a097a359978899c5ea Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 14 Jan 2016 14:40:24 -0800 Subject: [PATCH] install the add/remove icon --- cmake/installer/{uninstaller.ico => add-remove.ico} | Bin cmake/macros/GenerateInstallers.cmake | 12 ++++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) rename cmake/installer/{uninstaller.ico => add-remove.ico} (100%) diff --git a/cmake/installer/uninstaller.ico b/cmake/installer/add-remove.ico similarity index 100% rename from cmake/installer/uninstaller.ico rename to cmake/installer/add-remove.ico diff --git a/cmake/macros/GenerateInstallers.cmake b/cmake/macros/GenerateInstallers.cmake index b09218f844..c44d76da70 100644 --- a/cmake/macros/GenerateInstallers.cmake +++ b/cmake/macros/GenerateInstallers.cmake @@ -23,10 +23,18 @@ macro(GENERATE_INSTALLERS) set(CPACK_NSIS_DISPLAY_NAME ${_DISPLAY_NAME}) set(CPACK_NSIS_PACKAGE_NAME ${_DISPLAY_NAME}) set(CPACK_PACKAGE_INSTALL_DIRECTORY ${_DISPLAY_NAME}) - set(CPACK_NSIS_MUI_ICON "${HF_CMAKE_DIR}/installer/installer.ico") - set(CPACK_NSIS_INSTALLED_ICON_NAME "${HF_CMAKE_DIR}/installer/uninstaller.ico") if (WIN32) + set(CPACK_NSIS_MUI_ICON "${HF_CMAKE_DIR}/installer/installer.ico") + + # install the uninstaller icon and reference it for Add/Remove icon + set(ADD_REMOVE_ICON_NAME "add-remove.ico") + install( + FILES "${HF_CMAKE_DIR}/installer/${ADD_REMOVE_ICON_NAME}" + DESTINATION "." + ) + set(CPACK_NSIS_INSTALLED_ICON_NAME ${ADD_REMOVE_ICON_NAME}) + # use macro to put backslashes in header image path since nsis requires them set(_INSTALLER_HEADER_BAD_PATH "${HF_CMAKE_DIR}/installer/installer-header.bmp") set(INSTALLER_HEADER_IMAGE "")