From c6acd70e0edb7fd5ea44b0ba5e00efde2b91a443 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Sun, 18 Mar 2018 14:23:13 +0100 Subject: [PATCH] Don't show update confirmation message again when going back. --- MPUI_Setup.nsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MPUI_Setup.nsi b/MPUI_Setup.nsi index 2fc35ca..e1f4396 100644 --- a/MPUI_Setup.nsi +++ b/MPUI_Setup.nsi @@ -1145,7 +1145,7 @@ FunctionEnd !macro EnablePathEditable flag show_msg !insertmacro SetControlEnabled 1019 ${flag} !insertmacro SetControlEnabled 1001 ${flag} - ${IfNot} $NotUpdateInstall == ${flag} + ${IfNot} $NotUpdateInstall = ${flag} !if ${show_msg} == 1 MessageBox MB_OK|MB_ICONINFORMATION "$(MPLAYER_LANG_FORCE_UPDATE)" /SD IDOK !endif @@ -1162,7 +1162,8 @@ Function CheckForUpdate ${EndIf} ${If} ${FileExists} "$INSTDIR\MPlayer.exe" - ${If} ${FileExists} "$INSTDIR\version.tag" + ${If} $NotUpdateInstall = 1 + ${AndIf} ${FileExists} "$INSTDIR\version.tag" ReadINIStr $0 "$INSTDIR\version.tag" "mplayer_version" "build_no" ${If} $0 > ${MPLAYER_BUILDNO} MessageBox MB_OK|MB_ICONEXCLAMATION "$(MPLAYER_LANG_CAN_NOT_UPDATE)" -- 2.11.4.GIT