diff --git a/build/windows/installer/gimp-setup.iss b/build/windows/installer/gimp-setup.iss index 4010bec9a5..04932a80f6 100644 --- a/build/windows/installer/gimp-setup.iss +++ b/build/windows/installer/gimp-setup.iss @@ -2752,6 +2752,12 @@ begin case pCurStep of ssInstall: begin + //As on usUninstall, do not allow to cancel on itReinstall or itUpdate + //since Inno does not undo [InstallDelete] and RemoveDebugFiles() + if (InstallType = 'itReinstall') or (InstallType = 'itUpdate') then begin + WizardForm.CancelButton.Enabled := False; + end; + if IsAdminInstallMode() then begin RestorePoint(); end;