procedure DeinitializeSetup;
begin
if ISInit then
begin
if PBOldProc <> 0 then
SetWindowLong(WizardForm.ProgressGauge.Handle, -4, PBOldProc);
if FileExists(ExpandConstant('{tmp}\{#Font}')) then
RemoveFontResource(ExpandConstant('{tmp}\{#Font}'), FR_PRIVATE, 0);
ButtonsFont.Free;
if FileExists(ExpandConstant('{tmp}\botva2.dll')) then
gdipShutDown;
FreeDirBrowseForm;
FreeExitForm;
end;
end;