build/windows: Do not allow cancelling itReinstall nor itUpdate
As said oncbe2f6be, Inno does not support modifying installations at all, not even canceling/undoing modifications like reinstall and update. This limitation become more apparent after the fix24e42dd1so let's prevent the users being damaged by such major Inno pitfall.
This commit is contained in:
parent
cbc8150749
commit
06d8bd6c54
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue