nizcoz
Участник
This line already had it in my code. I am trying to cancel the installation (when decompression starts) with this code:nizcoz, check or add this:Код:[UninstallDelete] Type: Filesandordirs; Name: {app};
Код:
end;
HideControls;
WizardForm.CancelButton.Visible:=true;
WizardForm.CancelButton.Enabled:=false;
end;
if (CurStep=ssInstall) and ISDoneError then begin
Exec(ExpandConstant('{uninstallexe}'), '/VERYSILENT','', sw_Hide, ewNoWait, ResultCode);
ExitProcess(0);
end;
end;
Код:
Exec(ExpandConstant('{uninstallexe}'), '/VERYSILENT','', sw_Hide, ewNoWait, ResultCode);