Hi community, we are using NSIS (CPack) for our Windows installers. Our current setup looks like this: ;Create shortcuts CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER" @CPACK_NSIS_CREATE_ICONS@ @CPACK_NSIS_CREATE_ICONS_EXTRA@ CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
With the $INSTDIR set to top level directory (not the bin with the executables). The problem is that we need to set the 'Start in' path for the created shortcut to the bin directory. Using this code: SetOutPath "$INSTDIR\bin" CreateShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\ TEST.lnk" "$INSTDIR\bin\Test.exe" SetOutPath "$INSTDIR" we have a workaround but we would prefer to change the 'Start in' path for the @CPACK_NSIS_CREATE_ICONS@ command without manually adding shortcuts. Thanks Michael
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake