fix #529
This commit is contained in:
parent
89e11f94d2
commit
ae189db85f
@ -8,6 +8,7 @@ Unicode True
|
|||||||
; Do necessary inclusions.
|
; Do necessary inclusions.
|
||||||
!include NSIS.definitions.nsh
|
!include NSIS.definitions.nsh
|
||||||
!include MUI2.nsh
|
!include MUI2.nsh
|
||||||
|
!include nsProcess.nsh
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
; Basic values definitions.
|
; Basic values definitions.
|
||||||
@ -161,6 +162,15 @@ LangString DESC_StartMenuShortcuts ${LANG_ENGLISH} "Start Menu Shortcuts for ${A
|
|||||||
|
|
||||||
; Uninstaller section.
|
; Uninstaller section.
|
||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
|
exeTest:
|
||||||
|
${nsProcess::FindProcess} "${EXE_NAME}" $R0
|
||||||
|
StrCmp $R0 0 0 notRunning
|
||||||
|
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION '${APP_NAME} (${EXE_NAME}) is still running. Quit it first and then proceed.' IDOK exeTest IDCANCEL quitMe
|
||||||
|
|
||||||
|
quitMe:
|
||||||
|
Abort
|
||||||
|
|
||||||
|
notRunning:
|
||||||
; Here remove all files, but skip "data" folder.
|
; Here remove all files, but skip "data" folder.
|
||||||
Push "$INSTDIR"
|
Push "$INSTDIR"
|
||||||
Push "data4"
|
Push "data4"
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 1b37753199e99c1d8baf41b9cc208fbc0cb400c9
|
Subproject commit c53c77101d7349334442e18a9b754ed1ab44724a
|
Loading…
x
Reference in New Issue
Block a user