Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 8130dce9 authored by Alvin Wong's avatar Alvin Wong

Win installer: Make uninstaller prompt show in correct language

parent ae5d7663
......@@ -96,6 +96,7 @@ Page Custom func_BeforeInstallPage_Init
!insertmacro MUI_PAGE_FINISH
# Uninstaller Pages
!define MUI_PAGE_CUSTOMFUNCTION_PRE un.func_UnintallFirstpage_Init
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
......@@ -517,6 +518,7 @@ Function .onInit
${IfNot} ${Silent}
MessageBox MB_OK|MB_ICONEXCLAMATION "$(MsgKritaRunning)"
${EndIf}
SetErrorLevel 10
Abort
${EndIf}
pop $R0
......@@ -566,11 +568,24 @@ Function un.onInit
Pop $0
ReadRegDWORD $UninstallShellExStandalone HKLM "Software\Krita\ShellExtension" "Standalone"
${If} ${Silent}
# Only check here if running in silent mode. It's otherwise checked in
# un.func_UnintallFirstpage_Init in order to display a prompt in the
# correct language.
${If} ${IsFileinUse} "$INSTDIR\bin\krita.exe"
SetErrorLevel 10
Abort
${EndIf}
${EndIf}
FunctionEnd
Function un.func_UnintallFirstpage_Init
${If} ${IsFileinUse} "$INSTDIR\bin\krita.exe"
${IfNot} ${Silent}
MessageBox MB_OK|MB_ICONEXCLAMATION "$(MsgUninstallKritaRunning)"
${EndIf}
Abort
SetErrorLevel 10
Quit
${EndIf}
FunctionEnd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment