Permalink
Browse files

improve nsis installer

  • Loading branch information...
xiaoqiangwang committed Nov 24, 2016
1 parent 1101e08 commit 585141fa0fea4bbbb45d62deca1a4073942b5dc1
Showing with 12 additions and 3 deletions.
  1. +12 −3 package.cmake
View
@@ -9,12 +9,21 @@ SET(CPACK_PACKAGE_VERSION_MAJOR ${QTERM_VERSION_MAJOR})
SET(CPACK_PACKAGE_VERSION_MINOR ${QTERM_VERSION_MINOR})
SET(CPACK_PACKAGE_VERSION_PATCH ${QTERM_VERSION_RELEASE})
IF(WIN32)
+ SET(CPACK_PACKAGE_EXECUTABLES "qterm;QTerm")
# There is a bug in NSI that does not handle full unix paths properly. Make
# sure there is at least one set of four (4) backlasshes.
SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\qterm.exe")
- SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\www.qterm.org")
- SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\www.qterm.org")
- SET(CPACK_NSIS_MODIFY_PATH ON)
+ SET(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/src/qterm.ico")
+ SET(CPACK_NSIS_HELP_LINK "http://www.qterm.org")
+ SET(CPACK_NSIS_URL_INFO_ABOUT "http://www.qterm.org")
+ SET(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
+ SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
+ CreateShortCut \\\"$DESKTOP\\\\QTerm.lnk\\\" \\\"$INSTDIR\\\\bin\\\\qterm.exe\\\"
+ ")
+
+ SET(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
+ Delete \\\"$DESKTOP\\\\QTerm.lnk\\\"
+ ")
ELSEIF(APPLE)
SET(CPACK_GENERATOR "DragNDrop")
ELSE()

0 comments on commit 585141f

Please sign in to comment.