# 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) backslashes. SET(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/images\\\\Zephyr.ico") # SET(CPACK_NSIS_INSTALLED_ICON_NAME "OpenMMZephyr.tcl") SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}") SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\https://simtk.org/home/zephyr") SET(CPACK_NSIS_URL_INFO_ABOUT "https:\\\\\\\\https://simtk.org/home/zephyr") SET(CPACK_NSIS_CONTACT "cmbruns@stanford.edu") # SET(CPACK_NSIS_MODIFY_PATH ON) # set(CPACK_PACKAGE_EXECUTABLES OpenMMZephyr.tcl OpenMMZephyr) # MUI icons should be used for installer, but don't work SET(CPACK_NSIS_MUI_ICON "${CMAKE_CURRENT_SOURCE_DIR}/images\\\\Install.ico") SET(CPACK_NSIS_MUI_UNIICON "${CMAKE_CURRENT_SOURCE_DIR}/images\\\\Uninstall.ico") # Branding image during install process SET(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/images\\\\Zephyr32.png") # Try more things to prevent NSIS from installing in "Program Files/..." because spaces suck. # set(PROGRAMFILES "C:/") # set(InstallDir "C:/${CPACK_PACKAGE_INSTALL_DIRECTORY}") # Try ".." to get out of Program Files... SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Zephyr") # causes error, so rename output file manually # SET(CPACK_OUTPUT_FILE_NAME "Install${CPACK_PACKAGE_INSTALL_DIRECTORY}.exe") # Microsoft redistributable libraries from Visual Studio 8 # set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait \\\"$INSTDIR\\\\bin\\\\win32\\\\vcredist_vs8_x86.exe /q:a\\\" ") # This does not work for installing both runtimes --cmb # Microsoft redistributable libraries from Visual Studio 9 SP1 set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS ${CPACK_NSIS_EXTRA_INSTALL_COMMANDS} "ExecWait \\\"$INSTDIR\\\\bin\\\\win32\\\\vcredist_vs9_x86.exe /q:a\\\" ") # ugly hack see http://public.kitware.com/Bug/view.php?id=7828 set(CPACK_PACKAGE_EXECUTABLES "" "") set(CPACK_NSIS_MENU_LINKS "./Zephyr.exe" "OpenMM Zephyr") # Perhaps "include(CPack)" must occur AFTER setting all those CPACK_WHATEVER variables set(CPACK_GENERATOR "NSIS")