check for running apps during install

This commit is contained in:
Stephen Birarda 2016-01-18 16:26:53 -08:00
parent 96c3adaa19
commit 7d8fc6f702

View file

@ -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"