drop in add remove icon during core install

This commit is contained in:
Stephen Birarda 2016-01-14 14:51:28 -08:00
parent d57bd887b1
commit 95acd2cfc3
3 changed files with 5 additions and 4 deletions

View file

@ -29,10 +29,7 @@ macro(GENERATE_INSTALLERS)
# 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(ADD_REMOVE_ICON_PATH "${HF_CMAKE_DIR}/installer/${ADD_REMOVE_ICON_NAME}")
set(CPACK_NSIS_INSTALLED_ICON_NAME ${ADD_REMOVE_ICON_NAME})
# use macro to put backslashes in header image path since nsis requires them

View file

@ -28,3 +28,4 @@ set(CONSOLE_STARTUP_REG_KEY "@CONSOLE_STARTUP_REG_KEY@")
set(LAUNCH_NOW_REG_KEY "@LAUNCH_NOW_REG_KEY@")
set(INSTALLER_HEADER_IMAGE "@INSTALLER_HEADER_IMAGE@")
set(UNINSTALLER_HEADER_IMAGE "@UNINSTALLER_HEADER_IMAGE@")
set(ADD_REMOVE_ICON_PATH "@ADD_REMOVE_ICON_PATH@")

View file

@ -721,6 +721,9 @@ Section "-Core installation"
Call ConditionalAddToRegisty
!endif
; Package the add/remove icon file
File "@ADD_REMOVE_ICON_PATH@"
; Optional registration
Push "DisplayIcon"
Push "$INSTDIR\@CPACK_NSIS_INSTALLED_ICON_NAME@"