var
LogoLabel: TLabel;
MyLogo: Longint;
function InitializeSetup:boolean;
begin
if not FileExists(ExpandConstant('{tmp}\botva2.dll')) then ExtractTemporaryFile('botva2.dll');
Result:=True;
end;
procedure LogoLabelOnClick(Sender: TObject);
var
ErrorCode: Integer;
begin
ShellExec('open', 'http://krinkels.org/showthread.php?p=19000#post19000', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode)
end;
procedure InitializeWizard();
begin
ExtractTemporaryFile('logo.png');
MyLogo:=ImgLoad(WizardForm.Handle,ExpandConstant('{tmp}\logo.png'), ScaleX(10), ScaleY(315), ScaleX(175), ScaleY(39), False, False);
ImgApplyChanges(WizardForm.Handle);
LogoLabel := TLabel.Create(WizardForm);
with LogoLabel do
begin
Parent := WizardForm;
Left:= ScaleX(10);
Top:= ScaleY(315)
Width := ScaleX(175);
Height := ScaleY(39);
Transparent:=True;
Cursor := crHand;
OnClick:=@LogoLabelOnClick;
end;
end;
procedure DeinitializeSetup;
begin
gdipShutdown;
end;[/SPOILER]
[SPOILER="Пример Лого"][Setup]
AppName=My Application
AppVersion=1.5
DefaultDirName={pf}\My Application
[Languages]
Name: english; MessagesFile: compiler:Default.isl
[Files]
Source: Files\GLogo.png; DestDir: {tmp}; Flags: dontcopy;
Source: Files\botva2.dll; DestDir: {tmp}; Flags: dontcopy;
Source: Files\b2p.dll; DestDir: {tmp}; Flags: dontcopy;
[Code]
var
CreateLogo: Longint;
#include "Modules\botva2.iss"
function InitializeSetup:boolean;
begin
if not FileExists(ExpandConstant('{tmp}\b2p.dll')) then ExtractTemporaryFile('b2p.dll');
if not FileExists(ExpandConstant('{tmp}\botva2.dll')) then ExtractTemporaryFile('botva2.dll');
Result:=True;
end;
procedure LogoLabelOnClick(Sender: TObject);
var
ErrorCode: Integer;
begin
ShellExec('open', 'http://krinkels.org/showthread.php?t=901&page=2', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode)
end;
procedure InitializeWizard;
begin
CreateLogo:= ImgLoad(WizardForm.handle, ExpandConstant('GLogo.png'), ScaleX(5), ScaleY(325), ScaleX(170), ScaleY(34), True, True);
ImgApplyChanges(WizardForm.Handle);
with TLabel.Create(WizardForm) do begin
Parent:=WizardForm;
AutoSize:=False;
Transparent:= true;
SetBounds(ScaleX(5), ScaleY(325), ScaleX(170), ScaleY(34));
OnClick:=@LogoLabelOnClick;
Cursor:= CrHand;
end;
end;
procedure DeinitializeSetup();
begin
gdipShutdown;
end;[/SPOILER]