Fixes https://gitlab.com/graphviz/graphviz/-/issues/1752
set(CPACK_NSIS_HELP_LINK "http://www.graphviz.org" )
set(CPACK_NSIS_URL_INFO_ABOUT "http://www.graphviz.org" )
set(CPACK_NSIS_MODIFY_PATH ON )
+ if(CMAKE_CL_64)
+ set(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")
+ else()
+ set(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES")
+ endif()
+ set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
+ Delete \\\"${CPACK_NSIS_INSTALL_ROOT}\\\\${CPACK_PACKAGE_INSTALL_DIRECTORY}\\\\${BINARY_INSTALL_DIR}\\\\config6\\\"
+ ")
LIST(APPEND CPACK_GENERATOR NSIS)
endif()