[Files]
Source: "ISSkin.dll"; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression solidbreak
Source: "ISSkinU.dll"; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression solidbreak
Source: "tiger.cjstyles"; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression solidbreak
Source: "bass.dll"; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression solidbreak
Source: "isgsg.dll"; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression solidbreak
Source: "CallbackCtrl.dll"; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression solidbreak
Source: "botva2.dll"; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression solidbreak
Source: "Music.mp3"; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression solidbreak
Source: "BASS_Files\*"; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression solidbreak
Source: "Splash.png"; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression solidbreak
Source: "Папка с файлами для инсталляции\exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "Папка с файлами для инсталляции\ *"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
[Icons]
[Run]
[UninstallDelete]
[Code]
procedure LoadSkin(lpszPath: String; lpszIniFileName: String); external 'LoadSkin@files:isskin.dll stdcall';
procedure UnloadSkin(); external 'UnloadSkin@files:isskin.dll stdcall';
function ShowWindow(hWnd: Integer; uType: Integer): Integer; external 'ShowWindow@user32.dll stdcall';
//Ползунок устанавливается в соответствии с громкостью, остальные настройки в BASS_Module.iss
procedure BASS_SetVolume(Pos: DWORD);
var
nLeft, bLeft, bTop, bWidth, bHeight: Integer;
begin
if (Pos >= 0) and (Pos <= 100) then begin
BASS_ChangePos(Pos);
nLeft:= BASS_TrackBar.MinLeft + round(BASS_TrackBar.BarWidth*BASS_Volume/100);
if (nLeft<BASS_TrackBar.MinLeft) then nLeft:= BASS_TrackBar.MinLeft;
if (nLeft>BASS_TrackBar.MaxLeft) then nleft:= BASS_TrackBar.MaxLeft;
BtnGetPosition(BASS_TrackBar.BarDote, bLeft, bTop, bWidth, bHeight);
BtnSetPosition(BASS_TrackBar.BarDote, nLeft, bTop, bWidth, bHeight);
end;
end;
//Конец Ползунок
//Splash
procedure ShowSplashScreen(p1:HWND;p2:AnsiString;p3,p4,p5,p6,p7:integer;p8:boolean;p9:Cardinal;p10:integer);
external 'ShowSplashScreen@files:isgsg.dll stdcall delayload';
//Конец Splash
function InitializeSetup:boolean;
begin
ExtractTemporaryFile('tiger.cjstyles');
LoadSkin(ExpandConstant('{tmp}\tiger.cjstyles'), '');
Result:=True;
end;
procedure Splash();
begin
ExtractTemporaryFile('Splash.png');
ShowSplashScreen(WizardForm.Handle,ExpandConstant('{tmp}\Splash.png'),1000,5000,2000,0,255,True,$FFFFFF,10);
end;
procedure InitializeWizard;
begin
ExtractTemporaryFile('bass.dll');
ExtractTemporaryFile('botva2.dll');
ExtractTemporaryFile('CallbackCtrl.dll');
ExtractTemporaryFile('Music.mp3');
ExtractTemporaryFile('MusicButton.png');
ExtractTemporaryFile('volmax.png');
ExtractTemporaryFile('volmin.png');
ExtractTemporaryFile('volpb.png');
ExtractTemporaryFile('voldote.png');
Bass_Init('{tmp}\Music.mp3');
BASS_CreateMediaPlayer(WizardForm, '{tmp}\volmax.png', '{tmp}\volmin.png', '{tmp}\volpb.png', '{tmp}\voldote.png', 20, 329);
BASS_CreateOnOffButton(WizardForm, '{tmp}\MusicButton.png', 170, 320, 36, 36, 4);
BASS_SetVolume(5);
Splash();
end;
procedure DeinitializeSetup;
begin
Bass_DeInit;
gdipShutdown;
ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}')), 0);
UnloadSkin();
end;