Skip to content

Commit

Permalink
refs #5103. Force Uninstall added to NSIS script.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Apr 19, 2012
1 parent 381e092 commit d49b4a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Code/Mantid/Build/CMake/NSIS.template.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

;Set compression
SetCompressor @CPACK_NSIS_COMPRESSOR@

SetOverwrite @CPACK_NSIS_FORCE_OVERWRITE@

@CPACK_NSIS_DEFINES@

Expand Down
4 changes: 3 additions & 1 deletion Code/Mantid/Build/CMake/WindowsNSIS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
set( CPACK_INSTALL_PREFIX "/")
set( CPACK_NSIS_DISPLAY_NAME "Mantid${CPACK_PACKAGE_SUFFIX}")
set( CPACK_PACKAGE_NAME "Mantid${CPACK_PACKAGE_SUFFIX}" )
set( CPACK_PACKAGE_INSTALL_DIRECTORY "MantidInstall${CPACK_PACKAGE_SUFFIX}")
set( CPACK_PACKAGE_INSTALL_DIRECTORY "MantidInstall${CPACK_PACKAGE_SUFFIX}")
set( CPACK_NSIS_INSTALL_ROOT "C:")
set( CPACK_NSIS_FORCE_OVERWRITE on CACHE STRING "Force installer to overwrite any existing install")
set_property(CACHE CPACK_NSIS_FORCE_OVERWRITE PROPERTY STRINGS on off)

#set( CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL "ON")
set( CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/Images\\\\MantidPlot_Icon_32offset.png" )
Expand Down

0 comments on commit d49b4a3

Please sign in to comment.