From 96011fa54548007bef642886508fcf0e7d88d91c Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 15 Apr 2024 16:34:14 +0300 Subject: [PATCH] Innosetup fix syntax error. --- dist/win/inno/valentina.iss | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/dist/win/inno/valentina.iss b/dist/win/inno/valentina.iss index 9ea481376..c60757a48 100644 --- a/dist/win/inno/valentina.iss +++ b/dist/win/inno/valentina.iss @@ -678,24 +678,25 @@ begin if FileExists(CommonIniPath) or FileExists(ValentinaIniPath) or FileExists(TapeIniPath) or FileExists(PuzzleIniPath) then begin - if MsgBox(ExpandConstant('{cm:QuestionRemoveAnyExistingSettings}'), mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then - begin - if FileExists(CommonIniPath) then - if not DeleteFile(CommonIniPath) then - MsgBox('Failed to delete common.ini', mbError, MB_OK); + if MsgBox(ExpandConstant('{cm:QuestionRemoveAnyExistingSettings}'), mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then + begin + if FileExists(CommonIniPath) then + if not DeleteFile(CommonIniPath) then + MsgBox('Failed to delete common.ini', mbError, MB_OK); - if FileExists(ValentinaIniPath) then - if not DeleteFile(ValentinaIniPath) then - MsgBox('Failed to delete Valentina.ini', mbError, MB_OK); + if FileExists(ValentinaIniPath) then + if not DeleteFile(ValentinaIniPath) then + MsgBox('Failed to delete Valentina.ini', mbError, MB_OK); - if FileExists(TapeIniPath) then - if not DeleteFile(TapeIniPath) then - MsgBox('Failed to delete Tape.ini', mbError, MB_OK); + if FileExists(TapeIniPath) then + if not DeleteFile(TapeIniPath) then + MsgBox('Failed to delete Tape.ini', mbError, MB_OK); - if FileExists(PuzzleIniPath) then - if not DeleteFile(PuzzleIniPath) then - MsgBox('Failed to delete Puzzle.ini', mbError, MB_OK); - end; + if FileExists(PuzzleIniPath) then + if not DeleteFile(PuzzleIniPath) then + MsgBox('Failed to delete Puzzle.ini', mbError, MB_OK); + end; end; + end; end;