doombuster У меня инсталлятор разбит на 2 двд, так что данный участок скрипта не прокатит....
Добавлено: Если можно решить ситуацию батником....помогите
Добавлено: Вот скрипт репака cdmen'а от игры FEAR 2 [more][Setup]
AppName=F.E.A.R. 2 - Project Origin
AppVerName=F.E.A.R. 2 - Project Origin v1.0 R-E
DefaultDirName=C:\Games\FEAR 2 Project Origin
DefaultGroupName=F.E.A.R. 2 - Project Origin
Compression=lzma/ultra64
SolidCompression=yes
DiskSpanning=yes
SlicesPerDisk=3
DiskSliceSize=1560000000
ExtraDiskSpaceRequired=12314196992
RestartIfNeededByRun=no
WizardImageFile=compiler:WizardImage1.bmp
WizardSmallImageFile=compiler:WizardImage3.bmp
SetupIconFile=C:\INNO\Output\autorun.ico
[Components]
Name: "rus"; Description: "Ðóññêàÿ âåðñèÿ"; Flags: exclusive
Name: "eng"; Description: "English version"; Flags: exclusive
[Types]
Name: "custom"; Description: "Âûáîðî÷íàÿ óñòàíîâêà"; Flags: iscustom
[Files]
Source: "D:\SOURCE\TMP\*"; DestDir: "{tmp}"; Flags: dontcopy
Source: "D:\SOURCE\MAIN\*"; DestDir: "{app}"; Flags: ignoreversion createallsubdirs recursesubdirs sortfilesbyextension
Source: "D:\SOURCE\NOCOMP\*"; DestDir: "{app}"; Flags: ignoreversion createallsubdirs recursesubdirs nocompression
[Languages]
Name: "ru"; MessagesFile: "compiler:Languages\Games.isl"
[LangOptions]
WelcomeFontSize=10
[Icons]
Name: "{group}\F.E.A.R. 2 Project Origin"; Filename: "{app}\FEAR2.exe"; WorkingDir: "{app}";
Name: "{group}\F.E.A.R. 2 Project Origin - Safe Mode"; Filename: "{app}\FEAR2.exe"; Parameters: "-safemode"; WorkingDir: "{app}";
Name: "{group}\View ReadMe file"; Filename: "{app}\Readme.txt";
Name: "{group}\Uninstall Game"; Filename: "{uninstallexe}";
Name: "{userdesktop}\F.E.A.R. 2"; Filename: "{app}\FEAR2.exe"; WorkingDir: "{app}"; Tasks: desktopicon
[Registry]
Root: HKCU; Subkey: "SOFTWARE\Monolith Productions"; Flags: uninsdeletekeyifempty
Root: HKCU; Subkey: "SOFTWARE\Monolith Productions\FEAR2"; Flags: uninsdeletekey
Components: rus; Root: HKCU; Subkey: "SOFTWARE\Monolith Productions\FEAR2\1.00.0000"; ValueType: string; ValueName: "LANGUAGE"; ValueData: "ru"; Flags: uninsdeletekey
Components: eng; Root: HKCU; Subkey: "SOFTWARE\Monolith Productions\FEAR2\1.00.0000"; ValueType: string; ValueName: "LANGUAGE"; ValueData: "en"; Flags: uninsdeletekey
Root: HKLM; Subkey: "SOFTWARE\Monolith Productions, Inc."; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "SOFTWARE\Monolith Productions\F.E.A.R. 2 Project Origin"; Flags: uninsdeletekey
Root: HKLM; Subkey: "SOFTWARE\Monolith Productions\F.E.A.R. 2 Project Origin\1.00.0000"; Flags: uninsdeletekey
Root: HKLM; Subkey: "SOFTWARE\FEAR2Game"; ValueType: string; ValueName: "AppPath"; ValueData: "{app}"; Flags: uninsdeletekey
[Run]
Filename: "{app}\GameDataSP1.exe"; WorkingDir: "{app}"; Parameters: "-x -y -s2 -d."; StatusMsg: "Èäåò ðàñïàêîâêà äàííûõ, ïîäîæäèòå ïîæàëóéñòà..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q GameDataSP1.exe"; Flags: runhidden runasoriginaluser
Filename: "{app}\GameDataSP2.exe"; WorkingDir: "{app}"; Parameters: "-x -y -s2 -d."; StatusMsg: "Èäåò ðàñïàêîâêà äàííûõ, ïîäîæäèòå ïîæàëóéñòà..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q GameDataSP2.exe"; Flags: runhidden runasoriginaluser
Filename: "{app}\GameSounds.exe"; WorkingDir: "{app}"; Parameters: "-x -y -s2 -d."; StatusMsg: "Èäåò ðàñïàêîâêà àóäèîôàéëîâ, ïîäîæäèòå ïîæàëóéñòà..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q GameSounds.exe"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer01.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 3% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer01.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer01.Arch01"" -r ""Layer01.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 6% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer01.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer02.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 9% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer02.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer02.Arch01"" -r ""Layer02.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 12% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer02.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer03.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 15% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer03.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer03.Arch01"" -r ""Layer03.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 18% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer03.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer04.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 21% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer04.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer04.Arch01"" -r ""Layer04.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 24% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer04.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer05.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 27% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer05.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer05.Arch01"" -r ""Layer05.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 30% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer05.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer06.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 33% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer06.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer06.Arch01"" -r ""Layer06.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 36% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer06.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer07.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 39% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer07.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer07.Arch01"" -r ""Layer07.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 42% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer07.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer08.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 45% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer08.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer08.Arch01"" -r ""Layer08.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 48% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer08.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer09.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 51% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer09.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer09.Arch01"" -r ""Layer09.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 54% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer09.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer10.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 57% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer10.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer10.Arch01"" -r ""Layer10.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 60% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer10.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer11.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 63% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer11.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer11.Arch01"" -r ""Layer11.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 66% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer11.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer12.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 69% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer12.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer12.Arch01"" -r ""Layer12.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 71% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer12.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer13.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 75% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer13.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer13.Arch01"" -r ""Layer13.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 80% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer13.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer14.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 85% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer14.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer14.Arch01"" -r ""Layer14.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 90% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer14.pcf"; Flags: runhidden runasoriginaluser
Filename: "{app}\rep.exe"; WorkingDir: "{app}"; Parameters: "Layer15.pcf.rep"; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 95% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer15.pcf.rep"; Flags: runminimized runasoriginaluser
Filename: "{app}\precomp.exe"; WorkingDir: "{app}"; Parameters: "-o""Layer15.Arch01"" -r ""Layer15.pcf"""; StatusMsg: "Âîññòàíàâëèâàþòñÿ èãðîâûå àðõèâû, 99% âûïîëíåíî..."; Flags: runminimized runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C del /F /Q Layer15.pcf rep.exe msvcr80.dll packjpg_dll.dll zlib1.dll precomp.exe"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\fx\interface\video\monotitle.vib game\materials\_global\cinematics\titles\monotitles.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\fx\interface\video\potitle.vib game\materials\_global\cinematics\titles\potitles.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\fx\interface\video\wbtitle.vib game\materials\_global\cinematics\titles\wbtitles.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\fx\interface\video\monotitle.vib game\interface\menu\teaser_standby.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\interface\videos\legalsplash.vib game\interface\videos\360legalsplash.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\interface\videos\legalsplash.vib game\interface\videos\credits.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\interface\videos\legalsplash.vib game\interface\videos\demoend.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\interface\videos\legalsplash.vib game\interface\videos\legal_360_nonus.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\interface\videos\legalsplash.vib game\interface\videos\legal_pc_nonus.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\interface\videos\legalsplash.vib game\interface\videos\legalsplashnonus.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\interface\videos\legalsplash.vib game\interface\videos\lobby.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\interface\videos\legalsplash.vib game\interface\videos\summary.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\interface\videos\wbglogo2.vib game\interface\videos\wbglogo.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\interface\videos\legalsplash.vib game\video\e3\demo_introtitles.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\interface\videos\esrb.vib game\video\e3\esrb_po_legal.vib"; Flags: runhidden runasoriginaluser
Filename: "cmd.exe"; WorkingDir: "{app}"; Parameters: "/C copy /b game\interface\videos\legalsplash.vib game\video\e3\interval00.vib"; Flags: runhidden runasoriginaluser
Filename: "{src}\Redist\vcredist_x86.exe"; WorkingDir: "{src}\Redist"; Parameters: "/Q"; Check: not IsWin64; StatusMsg: "Óñòàíîâêà VCPP Redistributable, ïîäîæäèòå ïîæàëóéñòà...";
Filename: "{src}\Redist\DirectX\dxsetup.exe"; Parameters: "/silent"; WorkingDir: "{src}\Redist\DirectX"; StatusMsg: "Îáíîâëåíèå êîìïîíåíòîâ DirectX, ïîäîæäèòå ïîæàëóéñòà...";
[UninstallDelete]
Type: filesandordirs; Name: "{app}"
[Tasks]
Name: "desktopicon"; Description: "Ñîçäàòü ÿðëûê íà ðàáî÷åì ñòîëå";
[Code]
const
BACKGROUND=6;
TIMER=16;
const SmallWidth = 238;
function isxbb_AddImage(Image: PChar; Flags: Cardinal): Integer;
external 'isxbb_AddImage@files:isxbb.dll stdcall';
function isxbb_Init(hWnd: Integer): Integer;
external 'isxbb_Init@files:isxbb.dll stdcall';
function isxbb_StartTimer(Seconds: Integer; Flags: Cardinal): Integer;
external 'isxbb_StartTimer@files:isxbb.dll stdcall';
function isxbb_KillTimer(Flags: Cardinal): Integer;
external 'isxbb_KillTimer@files:isxbb.dll stdcall';
function GetSystemMetrics(nIndex:Integer):Integer;
external 'GetSystemMetrics@user32.dll stdcall';
var
PageNameLabel, PageDescriptionLabel: TLabel;
width,height: Integer;
BackgroundBitmapImage: TBitmapImage;
s: string;
procedure InitializeWizard();
begin
PageNameLabel := TLabel.Create(WizardForm);
with PageNameLabel do
begin
Left := ScaleX(10);
Top := ScaleY(10);
Width := ScaleX(300);
Height := ScaleY(14);
AutoSize := False;
WordWrap := True;
Font.Color := clBlack;
Font.Style := [fsBold];
ShowAccelChar := False;
Transparent := True;
Parent := WizardForm.MainPanel;
end;
PageDescriptionLabel := TLabel.Create(WizardForm);
with PageDescriptionLabel do
begin
Left := ScaleX(15);
Top := ScaleY(25);
Width := ScaleX(475);
Height := ScaleY(30);
AutoSize := False;
WordWrap := True;
Font.Color := clBlack;
ShowAccelChar := False;
Transparent := True;
Parent := WizardForm.MainPanel;
end;
with WizardForm do
begin
PageNameLabel.Hide;
PageDescriptionLabel.Hide;
with MainPanel do
begin
with WizardSmallBitmapImage do
begin
Left := WizardForm.WizardSmallBitmapImage.Left - (SmallWidth - WizardForm.WizardSmallBitmapImage.Width) + 2;
Top := ScaleY(0);
Width := SmallWidth;
Height := MainPanel.Height;
end;
end;
end;
begin
ExtractTemporaryFile('background.bmp');
s:=ExpandConstant('{tmp}')+'\background.bmp';
WizardForm.Position:=poScreenCenter;
MainForm.BORDERSTYLE:=bsNone;
width:=GetSystemMetrics(0);
height:=GetSystemMetrics(1);
MainForm.Width:=width;
MainForm.Height:=height;
width:=MainForm.ClientWidth;
height:=MainForm.ClientHeight;
MainForm.Left := 0;
MainForm.Top := 0;
BackgroundBitmapImage := TBitmapImage.Create(MainForm);
BackgroundBitmapImage.Bitmap.LoadFromFile(s);
BackgroundBitmapImage.Align := alClient;
BackgroundBitmapImage.Parent := MainForm;
BackgroundBitmapImage.Stretch:=True;
MainForm.Visible:=True;
begin
ExtractTemporaryFile('background.bmp');
isxbb_AddImage(ExpandConstant('{tmp}')+'\background.bmp',BACKGROUND);
isxbb_Init(StrToInt(ExpandConstant('{hwnd}')));
begin
WizardForm.CancelButton.BringToFront;
end;
end;
end;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
PageNameLabel.Caption := WizardForm.PageNameLabel.Caption;
PageDescriptionLabel.Caption := WizardForm.PageDescriptionLabel.Caption;
begin
if CurPageID=wpInstalling
then
begin
WizardForm.MainPanel.Visible:=False;
WizardForm.Bevel1.Visible:=False;
WizardForm.Width:=ScaleX(395);
WizardForm.Height:=ScaleY(142);
WizardForm.Left:=ScaleX(MainForm.Width-420);
WizardForm.Top:=ScaleY(MainForm.Height-170);
WizardForm.InnerNotebook.Left:=ScaleX(10);
WizardForm.InnerNotebook.Top:=ScaleY(10);
WizardForm.InnerNotebook.Width:=ScaleX(370);
WizardForm.StatusLabel.Left:=ScaleX(0);
WizardForm.StatusLabel.Top:=ScaleY(0);
WizardForm.StatusLabel.Width:=WizardForm.InnerNotebook.Width;
WizardForm.FileNameLabel.Left:=ScaleX(0);
WizardForm.FileNameLabel.Top:=ScaleY(20);
WizardForm.FileNameLabel.Width:=WizardForm.InnerNotebook.Width;
WizardForm.ProgressGauge.Top:=ScaleY(40);
WizardForm.ProgressGauge.Width:=WizardForm.InnerNotebook.Width;
WizardForm.CancelButton.Left:=ScaleX(154);
WizardForm.CancelButton.Top:=ScaleY(80);
end
if CurPageID=wpFinished
then
begin
WizardForm.Width:=502;
WizardForm.Height:=392;
WizardForm.Position:=poScreenCenter;
end
end;
end;
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep=ssInstall
then
begin
ExtractTemporaryFile('001.jpg');
ExtractTemporaryFile('002.jpg');
ExtractTemporaryFile('003.jpg');
ExtractTemporaryFile('004.jpg');
ExtractTemporaryFile('005.jpg');
ExtractTemporaryFile('006.jpg');
ExtractTemporaryFile('007.jpg');
ExtractTemporaryFile('008.jpg');
ExtractTemporaryFile('009.jpg');
ExtractTemporaryFile('010.jpg');
ExtractTemporaryFile('011.jpg');
ExtractTemporaryFile('012.jpg');
ExtractTemporaryFile('013.jpg');
ExtractTemporaryFile('014.jpg');
ExtractTemporaryFile('015.jpg');
ExtractTemporaryFile('016.jpg');
ExtractTemporaryFile('017.jpg');
ExtractTemporaryFile('018.jpg');
ExtractTemporaryFile('019.jpg');
ExtractTemporaryFile('020.jpg');
ExtractTemporaryFile('021.jpg');
ExtractTemporaryFile('022.jpg');
ExtractTemporaryFile('023.jpg');
ExtractTemporaryFile('024.jpg');
ExtractTemporaryFile('025.jpg');
ExtractTemporaryFile('026.jpg');
ExtractTemporaryFile('027.jpg');
ExtractTemporaryFile('028.jpg');
ExtractTemporaryFile('029.jpg');
ExtractTemporaryFile('030.jpg');
ExtractTemporaryFile('031.jpg');
ExtractTemporaryFile('032.jpg');
ExtractTemporaryFile('033.jpg');
ExtractTemporaryFile('034.jpg');
ExtractTemporaryFile('035.jpg');
ExtractTemporaryFile('036.jpg');
ExtractTemporaryFile('037.jpg');
ExtractTemporaryFile('038.jpg');
ExtractTemporaryFile('039.jpg');
ExtractTemporaryFile('040.jpg');
ExtractTemporaryFile('041.jpg');
ExtractTemporaryFile('042.jpg');
ExtractTemporaryFile('043.jpg');
ExtractTemporaryFile('044.jpg');
ExtractTemporaryFile('045.jpg');
ExtractTemporaryFile('046.jpg');
ExtractTemporaryFile('047.jpg');
ExtractTemporaryFile('048.jpg');
ExtractTemporaryFile('049.jpg');
ExtractTemporaryFile('050.jpg');
ExtractTemporaryFile('051.jpg');
ExtractTemporaryFile('052.jpg');
ExtractTemporaryFile('053.jpg');
ExtractTemporaryFile('054.jpg');
ExtractTemporaryFile('055.jpg');
ExtractTemporaryFile('056.jpg');
ExtractTemporaryFile('057.jpg');
ExtractTemporaryFile('058.jpg');
ExtractTemporaryFile('059.jpg');
ExtractTemporaryFile('060.jpg');
ExtractTemporaryFile('061.jpg');
ExtractTemporaryFile('062.jpg');
ExtractTemporaryFile('063.jpg');
ExtractTemporaryFile('064.jpg');
ExtractTemporaryFile('065.jpg');
ExtractTemporaryFile('066.jpg');
ExtractTemporaryFile('067.jpg');
ExtractTemporaryFile('068.jpg');
ExtractTemporaryFile('069.jpg');
ExtractTemporaryFile('070.jpg');
ExtractTemporaryFile('071.jpg');
ExtractTemporaryFile('072.jpg');
ExtractTemporaryFile('073.jpg');
ExtractTemporaryFile('074.jpg');
ExtractTemporaryFile('075.jpg');
isxbb_AddImage(ExpandConstant('{tmp}')+'\001.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\002.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\003.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\004.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\005.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\006.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\007.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\008.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\009.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\010.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\011.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\012.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\013.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\014.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\015.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\016.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\017.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\018.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\019.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\020.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\021.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\022.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\023.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\024.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\025.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\026.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\027.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\028.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\029.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\030.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\031.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\032.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\033.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\034.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\035.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\036.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\037.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\038.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\039.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\040.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\041.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\042.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\043.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\044.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\045.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\046.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\047.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\048.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\049.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\050.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\051.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\052.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\053.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\054.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\055.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\056.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\057.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\058.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\059.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\060.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\061.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\062.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\063.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\064.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\065.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\066.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\067.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\068.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\069.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\070.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\071.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\072.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\073.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\074.jpg',BACKGROUND or TIMER);
isxbb_AddImage(ExpandConstant('{tmp}')+'\075.jpg',BACKGROUND or TIMER);
isxbb_StartTimer(20,BACKGROUND)
end
else if CurStep=ssPostInstall then
isxbb_KillTimer(BACKGROUND);
end;[/more]
Взял его за основу, у него работает всё нормально...у меня нет, быть может по тому что у него используется precompl ?