Fix shortcut which is created by NSIS 0.9.19
authorunc0rr
Thu, 04 Apr 2013 14:01:54 +0400
branch0.9.19
changeset 8791 6e3308fc2a1d
parent 8788 b6badc953945
child 8857 0bdeea9d388e
Fix shortcut which is created by NSIS
cmake_modules/CPackConfig.cmake
--- a/cmake_modules/CPackConfig.cmake	Sat Mar 23 18:43:24 2013 +0100
+++ b/cmake_modules/CPackConfig.cmake	Thu Apr 04 14:01:54 2013 +0400
@@ -23,9 +23,9 @@
     set(CPACK_NSIS_URL_INFO_ABOUT "http://www.hedgewars.org/")
     set(CPACK_NSIS_CONTACT "unC0Rr@gmail.com")
     set(CPACK_NSIS_MODIFY_PATH OFF)
-    set(CPACK_NSIS_EXECUTABLES_DIRECTORY "${target_binary_install_dir}")
+    set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".")
     set(CPACK_NSIS_MUI_FINISHPAGE_RUN "hedgewars${CMAKE_EXECUTABLE_SUFFIX}")
-    set(CPACK_GENERATOR "ZIP;NSIS")
+    set(CPACK_NSIS_CREATE_ICONS "CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\Hedgewars.lnk' '$INSTDIR\\\\hedgewars.exe'")
     set(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "hedgewars")
 endif(WIN32 AND NOT UNIX)
 
@@ -96,4 +96,3 @@
 )
 
 include(CPack)
-