diff --git a/cmake/templates/NSIS.template.in b/cmake/templates/NSIS.template.in index c7d2f05fb5..efae56339b 100644 --- a/cmake/templates/NSIS.template.in +++ b/cmake/templates/NSIS.template.in @@ -1245,6 +1245,9 @@ Function .onInit Quit !endif + ; make sure none of the installed applications are still running + !insertmacro CheckForRunningApplications + StrCmp "@CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL@" "ON" 0 inst ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "UninstallString"