друзья, вопрос в названии, isdone ниже, lolz+srep, что-то не видел такой проблемы в репаках, удалять вручную?
[UninstallDelete]
Type: filesandordirs; Name: {app};
Type: filesandordirs; Name: {app};
Код:
procedure ISDone_Unpack;
begin
ISDone_Resources;
ISDoneError := False;
if ISDoneInit(ExpandConstant('{tmp}\records.inf'), $F777, 0, 0, 0, MainForm.Handle, 512, @ProgressCallback) then
begin
ChangeLanguage('Russian');
if SrepInit('', 512, 0) and PrecompInit('', 128, 0) and FileSearchInit(true) then
begin
WizardForm.ProgressGauge.Position := 0;
Wizardform.ProgressGauge.Max := 1000;
if not ISArcExtract(0, 100, ExpandConstant('{src}\data1.bin'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
ISDoneError := True;
end;
ISDoneStop;
end;
if ISDoneError = True then
WizardForm.CancelButton.OnClick(nil);
end;
procedure CurStepChanged(CurStep: TSetupStep);
var
MsgResult: Integer;
begin
case CurStep of
ssInstall:
begin
ISDone_Unpack;
if ISDoneCancel=1 then
Exec(ExpandConstant('{uninstallexe}'), '/verysilent', '',SW_HIDE, ewWaitUntilTerminated, MsgResult);
end;
ssPostInstall:
begin
if ISDoneError then
Exec(ExpandConstant('{uninstallexe}'), '/verysilent', '',SW_HIDE, ewWaitUntilTerminated, MsgResult);
end;
end;
end;