From b4d474b770cceb02500314715e84b6b28abb9c85 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 31 Mar 2017 14:49:23 +0800 Subject: [PATCH] NSIS: set exit code to 0 on install/uninstall success Closes #6129. --- dist/windows/installer.nsi | 4 ++++ dist/windows/uninstaller.nsi | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dist/windows/installer.nsi b/dist/windows/installer.nsi index a3701c003..aa75f5fb0 100644 --- a/dist/windows/installer.nsi +++ b/dist/windows/installer.nsi @@ -228,3 +228,7 @@ Function PageFinishRun !insertmacro UAC_AsUser_ExecShell "" "$INSTDIR\qbittorrent.exe" "" "" "" FunctionEnd + +Function .onInstSuccess + SetErrorLevel 0 +FunctionEnd diff --git a/dist/windows/uninstaller.nsi b/dist/windows/uninstaller.nsi index 3051c2090..b5e4cde19 100644 --- a/dist/windows/uninstaller.nsi +++ b/dist/windows/uninstaller.nsi @@ -166,3 +166,7 @@ Function un.check_instance notfound: FunctionEnd + +Function un.onUninstSuccess + SetErrorLevel 0 +FunctionEnd