mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 15:33:14 +02:00
drop in add remove icon during core install
This commit is contained in:
parent
d57bd887b1
commit
95acd2cfc3
3 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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@")
|
||||
|
|
|
@ -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@"
|
||||
|
|
Loading…
Reference in a new issue