Автор: DICI BF
Дата сообщения: 20.02.2014 21:04
Alex 17,
1. [more=Вот так!]
Код: [Setup]
AppName=ISWin7
AppVerName=ISWin7 v0.5
DefaultDirName={pf}\ISWin7
DefaultGroupName=ISWin7
OutputDir=.
[Dirs]
Name: "{app}\ISWin7"; Attribs: hidden system
[Files]
Source: "iswin7.dll"; DestDir: "{app}\ISWin7"; Attribs: hidden system
; Перед компиляцией удалить "_"...
[_Code]
procedure iswin7_add_button(Handle: HWND);
external 'iswin7_add_button@{tmp}\iswin7.dll stdcall delayload';
procedure iswin7_add_glass(Handle: HWND; Left, Top, Right, Bottom: Integer; GDIPLoadMode: Boolean);
external 'iswin7_add_glass@{tmp}\iswin7.dll stdcall delayload';
procedure iswin7_free;
external 'iswin7_free@{tmp}\iswin7.dll stdcall delayload';
function InitializeSetup(): Boolean;
begin
ExtractTemporaryFile('iswin7.dll');
Result := True;
end;
procedure InitializeWizard();
begin
iswin7_add_button(WizardForm.BackButton.Handle);
iswin7_add_button(WizardForm.NextButton.Handle);
iswin7_add_button(WizardForm.CancelButton.Handle);
iswin7_add_glass(WizardForm.Handle, 0, 0, 0, 47, True);
end;
procedure DeinitializeSetup();
begin
iswin7_free;
end;
function InitializeUninstall(): Boolean;
begin
FileCopy(ExpandConstant('{app}\ISWin7\iswin7.dll'), ExpandConstant('{tmp}\iswin7.dll'), False);
Result := True;
end;
procedure InitializeUninstallProgressForm();
begin
iswin7_add_button(UninstallProgressForm.CancelButton.Handle);
iswin7_add_glass(UninstallProgressForm.Handle, 0, 0, 0, 47, True);
end;
procedure DeinitializeUninstall();
begin
iswin7_free;
end;