Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;#UNINSTALL REG DISABLED
- ;#define CustomGDFBinary
- ; TUTAJ WRZUCAMY PRODUCT CODE, ALE JESLI NIE MAMY, MOŻNA TO WYKOMENTOWAĆ
- ;#define ProductCode "{76285C16-411A-488A-BCE3-C83CB933D8CF}"
- [Setup]
- AppName={code:GetAppName}
- AppVerName={code:GetAppName}
- DefaultDirName={pf}\{code:GetAppPublisher}\{code:GetAppName}
- DefaultGroupName={code:GetAppPublisher}\{code:GetAppName}
- VersionInfoDescription=TLRG
- VersionInfoCopyright=TLRG
- VersionInfoProductName=TLRG
- VersionInfoVersion=6.6.0.0
- VersionInfoCompany=TLRG
- DirExistsWarning=no
- DisableReadyPage=true
- ShowLanguageDialog=no
- OutputBaseFilename=Setup.dll
- OutputDir=.
- ;OutputDir=.
- Compression=none
- DisableStartupPrompt=true
- ;LicenseFile=EULA\eula.rtf
- DisableProgramGroupPage=yes
- SetupIconFile=Setup.ico
- ;WindowVisible=true
- WindowShowCaption=false
- WindowResizable=false
- BackColor=clBlack
- WizardImageFile=blank.bmp
- CreateUninstallRegKey=true
- UsePreviousLanguage=No
- ;PrivilegesRequired=lowest
- ChangesEnvironment=yes
- ChangesAssociations=yes
- UninstallFilesDir={app}\Uninstall
- [UninstallDelete]
- Type: filesandordirs; Name: {app}
- [Languages]
- Name: eng; MessagesFile: Languages\English.isl
- Name: cze; MessagesFile: Languages\Czech.isl
- Name: cnt; MessagesFile: Languages\ChineseTrad.isl
- Name: dan; MessagesFile: Languages\Danish.isl
- Name: ndl; MessagesFile: Languages\Dutch.isl
- Name: fre; MessagesFile: languages\french.isl
- Name: ger; MessagesFile: Languages\German.isl
- Name: hun; MessagesFile: languages\Hungarian.isl
- Name: ita; MessagesFile: languages\italian.isl
- Name: jap; MessagesFile: Languages\Japanese.isl
- Name: kor; MessagesFile: Languages\Korean.isl
- Name: nor; MessagesFile: Languages\Norwegian.isl
- Name: pol; MessagesFile: Languages\Polish.isl
- Name: por; MessagesFile: Languages\Portuguese.isl
- Name: rus; MessagesFile: Languages\Russian.isl
- Name: esp; MessagesFile: Languages\Spanish.isl
- Name: swe; MessagesFile: Languages\Swedish.isl
- Name: tha; MessagesFile: Languages\Thai.isl
- Name: tur; MessagesFile: Languages\Turkish.isl
- [Icons]
- Name: {group}\{code:GetAppName} {cm:uninstall}; Filename: {uninstallexe}; WorkingDir: {app}
- Name: {group}\{code:GetAppName}; Filename: {app}\{code:GetMyAppExePath}\{code:GetMyAppExeName}; WorkingDir: {app}\{code:GetMyAppExePath}
- Name: {userdesktop}\{code:GetAppName}; Filename: {app}\{code:GetMyAppExePath}\{code:GetMyAppExeName}; WorkingDir: {app}\{code:GetMyAppExePath}
- [Registry]
- Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"; ValueName: UninstallString; ValueData: {uninstallexe}; ValueType: string; Flags: UninsDeleteKey;
- [Code]
- type
- #ifdef UNICODE
- #define A "W"
- #else
- #define A "A" ;// òî÷êà âõîäà â SetWindowText, {#A} ìåĂÿåòñÿ ĂĂ A èëè W â çà âèñèìîñòè îò âåðñèè
- #if Ver < 84084736
- PAnsiChar = PChar; // Required for Inno Setup 5.3.0 and lower. (òðåáóåòñÿ äëÿ Inno Setup âåðñèè 5.3.0 è Ăèæå)
- #endif
- #endif
- #if Ver < 84018176
- AnsiString = String; // There is no need for this line in Inno Setup 5.2.4 and above (äëÿ Inno Setup âåðñèé 5.2.4 è âûøå ýòà ñòðîêà ĂĂĄ ĂóæĂĂ )
- #endif
- TCallback = function (Pct: integer;CurrentFile:string): longword;
- TMessage = record hWnd: HWND; msg, wParam: Word; lParam: LongWord; Time: TFileTime; pt: TPoint; end;
- TArc = record Path, Dest, comp, task, pass: string; allMb: Integer; Disks: Integer; UnPack, UnPacked: Boolean; end;
- TCWPSTRUCT = record lParam: LongWord; wParam: Word; Msg: LongWord; hwnd: HWnd; end;
- TCWPSTRUCTProc = procedure(Code: Integer; wParam: Word; lParam: TCWPSTRUCT);
- TTimerProc = procedure(HandleW, Msg, idEvent, TimeSys: LongWord);
- TBGIChange=procedure;
- var
- GUID: TGUID;
- MyCancelButton,Musiconoff2, CancelButton2: TButton;
- OveralPct,Cancel:integer;
- CallBack:longword;
- MyError:boolean;
- Arcs, AllArchives: array of string;
- StatusLabel, FileNameLabel, ExtractFile, StatusInfo: TLabel;
- PrepareProgressBar,ProgressBar: TNewProgressBar;
- CancelCode, n, ArcInd, UnPackError, StartInstall, LastTimerEvent, lastMb, baseMb: Integer;
- FreeMB, TotalMB: Cardinal;
- WndHookID, TimerID, TimerID2: LongWord;
- msgError, CompressMethod, ProductCode: string;
- FreezeTimer, SuspendUpdate: Boolean;
- alpha, origsize, FastInstall, Disabled, SleepTime: Integer; // total uncompressed size of archive data in mb
- Labl4: TLabel;
- CustomInstallButton, btnCancelUnpacking: TButton;
- SplashLabel, LicenseLabel1, AcceptLicenseLabel,MainLabel, lblExtractFileName: TLabel;
- AcceptLicense,DirectX, Redist,Icons, Group, Music, Physx,GFWL: TCheckBox;///????????
- WelcomeLabel1, WelcomeLabel2,InstallingPageLabel1,InstallingPageLabel2,GFWLText: TLabel;
- BlankLabel,WelcomeLabel,SelectDirBrowseLabel,SelectDirBrowseLabel1, SelectDirBrowseLabel2, FinishedLabel1, FinishedLabel2, FinishedHeadingLabel, PrepareLabel : TLabel;///????????
- lblDirectX, lblRedist,lblIcons, lblGroup, PhysxText: TLabel;///??????? ? ?????????
- Musiconoff : TButton;
- NeedSpaceLabel,FreeSpaceLabel: TLabel;//????? ?? ?????
- WindowsVersion: TWindowsVersion;
- FreeArcEnabled, yener90Mode, TestMode, BeforeInstall, CancelMode : Boolean;
- appath, S, DateString: String;
- BmpFile1,BmpFile2,BmpFile3,BmpFile4,BmpFile5,BmpFile6, BmpFile7, BmpFile8, Image, Image2, Image3, Image4, Image5 : TBitmapImage;
- BGForm, PrepareForm, SplashForm : TForm;
- BGImage, SplashImage : TBitmapImage;
- SplashPanel : TPanel;
- PictureShown, ResultCode, counter2, BackgroundImageQuantity: Integer;
- ButtonPanel: array [0..9] of TPanel;
- ButtonImage: array [0..9] of TBitmapImage;
- ButtonLabel: array [0..9] of TLabel;
- var
- Panel, Panel3, BmpPanel1: TPanel;
- Labl, Labl3: TLabel;
- const
- CP_ACP = 0; CP_UTF8 = 65001;
- oneMB=1024*1024;
- Period = 250; // ÷à ñòîòà îáĂîâëåĂèÿ ĂŞĂîïêè òà ñêáà ðà è ñòðîêè ñòà òóñĂ
- VK_ESCAPE = 27;
- HC_ACTION = 0;
- WM_PAINT = $F;
- CancelDuringInstall = True;
- bidBack = 0;
- bidNext = 1;
- bidCancel = 2;
- bidDirBrowse = 3;
- bidGroupBrowse = 4;
- bidFastInstall = 5;
- bidCustomInstall = 6;
- bidMusicButton = 7;
- bidMusic2Button = 8;
- bidCancel2 = 9;
- SND_FILENAME = $00020000;
- SND_ASYNC = $0001;
- ButtonImage6Height = 23;
- ButtonImage6Width = 200;
- ButtonImage7Height = 23;
- ButtonImage7Width = 200;
- ButtonImage8Height = 23;
- ButtonImage8Width = 80 ;
- ButtonImage9Height = 23;
- ButtonImage9Width = 200;
- ButtonImage10Height = 23;
- ButtonImage10Width = 200;
- ButtonImage11Height = 23;
- ButtonImage11Width = 200;
- GWL_EXSTYLE = (-20);
- WS_EX_LAYERED = $80000;
- LWA_ALPHA = $2;
- {$EXTERNALSYM AW_HOR_POSITIVE}
- AW_HOR_POSITIVE = $00000001;
- {$EXTERNALSYM AW_HOR_NEGATIVE}
- AW_HOR_NEGATIVE = $00000002;
- {$EXTERNALSYM AW_VER_POSITIVE}
- AW_VER_POSITIVE = $00000004;
- {$EXTERNALSYM AW_VER_NEGATIVE}
- AW_VER_NEGATIVE = $00000008;
- {$EXTERNALSYM AW_CENTER}
- AW_CENTER = $00000010;
- {$EXTERNALSYM AW_HIDE}
- AW_HIDE = $00010000;
- {$EXTERNALSYM AW_ACTIVATE}
- AW_ACTIVATE = $00020000;
- {$EXTERNALSYM AW_SLIDE}
- AW_SLIDE = $00040000;
- {$EXTERNALSYM AW_BLEND}
- AW_BLEND = $00080000;
- function PeekMessage(var lpMsg: TMessage; hWnd: HWND; wMsgFilterMin, wMsgFilterMax, wRemoveMsg: UINT): BOOL; external '[email protected] stdcall';
- function TranslateMessage(const lpMsg: TMessage): BOOL; external '[email protected] stdcall';
- function DispatchMessage(const lpMsg: TMessage): Longint; external '[email protected] stdcall';
- function WrapMyCallback(callback:TCallback; paramcount:integer):longword;external 'wrapcallback@files:innocallback.dll stdcall';
- function ISArcExtract(CurComponent:longword; var OveralPct:integer; PctOfTotal:double; InName, OutPath: AnsiString; DeleteInFile:boolean; callback: longword; Password, CfgFile, WorkPath: AnsiString):BOOL; external 'ISArcExtract@files:ISDone.dll stdcall';
- function IS7ZipExtract(CurComponent:longword; var OveralPct:integer; PctOfTotal:double; InName, OutPath: AnsiString; DeleteInFile:boolean; callback: longword; Password: AnsiString):BOOL; external 'IS7zipExtract@files:ISDone.dll stdcall';
- function ISRarExtract(CurComponent:longword; var OveralPct:integer; PctOfTotal:double; InName, OutPath: AnsiString; DeleteInFile:boolean; callback: longword; Password: AnsiString):BOOL; external 'ISRarExtract@files:ISDone.dll stdcall';
- function ISPrecompExtract(CurComponent:longword; var OveralPct:integer; PctOfTotal:double; InName, OutFile: AnsiString; DeleteInFile:boolean; callback: longword):BOOL; external 'ISPrecompExtract@files:ISDone.dll stdcall';
- function ISSRepExtract(CurComponent:longword; var OveralPct:integer; PctOfTotal:double; InName, OutFile, IdxFile: AnsiString; DeleteInFile:boolean; callback: longword):BOOL; external 'ISSrepExtract@files:ISDone.dll stdcall';
- function ShowChangeDiskWindow(Text, DefaultPath, SearchFile:AnsiString):BOOL; external 'ShowChangeDiskWindow@files:ISDone.dll stdcall';
- function StartRecord(RecordFileName:AnsiString; AllComponents:longword):BOOL; external 'StartRecord@files:ISDone.dll stdcall';
- function CheckPoint(CurComponent:Integer):BOOL; external 'CheckPoint@files:ISDone.dll stdcall';
- function StopRecord:BOOL; external 'StopRecord@files:ISDone.dll stdcall';
- function SetLayeredWindowAttributes(hwnd:DWord; crKey:Longint; bAlpha:byte; dwFlags:longint ):longint; external 'SetLayeredWindowAttributes@user32 stdcall';
- function SetWindowLong(hWnd: HWND; nIndex: Integer; dwNewLong: Longint): Longint; external '[email protected] stdcall';
- function AnimateWindow(hWnd: HWND; dwTime: DWORD; dwFlags: DWORD): BOOL; external 'AnimateWindow@user32 stdcall';
- function GetTickCount: DWord; external 'GetTickCount@kernel32';
- function GetWindowLong(hWnd, nIndex: Integer): Longint; external 'GetWindowLongA@user32 stdcall delayload';
- function SetWindowText(hWnd: Longint; lpString: String): Longint; external 'SetWindowText{#A}@user32 stdcall delayload';
- function GetKeyState(nVirtKey: Integer): ShortInt; external 'GetKeyState@user32 stdcall delayload';
- function GetCurrentThreadID: LongWord; external 'GetCurrentThreadId@kernel32 stdcall delayload';
- function CallNextWNDPROC(idHook: LongWord; Code: Integer; wParam: Word; lParam: TCWPSTRUCT): LongWord; external 'CallNextHookEx@user32 stdcall delayload';
- function SetWindowsHookEx(idHook: LongWord; callback: LongWord; hMod: LongWord; dwThreadID: HWND): LongWord; external 'SetWindowsHookExW@user32 stdcall delayload';
- function UnhookWindowsHookEx(idHook: LongWord): LongWord; external 'UnhookWindowsHookEx@user32 stdcall delayload';
- function WrapCWPSTRUCTProc(callback:TCWPSTRUCTProc; paramcount:integer): longword; external 'wrapcallback@files:innocallback.dll';
- function WrapTimerProc(callback: TTimerProc; Paramcount: Integer): longword; external 'wrapcallback@files:innocallback.dll stdcall';
- function WrapBGI(callback: TBGIChange; Paramcount: Integer): longword; external 'wrapcallback@files:innocallback.dll stdcall';
- function SetTimer(hWnd, nIDEvent, uElapse, lpTimerFunc: LongWord): longword; external 'SetTimer@user32';
- function KillTimer(hWnd, nIDEvent: LongWord): LongWord; external 'KillTimer@user32 stdcall delayload';
- function GenerateGUID(var GUID: TGUID): Cardinal; external 'GenerateGUID@files:GameuxInstallHelper.dll stdcall setuponly';
- function AddToGameExplorer(Binary: String; Path: String; InstallType: Integer; var GUID: TGUID): Cardinal; external 'AddToGameExplorerW@files:GameuxInstallHelper.dll stdcall setuponly';
- function CreateTask(InstallType: Integer; var GUID: TGUID; TaskType: Integer; TaskNumber: Integer; TaskName: String; Binary: String; Parameters: String): Cardinal; external 'CreateTaskW@files:GameuxInstallHelper.dll stdcall setuponly';
- function RetrieveGUIDForApplication(Binary: String; var GUID: TGUID): Cardinal; external 'RetrieveGUIDForApplicationW@{app}\GameuxInstallHelper.dll stdcall uninstallonly';
- function RemoveFromGameExplorer(var GUID: TGUID): Cardinal; external 'RemoveFromGameExplorer@{app}\GameuxInstallHelper.dll stdcall uninstallonly';
- function RemoveTasks(var GUID: TGUID): Cardinal; external 'RemoveTasks@{app}\GameuxInstallHelper.dll stdcall uninstallonly';
- function sndPlaySound(lpszSoundName: PAnsiChar; uFlags: cardinal):Integer; external '[email protected]';
- function mciSendString(lpstrCommand, lpstrReturnString: PAnsiChar; uReturnLength: UINT; hWndCallback: HWND): Integer; external '[email protected] stdcall';
- function GetSystemMetrics(nIndex : Integer): Integer; external 'GetSystemMetrics@user32 stdcall';
- function GetWorkArea(uiAction, uiParam: LongWord; var Recto: TRect; fWinIni: LongWord): LongBool; external '[email protected] stdcall';
- function ShowWindow (hWnd: DWord; nCmdShow: Integer): boolean; external '[email protected] stdcall';
- Function cm(Message: String): String; Begin Result:= ExpandConstant('{cm:'+ Message +'}') End;
- function LanguageTranslator(lang:String):String;
- begin
- Case Uppercase(lang) of
- 'CZ': Result:= 'cze';
- 'CNT': Result:= 'cnt';
- 'DE': Result:= 'ger';
- 'DK': Result:= 'dan';
- 'EN': Result:= 'eng';
- 'ES': Result:= 'esp';
- 'FR': Result:= 'fre';
- 'HU': Result:= 'hun';
- 'IT': Result:= 'ita';
- 'JP': Result:= 'jap';
- 'KO': Result:= 'kor';
- 'NL': Result:= 'ndl';
- 'NO': Result:= 'nor';
- 'PL': Result:= 'pol';
- 'PR': Result:= 'por';
- 'RU': Result:= 'rus';
- 'SW': Result:= 'swe';
- 'TH': Result:= 'tha';
- 'TR': Result:= 'tur';
- end;
- end;
- function LanguageTranslator2(lang:String):String;
- begin
- Case lang of
- 'cze': Result:= 'CZ';
- 'ger': Result:= 'DE';
- 'cnt': Result:= 'CNT';
- 'dan': Result:= 'DK';
- 'eng': Result:= 'EN';
- 'esp': Result:= 'ES';
- 'fre': Result:= 'FR';
- 'hun': Result:= 'HU';
- 'ita': Result:= 'IT';
- 'jap': Result:= 'JP';
- 'kor': Result:= 'KO';
- 'ndl': Result:= 'NL';
- 'nor': Result:= 'NO';
- 'pol': Result:= 'PL';
- 'por': Result:= 'PR';
- 'rus': Result:= 'RU';
- 'swe': Result:= 'SW';
- 'tha': Result:= 'TH';
- 'tur': Result:= 'TR';
- end;
- end;
- function InstallerWidth:integer ;
- begin
- Result:=BMPFile1.Bitmap.Width;
- end;
- function InstallerHeight:integer ;
- begin
- Result:=BMPFile1.Bitmap.Height;
- end;
- Function DeleteChars(S, Char: String): String; begin if (Pos(Char, S)>0) then
- begin while (Pos(Char, S)>0) do StringChange(S, Char, ''); end; Result:=S; end;
- Function CutStr(var S: String; Index, Length: Integer): String; var str: string;
- begin str:= Copy(S, Index, Length); Delete(S, Index, Length); Result:=Str; end;
- Function CutStrEx(var S: String; Code: String): String;
- var str: string; pos1, pos2: integer; begin pos1:= Pos(Code, S); If (pos1>0) then begin
- pos2:=pos1; while S[pos2]<>';' do if pos2<>length(S) then pos2:=pos2+1; str:=cutStr(S, pos1, (pos2-pos1)+1);
- StringChange(str, Code, ''); if str[Length(str)]=';' then Setlength(str, Length(str)-1); end; Result:=str; end;
- Function ExpandENV(string: String): String; var n: UINT; Begin // ExpandConstant + ðà çâ¸ðòûâà Ăèå DOS-ïåðåìåĂĂûõ òèïà %SystemRoot%
- if Pos('{',string) * Pos('}',string) = 0 then Result:= String else Result:= ExpandConstant(String); n:= Pos('%',result); if n = 0 then Exit;
- Delete(result, n,1); Result:= Copy(Result,1, n-1) + ExpandConstant('{%'+Copy(Result, n, Pos('%',result) -n) +'}') + Copy(Result, Pos('%',result) +1, Length(result))
- End;
- procedure BGIChanger;
- begin
- with WizardForm.ProgressGauge do begin
- if (Position >= round(counter2 * Max /BackgroundImageQuantity)) and (PictureShown = counter2) and (BackgroundImageQuantity >= (counter2 +1)) then begin
- BGImage.Bitmap.LoadFromFile(ExpandConstant('{src}\background'+ IntToStr(counter2 + 1) + '.bmp'));
- PictureShown := PictureShown + 1
- counter2 := counter2 + 1
- end;
- end;end;
- procedure WizardClose(Sender: TObject; var Action: TCloseAction);
- Begin
- Action:= caFree;
- DeleteFile(ExpandConstant('{src}\Setup.dll'));
- End;
- function GetAppName(Default:String):String;
- begin
- Result:=GetIniString('InstallOptions', 'ApplicationName', '', ExpandConstant('{src}\Setup.ini'))
- end;
- function GetAppPublisher(Default:String):String;
- begin
- Result:=GetIniString('InstallOptions', 'Publisher', '', ExpandConstant('{src}\Setup.ini'))
- end;
- function GetMyAppExeName(Default:String):String;
- begin
- Result:=GetIniString('InstallOptions', 'MyExecutableName', '', ExpandConstant('{src}\Setup.ini'))
- end;
- function GetMyAppExePath(Default:String):String;
- begin
- Result:=GetIniString('InstallOptions', 'MyExecutablePath', '', ExpandConstant('{src}\Setup.ini'))
- end;
- Procedure SetTaskBarTitle(Title: String); var h: Integer;
- Begin
- h:= GetWindowLong(MainForm.Handle, -8); if h <> 0 then SetWindowText(h, Title);
- End;
- function GetSourcePath(Default:String):String;
- begin
- S := GetCmdTail
- S := Copy(S, Pos('/SRCPATH="',S) +10, Length(S))
- S := Copy(S, 0, Pos('"',S) - 1)
- Result:=S
- end;
- Function ArcDecode(Line: String):array of String; // ðà çáîð ñòðîêè Archives
- var TmpStr:String;
- begin
- SetArrayLength(Result, 7);
- TmpStr:=Line
- if Copy(TmpStr, Length(TmpStr),1) <> ';' then
- TmpStr:=TmpStr + ';' ;
- Result[0]:= ExpandConstant(Copy(TmpStr, 0, Pos(';',TmpStr) - 1))
- StringChangeEx(Result[0], ExpandConstant('{src}'), GetSourcePath(''),True);
- TmpStr := Copy(TmpStr, Pos(';',TmpStr) + 1, Length (TmpStr))
- if Pos('DestDir:',TmpStr) <> 0 then begin
- Result[1]:= Copy(TmpStr,Pos('DestDir:' ,TmpStr) + 8, Length (TmpStr))
- Result[1]:= Copy(Result[1],0, Pos(';',Result[1]) - 1)
- StringChange(TmpStr, 'DestDir:' + Result[1] + ';', '')
- Result[1]:= ExpandConstant(Result[1])
- end else
- Result[1]:= ExpandConstant('{app}');
- if Pos('Disk:',TmpStr) <> 0 then begin
- Result[2]:= Copy(TmpStr,Pos('Disk:' ,TmpStr) + 5, Length (TmpStr))
- Result[2]:= Copy(Result[2],0, Pos(';',Result[2]) - 1)
- StringChange(TmpStr, 'Disk:' + Result[2] + ';', '')
- //Result[1]:= ExpandConstant(Result[1])
- end else
- Result[2]:= '1';
- if Pos('PrecSrep:',TmpStr) <> 0 then begin
- Result[3]:= Copy(TmpStr,Pos('PrecSrep:' ,TmpStr) + 9, Length (TmpStr))
- Result[3]:= Copy(Result[3],0, Pos(';',Result[3]) - 1)
- StringChange(TmpStr, 'PrecSrep:' + Result[3] + ';', '')
- //Result[1]:= ExpandConstant(Result[1])
- end else
- Result[3]:= '0';
- if Pos('Lang:',TmpStr) <> 0 then begin
- Result[4]:= Copy(TmpStr,Pos('Lang:' ,TmpStr) + 5, Length (TmpStr))
- Result[4]:= Copy(Result[4],0, Pos(';',Result[4]) - 1)
- StringChange(TmpStr, 'Lang:' + Result[4] + ';', '')
- //Result[1]:= ExpandConstant(Result[1])
- end else
- Result[4]:= '';
- //if (Pos('Tasks:', Line)>0) then Result[1]:= DeleteChars(CutStrEx(cut, 'Tasks:'), ';');
- // end;
- end;
- procedure CancelButtonOnClick(Sender: TObject);
- begin
- if MsgBox(SetupMessage(msgExitSetupMessage), mbConfirmation, MB_YESNO) = IDYES then Cancel:=1;
- end;
- function ProgressCallback(Pct: integer; CurrentFile:String): longword;
- var Msg: TMessage;
- begin
- if Pct<=Wizardform.ProgressGauge.Max then begin
- Wizardform.ProgressGauge.Position := Pct
- end;
- if (Wizardform.ProgressGauge.Position<=Wizardform.ProgressGauge.Max) and (FileExists(ExpandConstant('{src}\background1.bmp'))) and (FileExists(ExpandConstant('{src}\Installer.bmp'))) then begin
- BGIChanger end;
- while PeekMessage(Msg, 0, 0, 0, 1) do begin
- TranslateMessage(Msg);
- DispatchMessage(Msg);
- end;
- Result := Cancel;
- end;
- procedure AddRegistryInfo;
- begin
- #ifdef ProductCode
- ProductCode := '{#ProductCode}'
- #endif
- DateString := GetDateTimeString('yyyy/mm/dd','-' ,'-' );
- StringChangeEx(DateString, '-', '', True);
- //RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'AuthorizedCDFPrefix', '');
- //RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'Comments', '');
- //RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'Contact', '');
- RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'DisplayIcon', ExpandConstant('{app}\'+ GetMyAppExeName('')));
- RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'DisplayName', GetAppName(''));
- RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'DisplayVersion', '1.0');
- //RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'EstimatedSize', 10496897);
- //RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'GameLink', ExpandConstant('{app}\deadspace2.exe'));
- //RegWriteExpandStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'HelpLink', ExpandConstant('{app}\docs\EA Help\Electronic_Arts_Technical_Support.htm'));
- //RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'HelpTelephone', '');
- RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'InstallDate', DateString);
- RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'InstallLocation', ExpandConstant('{app}\'));
- //RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'InstallSource', ExpandConstant('{code:GetSourcePath}\'));
- //RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'Language', StrToInt(ExpandConstant('{cm:LanguageNR}')));
- //RegWriteExpandStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'ModifyPath', ExpandConstant('{uninstallexe}'));
- RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'NoModify', 1);
- RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'NoRepair', 1);
- RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'Publisher', GetAppPublisher(''));
- //RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'ProductGuid', ProductCode);
- //RegWriteExpandStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'Readme', ExpandConstant('{app}\docs\ReadMe_de.txt'));
- //RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'Size', '');
- RegWriteExpandStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'UninstallString', ExpandConstant('"{uninstallexe}"'));
- RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'URLInfoAbout', 'http://www.torrentleech.pl/');
- //RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'URLUpdateInfo', '');
- //RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'Version', 16777216);
- RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'VersionMajor', 1);
- RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'VersionMinor', 0);
- //RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'WindowsInstaller', 0);
- //RegWriteStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode, 'WorkingDirectory', ExpandConstant('{app}\'));
- //Additional
- //RegWriteStringValue(HKLM, 'SOFTWARE\BioWare\Dragon Age 2', 'GUID', ProductCode);
- end;
- procedure CancelButton2OnClick(Sender: TObject);
- begin
- Wizardform.CancelButton.OnClick(nil);
- end;
- procedure ExitButtonOnClick(Sender: TObject;var Action: TCloseAction);
- begin
- Action:= caNone;
- if (Wizardform.CurPageId = wpInstalling) then
- Wizardform.CancelButton.OnClick(nil)
- else
- mainform.close;
- end;
- function infomusic: string;
- begin
- if Music.Checked =False then begin
- if (GetIniBool('InterfaceSettings', 'ButtonOneLiner', False, ExpandConstant('{src}\Setup.ini')) = True) then
- Result:= ExpandConstant('{cm:BM}: {cm:BMoff}')
- else
- Result:= ExpandConstant('{cm:BM}' + #13 + #10 + '- {cm:BMoff} -');
- end else begin
- if (GetIniBool('InterfaceSettings', 'ButtonOneLiner', False, ExpandConstant('{src}\Setup.ini')) = True) then
- Result:= ExpandConstant('{cm:BM}: {cm:BMon}')
- else
- Result:= ExpandConstant('{cm:BM}' + #13 + #10 + '- {cm:BMon} -');
- end;
- end;
- function infomusic2: string;
- begin
- if Music.Checked =False then
- Result:= ExpandConstant('{cm:BM}: {cm:BMoff}')
- else
- Result:= ExpandConstant('{cm:BM}: {cm:BMon}')
- end;
- procedure DeleteRegistryInfo;
- begin
- #ifdef ProductCode
- ProductCode := '{#ProductCode}'
- #endif
- RegDeleteKeyIncludingSubkeys(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode);
- //Additional
- //RegDeleteKeyIncludingSubkeys(HKLM, 'SOFTWARE\BioWare\Dragon Age 2');
- end;
- function SetupMessage2(MsgID: TSetupMessageID): String;
- begin
- Result := SetupMessage(MsgID);
- StringChangeEx(Result, '[name]', GetAppName(''), True);
- Result := Result
- // S now equals '&Next >'
- end;
- function DiskSpaceLabelFix: String;
- var
- StpMsg: String;
- begin
- Result := SetupMessage(MsgDiskSpaceMBLabel);
- StringChangeEx(Result, '[mb]', GetIniString('InstallOptions', 'GameSize', '', ExpandConstant('{src}\Setup.ini')), True);
- // S now equals '&Next >'
- end;
- function IntToHex(l:longword; digits:integer):string;
- var hexchars:string;
- begin
- hexchars:='0123456789ABCDEF';
- setlength(result,digits);
- while (digits>0) do begin
- result[digits]:=hexchars[l mod 16+1];
- l:=l div 16;
- digits:=digits-1;
- end;
- end;
- procedure Background (SpBitmap : string);
- begin
- BGForm := TForm.Create(nil);
- BGImage := TBitmapImage.Create(BGForm);
- with BGImage do
- begin
- Bitmap.LoadFromFile(ExpandConstant('{src}\' + SpBitmap));
- Parent := BGForm;
- Top:= GetSystemMetrics(1) /2 - Bitmap.Height / 2
- Left:= GetSystemMetrics(0) /2 - Bitmap.Width / 2
- Width:= Bitmap.Width
- Height:= Bitmap.Height
- Stretch := false;
- end;
- with BGForm do
- begin
- Color := ClBlack
- BorderStyle := bsNone;
- Position := poScreenCenter;
- Enabled := False;
- Width := GetSystemMetrics(0);
- Height := GetSystemMetrics(1) + 50;
- // FormStyle := fsStayOnTop;
- Show();
- Repaint();
- end;;
- with Wizardform do begin
- // FormStyle := fsStayOnTop;
- end;
- end;
- procedure Splash (SpBitmap : string);
- begin
- SplashForm := TForm.Create(nil);
- SplashPanel := TPanel.Create(SplashForm);
- SplashImage := TBitmapImage.Create(SplashForm);
- with SplashImage do
- begin
- Bitmap.LoadFromFile(ExpandConstant('{src}\' + SpBitmap));
- // Align := alTop;
- Parent := SplashPanel;
- Top:= 0
- Left:= 0
- Stretch := False;
- Width:=SplashImage.BitMap.Width;
- Height := SplashImage.BitMap.Height;
- if yener90Mode = True then
- Hide;
- end;
- if yener90Mode = True then begin
- SplashLabel := TLabel.Create(SplashForm);
- with SplashLabel do
- begin
- Font.Size:= 11;
- Font.Name:= 'Comic Sans MS';
- Font.Color:=clWhite
- Parent := SplashForm;
- Alignment := taCenter;
- Top:= 0
- Left:= 0
- Autosize := False;
- Width:=SplashImage.BitMap.Width;
- Height := SplashImage.BitMap.Height;
- Caption := #13 + 'All my respect to my friends: ' +#13 + '2x+1, Dark_Siegfried89, mondragon, nando2002,' +#13 + ' pakrat2k2 and senseman' +#13 + #13 +'and also to:' +#13 + 'Bulat Ziganshin (FreeArc Creator), EMPiRE, ' +#13 + ' FREEMAN100, Joe Forster/STA, ' +#13 + ' Jordan Russel(Inno Setup Creator) and ravd' +#13 + #13 + 'No respect to some kind of idiots'
- end;
- end;
- with SplashPanel do
- begin
- // Align := alTop;
- Parent := SplashForm;
- Top:= 0
- Left:= 0
- Width:=SplashImage.BitMap.Width;
- Height := SplashImage.BitMap.Height;
- if yener90Mode = True then
- Hide;
- end;
- with SplashForm do
- begin
- Color := ClBlack
- if yener90Mode = True then
- Color := $24248E;
- BorderStyle := bsNone;
- Position := poScreenCenter;
- Enabled := False;
- ClientWidth := SplashImage.BitMap.Width;
- ClientHeight := SplashImage.BitMap.Height;
- Show();
- Repaint();
- Splashform.Width := SplashImage.Bitmap.Width
- Splashform.Height := SplashImage.Bitmap.Height
- if (Lowercase(GetIniString('InterfaceSettings', 'SplashAnimation', '', ExpandConstant('{src}\Setup.ini'))) <> 'fade') and (Lowercase(GetIniString('InterfaceSettings', 'SplashAnimation', '', ExpandConstant('{src}\Setup.ini'))) <> 'ring') and (Lowercase(GetIniString('InterfaceSettings', 'SplashAnimation', '', ExpandConstant('{src}\Setup.ini'))) <> 'transparent')then begin
- Sleep(2000);
- Close();
- Free();
- end;
- if (Lowercase(GetIniString('InterfaceSettings', 'SplashAnimation', '', ExpandConstant('{src}\Setup.ini'))) = 'fade') then begin
- Splashform.Height := 0;
- repeat
- Repaint();
- Sleep(5); // will hold the splash for 1 sec.
- Splashform.Top := GetSystemMetrics(1) /2 - Splashform.Height /2
- Splashform.Height :=Splashform.Height + 1
- until (Splashform.Height = SplashImage.BitMap.Height)// or (Splashform.Height = 400)
- Repaint();
- Sleep(1000);
- if yener90Mode = True then
- Sleep(9000);
- repeat
- Repaint();
- Sleep(1); // will hold the splash for 1 sec.
- Splashform.Top := GetSystemMetrics(1) /2 - Splashform.Height /2
- Splashform.Height :=Splashform.Height - 1
- until (Splashform.Width = 0) or (Splashform.Height = 0)
- Close();
- Free();
- end;
- if (Lowercase(GetIniString('InterfaceSettings', 'SplashAnimation', '', ExpandConstant('{src}\Setup.ini'))) = 'ring') then begin
- SleepTime := 30
- Splashform.Top := Splashform.Top - 10
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top + 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left + 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top - 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top + 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left - 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top - 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top + 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left - 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left + 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top - 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top + 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left - 10
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left + 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left - 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left + 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top - 10
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top + 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left + 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top - 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top - 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top + 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left - 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top - 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top + 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left - 20
- Sleep(SleepTime);
- Splashform.Top := Splashform.Top + 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left + 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left - 10
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left + 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left - 20
- Sleep(SleepTime);
- Splashform.Left := Splashform.Left + 20
- Sleep(SleepTime);
- Sleep(2000);
- Close();
- Free();
- end;
- if (Lowercase(GetIniString('InterfaceSettings', 'SplashAnimation', '', ExpandConstant('{src}\Setup.ini'))) = 'transparent') then begin
- AnimateWindow(splashform.Handle, 500,AW_CENTER);
- SetWindowLong(splashform.Handle,GWL_EXSTYLE, WS_EX_LAYERED);
- for alpha:=0 to 255 do begin
- SetLayeredWindowAttributes(splashform.Handle, 0, alpha, LWA_ALPHA);
- Sleep(5);
- end;
- Sleep(2000);
- for alpha:=255 downto 0 do begin
- SetLayeredWindowAttributes(splashform.Handle, 0, alpha, LWA_ALPHA);
- sleep(5);
- end;
- end;
- end;
- end;
- procedure CustomInstallOnClick(Sender: TObject);
- begin
- FastInstall := 2;
- Wizardform.NextButton.OnClick(nil);
- end;
- procedure AcceptLicenseOnClick2(Sender: TObject);
- begin
- if AcceptLicense.Checked = False then
- AcceptLicense.Checked:= True else
- AcceptLicense.Checked:= False;
- end;
- function MusicEndis():Boolean;
- begin
- if FileExists(ExpandConstant('{src}\music.mp3')) then
- Result :=True
- else
- Result :=False
- end;
- function SoundEndis():Boolean;
- begin
- if FileExists(ExpandConstant('{src}\button.wav')) then
- Result :=True
- else
- Result :=False
- end;
- function Dirx():Boolean;
- begin
- if (GetIniString('LauncherSettings', 'Launch1', '', ExpandConstant('{src}\Setup.ini')) <> '') and ((GetIniBool('LauncherSettings', 'Launch164', False, ExpandConstant('{src}\Setup.ini')) = false) or ((GetIniBool('LauncherSettings', 'Launch164', False, ExpandConstant('{src}\Setup.ini')) = true) and (IsWin64=True))) then
- Result :=True
- else
- Result :=False
- end;
- function Redx():Boolean;
- begin
- if (GetIniString('LauncherSettings', 'Launch2', '', ExpandConstant('{src}\Setup.ini')) <> '') and ((GetIniBool('LauncherSettings', 'Launch264', False, ExpandConstant('{src}\Setup.ini')) = false) or ((GetIniBool('LauncherSettings', 'Launch264', False, ExpandConstant('{src}\Setup.ini')) = true) and (IsWin64=True))) then
- Result :=True
- else
- Result :=False
- end;
- function Phyx():Boolean;
- begin
- if (GetIniString('LauncherSettings', 'Launch3', '', ExpandConstant('{src}\Setup.ini')) <> '') and ((GetIniBool('LauncherSettings', 'Launch364', False, ExpandConstant('{src}\Setup.ini')) = false) or ((GetIniBool('LauncherSettings', 'Launch364', False, ExpandConstant('{src}\Setup.ini')) = true) and (IsWin64=True))) then
- Result :=True
- else
- Result :=False
- end;
- function GFWLV():Boolean;
- begin
- if (GetIniString('LauncherSettings', 'Launch4', '', ExpandConstant('{src}\Setup.ini')) <> '') and ((GetIniBool('LauncherSettings', 'Launch464', False, ExpandConstant('{src}\Setup.ini')) = false) or ((GetIniBool('LauncherSettings', 'Launch464', False, ExpandConstant('{src}\Setup.ini')) = true) and (IsWin64=True))) then
- Result :=True
- else
- Result :=False
- end;
- procedure SoundPlay(Sender: TObject);
- begin
- if SoundEndis = True then
- sndPlaySound(ExpandConstant('{src}\Button.wav'), SND_FILENAME or SND_ASYNC);
- end;
- function checkus:string;
- begin
- if FileExists(ExpandConstant('{app}\Campaigns\Liberty.SC2Campaign\enUS.SC2Data')) or FileExists(ExpandConstant('{app}\Campaigns\Liberty.SC2Campaign\ptBR.SC2Data')) then
- Result :='http://us.battle.net/account'
- else
- Result :='http://eu.battle.net/account'
- end;
- function checkus2:string;
- begin
- if FileExists(ExpandConstant('{app}\Campaigns\Liberty.SC2Campaign\enUS.SC2Data')) then
- Result := 'http://us.blizzard.com/support/index.xml?locale=en_US&gameId=13'
- else
- Result := ExpandConstant('{cm:techsupportpage}')
- end;
- // Sets the TaskBar title
- // Ïåðåâîä ÷èñëà â ñòðîêó ñ òî÷Ăîñòüþ 2 çĂĂ ĂŞĂ (%.2n) ñ îêðóãëåĂèåì äðîáĂîé ÷à ñòè, åñëè Ă®Ăà åñòü
- procedure CurStepChanged(CurStep: TSetupStep);
- var ChComp, TmpValue:longword;
- n,i:integer;
- begin
- FileCopy(ExpandConstant('{tmp}\GameuxInstallHelper.dll'),ExpandConstant('{app}\GameuxInstallHelper.dll'),False);
- #ifdef CustomGDFBinary
- ExtractTemporaryFile('GDF.dll')
- #endif
- if CurStep = ssInstall then begin
- if (GetIniBool('LauncherSettings', 'InstallBeforeInstall', False, ExpandConstant('{src}\Setup.ini')) = true) and (GetIniBool('LauncherSettings', 'InstallRedist', False, ExpandConstant('{src}\Setup.ini')) = true) then begin
- if (DirectX.Checked = True) and ((GetIniBool('LauncherSettings', 'Launch164', False, ExpandConstant('{src}\Setup.ini')) = false) or ((GetIniBool('LauncherSettings', 'Launch164', False, ExpandConstant('{src}\Setup.ini')) = true) and (IsWin64=True))) then begin
- InstallingPageLabel2.Caption :=FmtMessage(cm('InstallingAF'), [GetIniString('LauncherSettings', 'Launch1', '', ExpandConstant('{src}\Setup.ini'))]);
- Exec(ExpandConstant('{code:GetSourcePath}\') + GetIniString('LauncherSettings', 'LaunchCom1', '', ExpandConstant('{src}\Setup.ini')), GetIniString('LauncherSettings', 'LaunchArg1', '', ExpandConstant('{src}\Setup.ini')), '', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- end;
- if (Redist.Checked = True) and ((GetIniBool('LauncherSettings', 'Launch264', False, ExpandConstant('{src}\Setup.ini')) = false) or ((GetIniBool('LauncherSettings', 'Launch264', False, ExpandConstant('{src}\Setup.ini')) = true) and (IsWin64=True))) then begin
- InstallingPageLabel2.Caption :=FmtMessage(cm('InstallingAF'), [GetIniString('LauncherSettings', 'Launch2', '', ExpandConstant('{src}\Setup.ini'))]);
- // Exec(ExpandConstant('{code:GetSourcePath}\vcredist_x86.exe'), '/q:a', '', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- Exec(ExpandConstant('{code:GetSourcePath}\') + GetIniString('LauncherSettings', 'LaunchCom2', '', ExpandConstant('{src}\Setup.ini')), GetIniString('LauncherSettings', 'LaunchArg2', '', ExpandConstant('{src}\Setup.ini')), '', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- end;
- if (PhysX.Checked = True) and ((GetIniBool('LauncherSettings', 'Launch364', False, ExpandConstant('{src}\Setup.ini')) = false) or ((GetIniBool('LauncherSettings', 'Launch364', False, ExpandConstant('{src}\Setup.ini')) = true) and (IsWin64=True))) then begin
- InstallingPageLabel2.Caption :=FmtMessage(cm('InstallingAF'), [GetIniString('LauncherSettings', 'Launch3', '', ExpandConstant('{src}\Setup.ini'))]);
- // Exec(ExpandConstant('{code:GetSourcePath}\support\PhysX_9.10.0129_SystemSoftware.exe'),'/passive','', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- Exec(ExpandConstant('{code:GetSourcePath}\') + GetIniString('LauncherSettings', 'LaunchCom3', '', ExpandConstant('{src}\Setup.ini')), GetIniString('LauncherSettings', 'LaunchArg3', '', ExpandConstant('{src}\Setup.ini')), '', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- // Exec('msiexec.exe',ExpandConstant('/quiet /i "{code:GetSourcePath}\Dependencies\xnafx31_redist.msi"'),'', SW_SHOW, ewNoWait, ResultCode)
- end;
- if (GFWL.Checked = True) and ((GetIniBool('LauncherSettings', 'Launch464', False, ExpandConstant('{src}\Setup.ini')) = false) or ((GetIniBool('LauncherSettings', 'Launch464', False, ExpandConstant('{src}\Setup.ini')) = true) and (IsWin64=True))) then begin
- InstallingPageLabel2.Caption :=FmtMessage(cm('InstallingAF'), [GetIniString('LauncherSettings', 'Launch4', '', ExpandConstant('{src}\Setup.ini'))]);
- Exec(ExpandConstant('{code:GetSourcePath}\') + GetIniString('LauncherSettings', 'LaunchCom4', '', ExpandConstant('{src}\Setup.ini')), GetIniString('LauncherSettings', 'LaunchArg4', '', ExpandConstant('{src}\Setup.ini')), '', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- // Exec(ExpandConstant('{code:GetSourcePath}\support\gfwlivesetup.exe'),'/q /nu','', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- end;
- InstallingPageLabel2.Caption := SetupMessage2(msgInstallingLabel)
- end;
- GenerateGUID(GUID)
- WizardForm.CancelButton.OnClick:=@CancelButtonOnClick;
- CallBack:=WrapMyCallback(@ProgressCallback,2);
- Cancel:=0;
- OveralPct:=0;
- // Ăà ñïà êîâêà âñåõ Ăåîáõîäèìûõ ôà éëîâ â ĂŻĂ ĂŻĂŞĂł {tmp}. Ýòî Ăåîáõîäèìî äëÿ òîãî, ÷òîáû
- //âûïîëĂÿòü óñòà Ăîâêó â ìîìåĂò ssInstall, è ñåêöèÿ [Run] âûïîëĂÿëà ñü ïîñëå óñòà Ăîâêè.
- ExtractTemporaryFile('packjpg_dll.dll');
- ExtractTemporaryFile('RTconsole.exe');
- ExtractTemporaryFile('precomp038.exe');
- ExtractTemporaryFile('zlib1.dll');
- ExtractTemporaryFile('Unrar.dll');
- CreateDir(ExpandConstant('{app}\Uninstall\'))
- // Ïîäãîòà âëèâà åì ïåðåìåĂĂóþ, ñîäåðæà ùóþ âñþ èĂôîðìà öèþ Ă® âûäåëåĂĂûõ êîìïîĂĂĄĂòà õ äëÿ ISDone.dll
- ChComp:=0;
- StartRecord(ExpandConstant('{tmp}\records.inf'),ChComp);
- // repeat
- Wizardform.ProgressGauge.Max:=0
- i := 1;
- if GetIniString('ExtractSettings', 'FreeArcFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')) <> '' then begin
- repeat
- Arcs:=ArcDecode(GetIniString('ExtractSettings', 'FreeArcFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')))
- if (LanguageTranslator(Arcs[4]) = ActiveLanguage) or (Arcs[4] = '') then begin
- if Arcs[3] = '1' then
- Wizardform.ProgressGauge.Max:=Wizardform.ProgressGauge.Max + 4000
- else
- Wizardform.ProgressGauge.Max:=Wizardform.ProgressGauge.Max + 1000;
- end;
- i:= i + 1
- until GetIniString('ExtractSettings', 'FreeArcFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')) = ''
- end;
- i := 1;
- if GetIniString('ExtractSettings', '7zFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')) <> '' then begin
- repeat
- Arcs:=ArcDecode(GetIniString('ExtractSettings', '7zFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')))
- if (LanguageTranslator(Arcs[4]) = ActiveLanguage) or (Arcs[4] = '') then
- Wizardform.ProgressGauge.Max:=Wizardform.ProgressGauge.Max + 1000;
- i:= i + 1
- until GetIniString('ExtractSettings', '7zFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')) = ''
- end;
- i := 1;
- if GetIniString('ExtractSettings', 'RarFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')) <> '' then begin
- repeat
- Arcs:=ArcDecode(GetIniString('ExtractSettings', 'RarFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')))
- if (LanguageTranslator(Arcs[4]) = ActiveLanguage) or (Arcs[4] = '') then
- Wizardform.ProgressGauge.Max:=Wizardform.ProgressGauge.Max + 1000;
- i:= i + 1
- until GetIniString('ExtractSettings', 'RarFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')) = ''
- end;
- MyError:=false;
- i := 1;
- if GetIniString('ExtractSettings', 'FreeArcFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')) <> '' then begin
- repeat
- Arcs:=ArcDecode(GetIniString('ExtractSettings', 'FreeArcFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')))
- if (Arcs[4] = '') or (LanguageTranslator(Arcs[4]) = ActiveLanguage) then begin
- if not FileExists(Arcs[0]) then begin
- // MsgBox(Arcs[0], mbError, MB_OKCANCEL)
- repeat
- // if MsgBox(Arcs[0], mbError, MB_OKCANCEL) = IDCANCEL then begin
- if MsgBox(FmtMessage(cm('InsertDisk'),[Arcs[2]]), mbError, MB_OKCANCEL) = IDCANCEL then begin
- MyError := True;
- end;
- until (FileExists( Arcs[0]) = True) or (MyError = True)
- end;;
- if MyError = False then begin
- if Arcs[3] = '0' then begin
- if not ISArcExtract ( 0, OveralPct, 0, Arcs[0], Arcs[1], false,CallBack, '', '', '') then MyError := True
- end else begin
- if not ISArcExtract ( 0, OveralPct, 0, Arcs[0], Arcs[1], false,CallBack, '', '', '') then MyError := True;
- if MyError = True then break;
- if not ISSRepExtract ( 0, OveralPct, 0, Arcs[1] + '\' + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'srep', Arcs[1] + '\' + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'pcf', '', true, CallBack ) then MyError := True ;
- if MyError = True then break;
- if not ISPrecompExtract ( 0, OveralPct, 0, Arcs[1] + '\' + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'pcf', Arcs[1] + '\' + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'arc', true, CallBack ) then MyError := True ;
- if MyError = True then break;
- if not ISArcExtract ( 0, OveralPct, 0, Arcs[1] + '\' + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'arc', Arcs[1], true,CallBack, '', '', '') then MyError := True ;
- end;
- end;
- end;
- if MyError = True then break ;
- i:= i + 1
- until GetIniString('ExtractSettings', 'FreeArcFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')) = ''
- end;
- i := 1;
- if (GetIniString('ExtractSettings', '7zFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')) <> '') and (MyError = False) then begin
- repeat
- Arcs:=ArcDecode(GetIniString('ExtractSettings', '7zFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')))
- if (Arcs[4] = '') or (LanguageTranslator(Arcs[4]) = ActiveLanguage) then begin
- if not FileExists( Arcs[0]) then begin
- repeat
- if MsgBox(FmtMessage(cm('InsertDisk'),[Arcs[0]]), mbError, MB_OKCANCEL) = IDCANCEL then begin
- MyError := True;
- end;
- until (FileExists( Arcs[0]) = True) or (MyError = True)
- end;
- if MyError = False then begin
- if not IS7ZipExtract ( 0, OveralPct, 0, Arcs[0], Arcs[1], false, CallBack, '' ) then MyError := True ;
- end;
- end;
- if MyError = True then break;
- i:= i + 1
- until GetIniString('ExtractSettings', '7zFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')) = ''
- end;
- i := 1;
- if (GetIniString('ExtractSettings', 'RarFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')) <> '') and (MyError = False) then begin
- repeat
- Arcs:=ArcDecode(GetIniString('ExtractSettings', 'RarFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')))
- if (Arcs[4] = '') or (LanguageTranslator(Arcs[4]) = ActiveLanguage) then begin
- if not FileExists( Arcs[0]) then begin
- repeat
- if MsgBox(FmtMessage(cm('InsertDisk'),[Arcs[0]]), mbError, MB_OKCANCEL) = IDCANCEL then begin
- MyError := True;
- end;
- until (FileExists( Arcs[0]) = True) or (MyError = True)
- end;
- if MyError = False then begin
- if not ISRarExtract ( 0, OveralPct, 0, Arcs[0], Arcs[1], false,CallBack, '' ) then MyError := True ;
- end;
- end;
- if MyError = True then break;
- i:= i + 1
- until GetIniString('ExtractSettings', 'RarFile' + IntToStr(i), '', ExpandConstant('{src}\Setup.ini')) = ''
- end;
- StopRecord;
- PictureShown := 0;
- end;
- if (CurStep = ssPostInstall) and (MyError = False) then begin
- FileCopy(ExpandConstant('{tmp}\GameuxInstallHelper.dll'),ExpandConstant('{app}\GameuxInstallHelper.dll'),False);
- #ifdef CustomGDFBinary
- FileCopy(ExpandConstant('{tmp}\GDF.dll'),ExpandConstant('{app}\GDF.dll'),False);
- #endif
- GetWindowsVersionEx(WindowsVersion);
- if (WindowsVersion.Major >= 6) and ((GetIniString('InstallSettings', 'GDFBinary', '', ExpandConstant('{src}\Setup.ini')) <> '') or (GetIniString('InstallSettings', 'GDFBinary' + LanguageTranslator2(ActiveLanguage) , '', ExpandConstant('{src}\Setup.ini')) <> '')) then
- begin
- if (GetIniString('InstallSettings', 'GDFBinary', '', ExpandConstant('{src}\Setup.ini')) <> '') then
- AddToGameExplorer(ExpandConstant('{app}\' + GetIniString('InstallSettings', 'GDFBinary', '', ExpandConstant('{src}\Setup.ini'))), ExpandConstant('{app}'), 3, GUID)
- else
- AddToGameExplorer(ExpandConstant('{app}\' + GetIniString('InstallSettings', 'GDFBinary' + LanguageTranslator2(ActiveLanguage), '', ExpandConstant('{src}\Setup.ini'))), ExpandConstant('{app}'), 3, GUID);
- CreateTask(3, GUID, 0, 0,'Play', ExpandConstant('{app}\' + GetMyAppExePath('') + '\' + GetMyAppExeName('')), '');
- end;
- #ifdef ProductCode
- AddRegistryInfo
- #endif
- if (GetIniBool('LauncherSettings', 'InstallBeforeInstall', False, ExpandConstant('{src}\Setup.ini')) = False) and (GetIniBool('LauncherSettings', 'InstallRedist', False, ExpandConstant('{src}\Setup.ini')) = true) then begin
- if (DirectX.Checked = True) and ((GetIniBool('LauncherSettings', 'Launch164', False, ExpandConstant('{src}\Setup.ini')) = false) or ((GetIniBool('LauncherSettings', 'Launch164', False, ExpandConstant('{src}\Setup.ini')) = true) and (IsWin64=True))) then begin
- InstallingPageLabel2.Caption :=FmtMessage(cm('InstallingAF'), [GetIniString('LauncherSettings', 'Launch1', '', ExpandConstant('{src}\Setup.ini'))]);
- Exec(ExpandConstant('{code:GetSourcePath}\') + GetIniString('LauncherSettings', 'LaunchCom1', '', ExpandConstant('{src}\Setup.ini')), GetIniString('LauncherSettings', 'LaunchArg1', '', ExpandConstant('{src}\Setup.ini')), '', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- end;
- if (Redist.Checked = True) and ((GetIniBool('LauncherSettings', 'Launch264', False, ExpandConstant('{src}\Setup.ini')) = false) or ((GetIniBool('LauncherSettings', 'Launch264', False, ExpandConstant('{src}\Setup.ini')) = true) and (IsWin64=True))) then begin
- InstallingPageLabel2.Caption :=FmtMessage(cm('InstallingAF'), [GetIniString('LauncherSettings', 'Launch2', '', ExpandConstant('{src}\Setup.ini'))]);
- // Exec(ExpandConstant('{code:GetSourcePath}\vcredist_x86.exe'), '/q:a', '', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- Exec(ExpandConstant('{code:GetSourcePath}\') + GetIniString('LauncherSettings', 'LaunchCom2', '', ExpandConstant('{src}\Setup.ini')), GetIniString('LauncherSettings', 'LaunchArg2', '', ExpandConstant('{src}\Setup.ini')), '', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- end;
- if (PhysX.Checked = True) and ((GetIniBool('LauncherSettings', 'Launch364', False, ExpandConstant('{src}\Setup.ini')) = false) or ((GetIniBool('LauncherSettings', 'Launch364', False, ExpandConstant('{src}\Setup.ini')) = true) and (IsWin64=True))) then begin
- InstallingPageLabel2.Caption :=FmtMessage(cm('InstallingAF'), [GetIniString('LauncherSettings', 'Launch3', '', ExpandConstant('{src}\Setup.ini'))]);
- // Exec(ExpandConstant('{code:GetSourcePath}\support\PhysX_9.10.0129_SystemSoftware.exe'),'/passive','', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- Exec(ExpandConstant('{code:GetSourcePath}\') + GetIniString('LauncherSettings', 'LaunchCom3', '', ExpandConstant('{src}\Setup.ini')), GetIniString('LauncherSettings', 'LaunchArg3', '', ExpandConstant('{src}\Setup.ini')), '', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- // Exec('msiexec.exe',ExpandConstant('/quiet /i "{code:GetSourcePath}\Dependencies\xnafx31_redist.msi"'),'', SW_SHOW, ewNoWait, ResultCode)
- end;
- if (GFWL.Checked = True) and ((GetIniBool('LauncherSettings', 'Launch464', False, ExpandConstant('{src}\Setup.ini')) = false) or ((GetIniBool('LauncherSettings', 'Launch464', False, ExpandConstant('{src}\Setup.ini')) = true) and (IsWin64=True))) then begin
- InstallingPageLabel2.Caption :=FmtMessage(cm('InstallingAF'), [GetIniString('LauncherSettings', 'Launch4', '', ExpandConstant('{src}\Setup.ini'))]);
- Exec(ExpandConstant('{code:GetSourcePath}\') + GetIniString('LauncherSettings', 'LaunchCom4', '', ExpandConstant('{src}\Setup.ini')), GetIniString('LauncherSettings', 'LaunchArg4', '', ExpandConstant('{src}\Setup.ini')), '', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- // Exec(ExpandConstant('{code:GetSourcePath}\support\gfwlivesetup.exe'),'/q /nu','', SW_SHOW, ewWaitUntilTerminated, ResultCode)
- end;
- InstallingPageLabel2.Caption := SetupMessage2(msgInstallingLabel)
- end;
- end;
- if (CurStep = ssPostInstall) and (MyError = True) then
- Exec(ExpandConstant('{uninstallexe}'), '/VERYSILENT','', sw_Hide, ewWaitUntilTerminated, n);
- end;
- #ifdef Texture
- #include "FATexture.iss"
- #endif
- procedure WizardKeyPress(Sender: TObject; var Key: Char);
- Begin
- MsgBox(Key, mbInformation, MB_YESNO)
- End;
- Procedure InitializeWizard1();
- Begin
- // Create controls to show extended info
- WizardForm.StatusLabel.Top:= WizardForm.ProgressGauge.Top; WizardForm.FileNameLabel.Top:= WizardForm.ProgressGauge.Top; // ïðÿ÷åì ïîä ïðîãðåññáà ð, òîãäà âñå ñîáûòèÿ WM_PAINT ïåðåõâà òûâà þòñÿ
- with WizardForm.ProgressGauge do begin
- ProgressBar := TNewProgressBar.Create(WizardForm);
- ProgressBar.SetBounds(Left, ScaleY(16), Width, Height);
- ProgressBar.Parent := WizardForm.InstallingPage;
- ProgressBar.max := 65536;
- ProgressBar.Hide; // áóäåò ïîêà çà à ïðè îáðà áîòêå Ăåñêîëüêèõ à ðõèâîâ
- end;
- // ïîçâîëÿåò ïðåðâà òü ðà ñïà êîâêó à ðõèâîâ ñòà Ăäà ðòĂûìè ñïîñîáà ìè
- End;
- Procedure DeInitializeSetup;
- Begin
- KillTimer(0, TimerID) {óäà ëåĂèå òà éìåðà }
- KillTimer(0, TimerID2) {óäà ëåĂèå òà éìåðà }
- UnhookWindowsHookEx(WndHookID) {óäà ëåĂèå SendMessage õóêà }
- End;
- procedure PlayMusic; // PlayMP3();
- begin
- mciSendString(ExpandConstant('OPEN ' + ExpandConstant('{src}') + '\music.mp3 TYPE MPEGVIDEO ALIAS BGMUSIC'), s, 255, 0);
- mciSendString(ExpandConstant('PLAY BGMUSIC REPEAT'), s, 255, 0);
- end;
- procedure StopMusic; // PlayMP3();
- begin
- mciSendString(ExpandConstant('STOP BGMUSIC'), s, 255, 0);
- mciSendString(ExpandConstant('CLOSE ' + ExpandConstant('{src}') + '\music.mp3 TYPE MPEGVIDEO ALIAS BGMUSIC'), s, 255, 0);
- end;
- procedure MusicOnClick(Sender: TObject);
- begin
- if SoundEndis = True then begin
- sndPlaySound(ExpandConstant('{src}\Button.wav'), SND_FILENAME or SND_ASYNC);
- end;
- if Music.Checked =False then
- begin
- PlayMusic()
- //Image4.Bitmap.LoadFromFile(ExpandConstant('{tmp}\MusicOn.bmp'))
- if FileExists(ExpandConstant('{src}\btn1.bmp')) then begin
- if (GetIniBool('InterfaceSettings', 'ButtonOneLiner', False, ExpandConstant('{src}\Setup.ini')) = True) then
- Labl4.Caption:= ExpandConstant('{cm:BM}: {cm:BMon}')
- else
- Labl4.Caption:= ExpandConstant('{cm:BM}' + #13 + #10 + '- {cm:BMon} -');
- ButtonLabel[bidMusic2Button].Caption := ExpandConstant('{cm:BM}: {cm:BMon}')
- end else
- MusiconOff.Caption:= ExpandConstant('{cm:BM}: {cm:BMon}') ;
- Music.Checked:= True
- end
- else
- begin
- if SoundEndis = True then begin
- sndPlaySound(ExpandConstant('{src}\Button.wav'), SND_FILENAME or SND_ASYNC);
- end;
- StopMusic()
- //Image4.Bitmap.LoadFromFile(ExpandConstant('{tmp}\MusicOff.bmp'))
- if FileExists(ExpandConstant('{src}\btn1.bmp')) then begin
- if (GetIniBool('InterfaceSettings', 'ButtonOneLiner', False, ExpandConstant('{src}\Setup.ini')) = True) then
- Labl4.Caption:= ExpandConstant('{cm:BM}: {cm:BMoff}')
- else
- Labl4.Caption:= ExpandConstant('{cm:BM}' + #13 + #10 + '- {cm:BMoff} -');
- ButtonLabel[bidMusic2Button].Caption := ExpandConstant('{cm:BM}: {cm:BMoff}')
- end else
- MusiconOff.Caption:= ExpandConstant('{cm:BM}: {cm:BMoff}');
- Music.Checked:= False
- end
- end;
- function InstallDirectX: Boolean;
- begin
- Result:= DirectX.Checked;
- end;
- function InstallPhysx: Boolean;
- begin
- Result:=Physx.Checked;
- end;
- function DVD1: Boolean;
- begin
- if GetIniString('InstallSettings', 'CheckSource1', '', ExpandConstant('{src}\Setup.ini')) <> '' then
- REsult := True
- else
- Result := False;
- end;
- function DVD2: Boolean;
- begin
- if GetIniString('InstallSettings', 'CheckSource2', '', ExpandConstant('{src}\Setup.ini')) <> '' then begin
- Result:=True;
- if FileExists(ExpandConstant('{app}\' + GetIniString('InstallSettings', 'CheckSource1', '', ExpandConstant('{src}\Setup.ini')))) then
- begin
- repeat
- if MsgBox(FmtMessage(cm('InsertDisk'),['2']), mbError, MB_OKCancel) = IDCancel then
- begin
- if MsgBox(SetupMessage(msgExitSetupMessage), mbInformation, MB_YESNO) = IDYES then begin
- CancelMode:= True;
- Wizardform.CancelButton.Onclick(nil)
- end;end;
- until (FileExists(ExpandConstant('{code:GetSourcePath}\DATA2\' + GetIniString('InstallSettings', 'CheckSource2', '', ExpandConstant('{src}\Setup.ini')))) = True) or (CancelMode = True);
- end;
- end else
- Result := False
- end;
- function DVD3: Boolean;
- begin
- if GetIniString('InstallSettings', 'CheckSource3', '', ExpandConstant('{src}\Setup.ini')) <> '' then begin
- Result:=True;
- if FileExists(ExpandConstant('{app}\' + GetIniString('InstallSettings', 'CheckSource2', '', ExpandConstant('{src}\Setup.ini')))) then
- begin
- repeat
- if MsgBox(FmtMessage(cm('InsertDisk'),['3']), mbError, MB_OKCancel) = IDCancel then
- begin
- if MsgBox(SetupMessage(msgExitSetupMessage), mbInformation, MB_YESNO) = IDYES then begin
- CancelMode:= True;
- Wizardform.CancelButton.Onclick(nil)
- end;end;
- until (FileExists(ExpandConstant('{code:GetSourcePath}\DATA3\' + GetIniString('InstallSettings', 'CheckSource3', '', ExpandConstant('{src}\Setup.ini')))) = True) or (CancelMode = True);
- end;
- end else
- Result := False
- end;
- function DVD4: Boolean;
- begin
- if GetIniString('InstallSettings', 'CheckSource4', '', ExpandConstant('{src}\Setup.ini')) <> '' then begin
- Result:=True;
- if FileExists(ExpandConstant('{app}\' + GetIniString('InstallSettings', 'CheckSource3', '', ExpandConstant('{src}\Setup.ini')))) then
- begin
- repeat
- if MsgBox(FmtMessage(cm('InsertDisk'),['4']), mbError, MB_OKCancel) = IDCancel then
- begin
- if MsgBox(SetupMessage(msgExitSetupMessage), mbInformation, MB_YESNO) = IDYES then begin
- CancelMode:= True;
- Wizardform.CancelButton.Onclick(nil)
- end;end;
- until (FileExists(ExpandConstant('{code:GetSourcePath}\DATA4\' + GetIniString('InstallSettings', 'CheckSource4', '', ExpandConstant('{src}\Setup.ini')))) = True) or (CancelMode = True);
- end;
- end else
- Result := False
- end;
- function CheckEnglish: Boolean;
- begin
- Result:=True;
- if ActiveLanguage = 'eng' then
- Result:=True else
- Result:=False;
- end;
- function CheckFrench: Boolean;
- begin
- Result:=True;
- if ActiveLanguage = 'fre' then
- Result:=True else
- Result:=False;
- end;
- function CheckGerman: Boolean;
- begin
- Result:=True;
- if ActiveLanguage = 'ger' then
- Result:=True else
- Result:=False;
- end;
- function CheckItalian: Boolean;
- begin
- Result:=True;
- if ActiveLanguage = 'ita' then
- Result:=True else
- Result:=False;
- end;
- function CheckSpanish: Boolean;
- begin
- Result:=True;
- if ActiveLanguage = 'esp' then
- Result:=True else
- Result:=False;
- end;
- function InstallRedist: Boolean;
- begin
- Result:=Redist.Checked;
- end;
- function CreateIcons: Boolean;
- begin
- Result:=Icons.Checked;
- end;
- function GroupIcons: Boolean;
- begin
- Result:=Group.Checked;
- end;
- procedure RedistOnClick(Sender: TObject);
- begin
- if Redist.Checked = False then
- Redist.Checked:= True else
- Redist.Checked:= False;
- end;
- procedure lblDirectXOnClick(Sender: TObject);
- begin
- if DirectX.Checked = False then
- DirectX.Checked:= True else
- DirectX.Checked:= False;
- end;
- procedure IconsOnClick(Sender: TObject);
- begin
- if Icons.Checked =False then
- Icons.Checked:= True else
- Icons.Checked:= False;
- end;
- procedure GroupOnClick(Sender: TObject);
- begin
- if Group.Checked = False then
- Group.Checked:= True else
- Group.Checked:= False;
- end;
- procedure PhysxOnClick(Sender: TObject);
- begin
- if Physx.Checked = False then
- Physx.Checked:= True else
- Physx.Checked:= False;
- end;
- procedure GFWLOnClick(Sender: TObject);
- begin
- if GFWL.Checked = False then
- GFWL.Checked:= True else
- GFWL.Checked:= False;
- end;
- procedure ButtonLabelClick(Sender: TObject);
- var
- Button: TButton;
- Labl: TLabel;
- begin
- if SoundEndis = True then
- begin
- sndPlaySound(ExpandConstant('{src}\Button.wav'), SND_FILENAME or SND_ASYNC);
- end;
- ButtonImage[TLabel(Sender).Tag].Left:=0
- case TLabel(Sender).Tag of
- bidBack: Button:=WizardForm.BackButton ;
- bidNext: Button:=WizardForm.NextButton ;
- bidCancel: Button:=WizardForm.CancelButton ;
- bidCancel2: Button:=CancelButton2 ;
- bidDirBrowse: Button:=WizardForm.DirBrowseButton ;
- bidGroupBrowse: Button:=WizardForm.GroupBrowseButton ;
- bidCustomInstall: Button:=CustomInstallButton;
- bidMusicButton: Button:=Musiconoff ;
- bidMusic2Button: Button:=Musiconoff2 ;
- else
- Exit
- end
- Button.OnClick(Button)
- end;
- procedure ButtonLabelMouseMoveMain(Sender: TObject; Shift: TShiftState; X, Y: Integer);
- begin
- ButtonImage[bidback].Left:=0
- ButtonImage[bidcancel].Left:=0
- if FileExists(ExpandConstant('{src}\background1.bmp')) and FileExists(ExpandConstant('{src}\Installer.bmp')) then
- ButtonImage[bidcancel2].Left:=0 ;
- ButtonImage[bidnext].Left:=0
- ButtonImage[bidDirBrowse].Left:=0
- ButtonImage[bidCustomInstall].Left:=0
- if FileExists(ExpandConstant('{src}\btn1.bmp')) then
- ButtonImage[bidMusicButton].Left:=0 ;
- if FileExists(ExpandConstant('{src}\background1.bmp')) and FileExists(ExpandConstant('{src}\Installer.bmp')) then
- ButtonImage[bidMusic2Button].Left:=0 ;
- ButtonLabel[bidback].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- ButtonLabel[bidcancel].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- if FileExists(ExpandConstant('{src}\background1.bmp')) and FileExists(ExpandConstant('{src}\Installer.bmp')) then
- ButtonLabel[bidcancel2].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'));
- ButtonLabel[bidnext].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- ButtonLabel[bidDirBrowse].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- ButtonLabel[bidCustomInstall].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- if FileExists(ExpandConstant('{src}\btn1.bmp')) then
- ButtonLabel[bidMusicButton].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'));
- if FileExists(ExpandConstant('{src}\background1.bmp')) and FileExists(ExpandConstant('{src}\Installer.bmp')) then
- ButtonLabel[bidMusic2Button].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'));
- end;
- procedure ButtonLabelMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(Image.Bitmap.Width /3)
- ButtonImage[bidBack].Left:=0;
- ButtonImage[bidCustomInstall].Left:=0;
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorOnMouse', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseMove2(Sender: TObject; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(Image2.Bitmap.Width /3)
- ButtonImage[bidNext].Left:=0;
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorOnMouse', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseMove3(Sender: TObject; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(Image3.Bitmap.Width /3)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorOnMouse', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseMove4(Sender: TObject; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-((Image4.Bitmap.Width /3))
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorOnMouse', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseMove5(Sender: TObject; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(Image5.Bitmap.Width /3)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorOnMouse', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseMove6(Sender: TObject; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(ButtonImage6Width)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorOnMouse', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseMove7(Sender: TObject; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(ButtonImage7Width)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorOnMouse', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseMove8(Sender: TObject; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(ButtonImage8Width)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorOnMouse', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseMove9(Sender: TObject; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(ButtonImage9Width)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorOnMouse', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseMove10(Sender: TObject; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(ButtonImage10Width)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorOnMouse', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseMove11(Sender: TObject; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(ButtonImage11Width)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorOnMouse', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(2*(Image.Bitmap.Width /3))
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorMouseDown', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseDown2(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(2*(Image2.Bitmap.Width /3))
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorMouseDown', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseDown3(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(2*(Image3.Bitmap.Width /3))
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorMouseDown', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseDown4(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(2*(Image4.Bitmap.Width /3))
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorMouseDown', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseDown5(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(2*(Image5.Bitmap.Width /3))
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorMouseDown', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseDown6(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(2*ButtonImage6Width)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorMouseDown', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseDown7(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(2*ButtonImage7Width)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorMouseDown', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseDown8(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(2*ButtonImage8Width)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorMouseDown', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseDown9(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(2*ButtonImage9Width)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorMouseDown', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseDown10(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(2*ButtonImage10Width)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorMouseDown', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseDown11(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- begin
- if ButtonLabel[TLabel(Sender).Tag].Enabled then begin
- ButtonImage[TLabel(Sender).Tag].Left:=-(2*ButtonImage11Width)
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColorMouseDown', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- end;
- procedure ButtonLabelMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- begin
- ButtonImage[TLabel(Sender).Tag].Left:=0
- ButtonLabel[TLabel(Sender).Tag].Font.Color := GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- procedure LoadButtonImage1(AButton: TButton; AButtonIndex: integer);
- begin
- Image:=TBitmapImage.Create(WizardForm);
- Image.Bitmap.LoadfromFile(ExpandConstant('{src}\btn4.bmp')) ;
- Image.Width:= Image.Bitmap.Width //??????????? ????????? ???????????? ?????? ???????
- Image.Height:=Image.Bitmap.Height
- Image.Enabled:=False
- Image.BackColor:=ClBlack
- Image.ReplaceColor:=ClBlack
- Panel:=TPanel.Create(WizardForm)
- Panel.Left:=AButton.Left
- Panel.Top:=AButton.Top
- Panel.Width:=Image.Bitmap.Width / 3
- Panel.Height:=Image.Bitmap.Height
- Panel.Tag:=AButtonIndex
- Panel.Parent:=AButton.Parent
- Panel.Color:=ClBlack
- ButtonPanel[AButtonIndex]:=Panel
- //??????? ??????? ??????? ?? ??????
- // Image.Bitmap.LoadFromFile(ExpandConstant('{src}\btn4.bmp'))
- Image.Parent:=Panel
- ButtonImage[AButtonIndex]:=Image
- with TLabel.Create(WizardForm) do begin
- Tag:=AButtonIndex
- Parent:=Panel
- Width:=Panel.Width
- Height:=Panel.Height
- Transparent:=True
- OnClick:=@ButtonLabelClick
- OnDblClick:=@ButtonLabelClick
- OnMouseDown:=@ButtonLabelMouseDown
- OnMouseUp:=@ButtonLabelMouseUp
- OnMouseMove:=@ButtonLabelMouseMove;
- end ;
- Labl:=TLabel.Create(WizardForm) ; //????? ??????
- Labl.Left:=23 ; //????????? ????????? ??????
- Labl.Top:=(GetIniInt('InterfaceSettings', 'ButtonLabelTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) ;
- Labl.Width := Image.Bitmap.Width / 3 ;
- Labl.Height := Image.Bitmap.Height;
- Labl.Autosize:=False ;
- Labl.Alignment:=taCenter ;
- Labl.Tag:=AButtonIndex
- Labl.Transparent:=True
- Labl.Font.Color:=GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini')) //???? ??????
- Labl.Font.Name:= GetIniString('InterfaceSettings', 'ButtonFont', 'Arial', ExpandConstant('{src}\Setup.ini'))
- if GetIniBool('InterfaceSettings', 'ButtonFontBold', False, ExpandConstant('{src}\Setup.ini')) = true then
- Labl.Font.Style:=[fsBold] ;
- Labl.Font.Size:= GetIniInt('InterfaceSettings', 'ButtonFontSize', 9,0,0, ExpandConstant('{src}\Setup.ini'));
- Labl.Caption:=AButton.Caption
- Labl.OnClick:=@ButtonLabelClick
- Labl.OnDblClick:=@ButtonLabelClick
- Labl.OnMouseDown:=@ButtonLabelMouseDown
- Labl.OnMouseUp:=@ButtonLabelMouseUp
- Labl.OnMouseMove:=@ButtonLabelMouseMove;
- Labl.Parent:=Panel
- ButtonLabel[AButtonIndex]:=Labl
- end;
- procedure LoadButtonImage2(AButton: TButton; AButtonIndex: integer);
- var
- Panel2: TPanel;
- Labl2: TLabel;
- begin
- Image2:=TBitmapImage.Create(WizardForm) //??????? ??????? ??????? ?? ??????
- Image2.Bitmap.LoadFromFile(ExpandConstant('{src}\btn3.bmp'))
- Image2.Width:=Image2.Bitmap.Width //??????????? ????????? ???????????? ?????? ???????
- Image2.Height:=Image2.Bitmap.Height
- Image2.Enabled:=False
- Panel2:=TPanel.Create(WizardForm)
- Panel2.Left:=AButton.Left
- Panel2.Top:=AButton.Top
- Panel2.Width:=Image2.Bitmap.Width /3
- Panel2.Height:=Image2.Bitmap.Height
- Panel2.Tag:=AButtonIndex
- Panel2.Parent:=AButton.Parent
- Panel2.Color:=ClBlack
- ButtonPanel[AButtonIndex]:=Panel2
- Image2.Parent:=Panel2
- ButtonImage[AButtonIndex]:=Image2
- with TLabel.Create(WizardForm) do begin
- Tag:=AButtonIndex
- Parent:=Panel2
- Width:=Panel2.Width
- Height:=Panel2.Height
- Transparent:=True
- OnClick:=@ButtonLabelClick
- OnDblClick:=@ButtonLabelClick
- OnMouseDown:=@ButtonLabelMouseDown2
- OnMouseUp:=@ButtonLabelMouseUp
- OnMouseMove:=@ButtonLabelMouseMove2;
- end ;
- Labl2:=TLabel.Create(WizardForm) ; //????? ??????
- Labl2.Left:=0 ; //????????? ????????? ??????
- Labl2.Top:=(GetIniInt('InterfaceSettings', 'ButtonLabelTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) ;
- Labl2.Width:=Image2.Bitmap.Width /3 ; //????????? ????????? ??????
- Labl2.Height:=Image2.Bitmap.Height;
- Labl2.Autosize:=True ;
- Labl2.Alignment:=taCenter ;
- Labl2.Tag:=AButtonIndex
- Labl2.Transparent:=True
- Labl2.Font.Color:=GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini')) //???? ??????
- Labl2.Font.Name:= GetIniString('InterfaceSettings', 'ButtonFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- if GetIniBool('InterfaceSettings', 'ButtonFontBold', False, ExpandConstant('{src}\Setup.ini')) = true then
- Labl2.Font.Style:=[fsBold] ;
- Labl2.Font.Size:= GetIniInt('InterfaceSettings', 'ButtonFontSize', 9,0,0, ExpandConstant('{src}\Setup.ini'));
- Labl2.Caption:=AButton.Caption
- Labl2.OnClick:=@ButtonLabelClick
- Labl2.OnDblClick:=@ButtonLabelClick
- Labl2.OnMouseDown:=@ButtonLabelMouseDown2
- Labl2.OnMouseUp:=@ButtonLabelMouseUp
- Labl2.OnMouseMove:=@ButtonLabelMouseMove2;
- Labl2.Parent:=Panel2
- ButtonLabel[AButtonIndex]:=Labl2
- end;
- procedure LoadButtonImage3(AButton: TButton; AButtonIndex: integer);
- begin
- Image3:=TBitmapImage.Create(WizardForm)
- with Image3 do begin //??????? ??????? ??????? ?? ??????
- Bitmap.LoadFromFile(ExpandConstant('{src}\btn2.bmp'))
- Width:=Image3.Bitmap.Width; //??????????? ????????? ???????????? ?????? ???????
- Height:=Image3.Bitmap.Height
- Enabled:=False
- end;
- Panel3:=TPanel.Create(WizardForm)
- with Panel3 do begin
- Left:=AButton.Left
- Top:=AButton.Top
- Width:=Image3.Bitmap.Width /3;
- Height:=Image3.Bitmap.Height
- Tag:=AButtonIndex
- Parent:=AButton.Parent
- Color:=ClBlack
- end;
- Image3.Parent:=Panel3
- ButtonPanel[AButtonIndex]:=Panel3
- ButtonImage[AButtonIndex]:=Image3
- with TLabel.Create(WizardForm) do begin
- Tag:=AButtonIndex
- Parent:=Panel3
- Width:=Panel3.Width
- Height:=Panel3.Height
- Transparent:=True
- OnClick:=@ButtonLabelClick
- OnDblClick:=@ButtonLabelClick
- OnMouseDown:=@ButtonLabelMouseDown3
- OnMouseUp:=@ButtonLabelMouseUp
- OnMouseMove:=@ButtonLabelMouseMove3;
- end ;
- Labl3:=TLabel.Create(WizardForm) ; //????? ??????
- with Labl3 do begin
- Left:=23 ; //????????? ????????? ??????
- Autosize:=True ;
- Alignment:=taCenter ;
- Tag:=AButtonIndex
- Transparent:=True
- Font.Color:=GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini')) //???? ??????
- Font.Name:= GetIniString('InterfaceSettings', 'ButtonFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- if GetIniBool('InterfaceSettings', 'ButtonFontBold', False, ExpandConstant('{src}\Setup.ini')) = true then
- Font.Style:=[fsBold] ;
- Font.Size:= GetIniInt('InterfaceSettings', 'ButtonFontSize', 9,0,0, ExpandConstant('{src}\Setup.ini'));
- if (GetIniBool('InterfaceSettings', 'ButtonOneLiner', False, ExpandConstant('{src}\Setup.ini')) = False) then
- Top:=(GetIniInt('InterfaceSettings', 'ButtonLabelTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + (Font.Size / 2) + 2
- else
- Top:=(GetIniInt('InterfaceSettings', 'ButtonLabelTop', 0,0,0, ExpandConstant('{src}\Setup.ini')));
- Caption:=AButton.Caption
- OnClick:=@ButtonLabelClick
- OnDblClick:=@ButtonLabelClick
- OnMouseDown:=@ButtonLabelMouseDown3
- OnMouseUp:=@ButtonLabelMouseUp
- OnMouseMove:=@ButtonLabelMouseMove3;
- Parent:=Panel3
- end;
- ButtonLabel[AButtonIndex]:=Labl3
- end;
- procedure LoadButtonImage4(AButton: TButton; AButtonIndex: integer);
- var
- Panel4: TPanel;
- begin
- Image4:=TBitmapImage.Create(WizardForm)
- with Image4 do begin //??????? ??????? ??????? ?? ??????
- Bitmap.LoadFromFile(ExpandConstant('{src}\btn1.bmp'))
- Width:=Image4.Bitmap.Width //??????????? ????????? ???????????? ?????? ???????
- Height:=Image4.Bitmap.Height
- Enabled:=False
- Visible:=MusicEndis
- end;
- Panel4:=TPanel.Create(WizardForm)
- with Panel4 do begin
- Left:=AButton.Left
- Top:=AButton.Top
- Width:=Image4.Bitmap.Width /3
- Height:=Image4.Bitmap.Height
- Tag:=AButtonIndex
- Parent:=AButton.Parent
- Color:=ClBlack
- Visible:=MusicEndis
- end;
- Image4.Parent:=Panel4
- ButtonPanel[AButtonIndex]:=Panel4
- ButtonImage[AButtonIndex]:=Image4
- with TLabel.Create(WizardForm) do begin
- Tag:=AButtonIndex
- Parent:=Panel4
- Width:=Panel4.Width
- Height:=Panel4.Height
- Transparent:=True
- OnClick:=@ButtonLabelClick
- OnDblClick:=@ButtonLabelClick
- OnMouseDown:=@ButtonLabelMouseDown4
- OnMouseUp:=@ButtonLabelMouseUp
- OnMouseMove:=@ButtonLabelMouseMove4;
- end ;
- Labl4:=TLabel.Create(WizardForm) ; //????? ??????
- with Labl4 do begin
- Left:=0 ; //????????? ????????? ??????
- Top:= (GetIniInt('InterfaceSettings', 'ButtonLabelTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) ;
- Width:=Image4.Bitmap.Width /3
- Height:=Image4.Bitmap.Height
- Autosize:=False ;
- Alignment:=taCenter ;
- Tag:=AButtonIndex
- Transparent:=True
- Font.Color:=GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini')) //???? ??????
- Font.Name:= GetIniString('InterfaceSettings', 'ButtonFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- if GetIniBool('InterfaceSettings', 'ButtonFontBold', False, ExpandConstant('{src}\Setup.ini')) = true then
- Font.Style:=[fsBold] ;
- Font.Size:= GetIniInt('InterfaceSettings', 'ButtonFontSize', 9,0,0, ExpandConstant('{src}\Setup.ini'));
- Caption:=AButton.Caption
- OnClick:=@ButtonLabelClick
- OnDblClick:=@ButtonLabelClick
- OnMouseDown:=@ButtonLabelMouseDown4
- OnMouseUp:=@ButtonLabelMouseUp
- OnMouseMove:=@ButtonLabelMouseMove4
- Parent:=Panel4
- Visible:=MusicEndis
- end;
- ButtonLabel[AButtonIndex]:=Labl4
- end;
- procedure LoadButtonImage5(AButton: TButton; AButtonIndex: integer);
- var
- Panel5: TPanel;
- Labl5: TLabel;
- begin
- Image5:=TBitmapImage.Create(WizardForm)
- with Image5 do begin //??????? ??????? ??????? ?? ??????
- Bitmap.LoadFromFile(ExpandConstant('{src}\btn0.bmp'))
- Width:=Image5.Bitmap.Width //??????????? ????????? ???????????? ?????? ???????
- Height:=Image5.Bitmap.Height
- Enabled:=False
- end;
- Panel5:=TPanel.Create(WizardForm)
- with Panel5 do begin
- Left:=AButton.Left
- Top:=AButton.Top
- Width:=Image5.Bitmap.Width /3
- Height:=Image5.Bitmap.Height;
- Tag:=AButtonIndex
- Parent:=AButton.Parent
- Color:=ClBlack
- end;
- Image5.Parent:=Panel5
- ButtonPanel[AButtonIndex]:=Panel5
- ButtonImage[AButtonIndex]:=Image5
- with TLabel.Create(WizardForm) do begin
- Tag:=AButtonIndex
- Parent:=Panel5
- Width:=Panel5.Width
- Height:=Panel5.Height
- Transparent:=True
- OnClick:=@ButtonLabelClick
- OnDblClick:=@ButtonLabelClick
- OnMouseDown:=@ButtonLabelMouseDown5
- OnMouseUp:=@ButtonLabelMouseUp
- OnMouseMove:=@ButtonLabelMouseMove5;
- end ;
- Labl5:=TLabel.Create(WizardForm) ; //????? ??????
- with Labl5 do begin
- Left:=0 ; //????????? ????????? ??????
- Top:= 5 ;
- Width:=Image5.Bitmap.Width /3;
- Height:=Image5.Bitmap.Height;
- Autosize:=False ;
- Alignment:=taCenter ;
- Tag:=AButtonIndex
- Transparent:=True
- Font.Color:=GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini')) //???? ??????
- Font.Name:= GetIniString('InterfaceSettings', 'ButtonFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- if GetIniBool('InterfaceSettings', 'ButtonFontBold', False, ExpandConstant('{src}\Setup.ini')) = true then
- Font.Style:=[fsBold] ;
- Font.Size:= 9;
- Caption:=AButton.Caption
- OnClick:=@ButtonLabelClick
- OnDblClick:=@ButtonLabelClick
- OnMouseDown:=@ButtonLabelMouseDown5
- OnMouseUp:=@ButtonLabelMouseUp
- OnMouseMove:=@ButtonLabelMouseMove5
- Parent:=Panel5
- end;
- ButtonLabel[AButtonIndex]:=Labl5
- end;
- procedure UpdateButton(AButton: TButton;AButtonIndex: integer);
- begin
- ButtonLabel[AButtonIndex].Caption:=AButton.Caption
- ButtonPanel[AButtonIndex].Visible:=AButton.Visible
- ButtonLabel[AButtonIndex].Enabled:=Abutton.Enabled
- ButtonPanel[AButtonIndex].Top:=AButton.Top
- end;
- procedure LicenceAcceptedRadioOnClick(Sender: TObject);
- begin
- ButtonLabel[bidNext].Enabled:=True
- end;
- procedure LicenceNotAcceptedRadioOnClick(Sender: TObject);
- begin
- ButtonLabel[bidNext].Enabled:=False
- end;
- procedure CurPageChanged2(CurPageID: Integer);
- begin
- UpdateButton(WizardForm.BackButton,bidBack)
- UpdateButton(WizardForm.NextButton,bidNext)
- UpdateButton(WizardForm.CancelButton,bidCancel)
- ButtonLabel[bidBack].Left := (ButtonPanel[bidBack].Width / 2 - ButtonLabel[bidBack].Width / 2);
- ButtonLabel[bidNext].Left := (ButtonPanel[bidNext].Width / 2 - ButtonLabel[bidNext].Width / 2);
- ButtonLabel[bidCancel].Left := (ButtonPanel[bidCancel].Width / 2 - ButtonLabel[bidCancel].Width / 2);
- if FileExists(ExpandConstant('{src}\background1.bmp')) and FileExists(ExpandConstant('{src}\Installer.bmp')) then
- ButtonLabel[bidCancel2].Left := (ButtonPanel[bidCancel2].Width / 2 - ButtonLabel[bidCancel2].Width / 2);
- ButtonLabel[bidDirBrowse].Left := (ButtonPanel[bidDirBrowse].Width / 2 - ButtonLabel[bidDirBrowse].Width / 2);
- ButtonLabel[bidCustomInstall].Left := (ButtonPanel[bidCustomInstall].Width / 2 - ButtonLabel[bidCustomInstall].Width / 2);
- if FileExists(ExpandConstant('{src}\btn1.bmp')) then
- ButtonLabel[bidMusicButton].Left := (ButtonPanel[bidMusicButton].Width / 2 - ButtonLabel[bidMusicButton].Width / 2);
- if FileExists(ExpandConstant('{src}\background1.bmp')) and FileExists(ExpandConstant('{src}\Installer.bmp')) then
- ButtonLabel[bidMusic2Button].Left := (ButtonPanel[bidMusic2Button].Width / 2 - ButtonLabel[bidMusic2Button].Width / 2);
- end;
- procedure InitializeUninstallProgressForm();
- begin
- FileCopy(ExpandConstant('{app}\Uninstall\Uninstall.bmp'),ExpandConstant('{tmp}\Uninstall.bmp'),False);
- FileCopy(ExpandConstant('{app}\Uninstall\Uninstall.dat'),ExpandConstant('{tmp}\Uninstall.dat'),False);
- BmpFile1:= TBitmapImage.Create(UninstallProgressForm);
- BmpFile1.Bitmap.LoadFromFile(ExpandConstant('{tmp}\Uninstall.bmp'));
- BmpFile1.SetBounds(0, 0, InstallerWidth, InstallerHeight);
- BmpFile1.Stretch:= true
- BmpFile1.Parent:= UninstallProgressForm.InstallingPage;
- StatusLabel:=TLabel.Create(UninstallProgressForm);
- with StatusLabel do
- begin
- Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{tmp}\Uninstall.dat'))) + 5;
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{tmp}\Uninstall.dat'))) + 5;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{tmp}\Uninstall.dat'))) - 10;
- Height:= ScaleY(200);
- AutoSize:= false;
- WordWrap:= true;
- Transparent:= true;
- Font.Size:= 12;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{tmp}\Uninstall.dat'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{tmp}\Uninstall.dat'))
- Font.Style := [fsBold]
- Parent:= UninstallProgressForm.installingpage;
- Caption:= UninstallProgressForm.StatusLabel.Caption
- end;
- StatusLabel:=TLabel.Create(UninstallProgressForm);
- with StatusLabel do
- begin
- Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{tmp}\Uninstall.dat'))) + 5;
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{tmp}\Uninstall.dat'))) + 55;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{tmp}\Uninstall.dat'))) - 10;
- Height:= ScaleY(200);
- AutoSize:= false;
- WordWrap:= true;
- Transparent:= true;
- Font.Size:= 10;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{tmp}\Uninstall.dat'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{tmp}\Uninstall.dat'))
- Parent:= UninstallProgressForm.installingpage;
- Caption:= UninstallProgressForm.PageDescriptionLabel.Caption;
- end;
- with UninstallProgressForm do begin
- Width:=InstallerWidth;
- Height:=InstallerHeight + 25;
- BorderStyle := bsSingle
- Position := poScreenCenter;
- MainPanel.Hide;
- StatusLabel.Hide;
- InnerNotebook.Left := ScaleX(0);
- InnerNotebook.Top := ScaleY(0);
- InnerNotebook.Width := ScaleX(InstallerWidth);
- InnerNotebook.Height := ScaleY(InstallerHeight);
- OuterNotebook.Left := ScaleX(0);
- OuterNotebook.Top := ScaleY(0);
- OuterNotebook.Width := ScaleX(InstallerWidth);
- OuterNotebook.Height := ScaleY(InstallerHeight);
- ProgressBar.Top:=(GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{tmp}\Uninstall.dat'))) + 105;
- ProgressBar.Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{tmp}\Uninstall.dat'))) + 5;
- ProgressBar.Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{tmp}\Uninstall.dat'))) - 15;
- ProgressBar.Height:= 12
- end;
- end;
- procedure InitializeWizard2();
- begin
- WizardForm.Position :=poScreenCenter
- CustomInstallButton:=TButton.Create(WizardForm);
- with CustomInstallButton do
- begin
- Top:= (GetIniInt('InterfaceSettings', 'Button3Top', 0,0,0, ExpandConstant('{src}\Setup.ini')));
- Left:= (GetIniInt('InterfaceSettings', 'Button3Left', 0,0,0, ExpandConstant('{src}\Setup.ini')));
- Font.Size:= 10;
- Font.Name:= GetIniString('InterfaceSettings', 'ButtonFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Parent:= BmpPanel1;
- if (GetIniBool('InterfaceSettings', 'ButtonOneLiner', False, ExpandConstant('{src}\Setup.ini')) = True) then
- Caption := FmtMessage(ExpandConstant('{cm:IDPROP_SETUPTYPE_CUSTOM}'), [' '])
- else
- Caption := FmtMessage(ExpandConstant('{cm:IDPROP_SETUPTYPE_CUSTOM}'), [#13 + #10]);
- OnClick := @CustomInstallOnClick;
- end;
- Music:= TCheckBox.Create(WizardForm);
- with Music do
- begin
- Parent:= WizardForm;
- Left:= WizardForm.DirEdit.Left;
- Top:= WizardForm.DirEdit.Top + 55;
- Width:= ScaleX(14);
- Height:= ScaleY(14);
- TabOrder:= 0;
- Checked:= true;
- Visible:=false
- end;
- Musiconoff:= TButton.Create(WizardForm);
- with Musiconoff do
- begin
- Caption:=infoMusic;
- Left:= (GetIniInt('InterfaceSettings', 'Button1Left', 0,0,0, ExpandConstant('{src}\Setup.ini')));
- Top:= (GetIniInt('InterfaceSettings', 'Button1Top', 0,0,0, ExpandConstant('{src}\Setup.ini')));
- Font.Size:= GetIniInt('InterfaceSettings', 'ButtonFontSize', 9,0,0, ExpandConstant('{src}\Setup.ini'));
- Font.Name:= GetIniString('InterfaceSettings', 'ButtonFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- //Transparent := True;
- Parent:= WizardForm.NextButton.Parent;
- Font.Style := [fsBold]
- OnClick:= @MusicOnClick;
- Visible := MusicEndis
- end;
- if FileExists(ExpandConstant('{src}\background1.bmp')) and FileExists(ExpandConstant('{src}\Installer.bmp')) then begin
- Musiconoff2:= TButton.Create(WizardForm);
- with Musiconoff2 do
- begin
- Caption:=infoMusic2;
- Left:= 20;
- Top:= BMPFile2.Bitmap.Height - Image5.Bitmap.Height - 15;
- Width:= (Image5.Bitmap.Width /3);
- Height:= Image5.Bitmap.Height;
- Font.Size:= GetIniInt('InterfaceSettings', 'ButtonFontSize', 9,0,0, ExpandConstant('{src}\Setup.ini'));
- Font.Name:= GetIniString('InterfaceSettings', 'ButtonFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- //Transparent := True;
- Parent:= WizardForm.InstallingPage;
- //Font.Style := [fsBold]
- OnClick:= @MusicOnClick;
- Visible := MusicEndis
- end;
- CancelButton2:= TButton.Create(WizardForm);
- with CancelButton2 do
- begin
- Caption:=SetupMessage(msgButtonCancel);
- Left:= BMPFile2.Bitmap.Width - 20 - (Image5.Bitmap.Width /3);
- Top:= BMPFile2.Bitmap.Height - Image5.Bitmap.Height - 15;
- Width:= Image5.Bitmap.Width /3;
- Height:= Image5.Bitmap.Height;
- Font.Size:= GetIniInt('InterfaceSettings', 'ButtonFontSize', 9,0,0, ExpandConstant('{src}\Setup.ini'));
- Font.Name:= GetIniString('InterfaceSettings', 'ButtonFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'ButtonFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- //Transparent := True;
- Parent:= WizardForm.InstallingPage;
- //Font.Style := [fsBold]
- OnClick:= @CancelButton2OnClick;
- end;
- end;
- WizardForm.Color := ClBlack
- WizardForm.WelcomePage.Color := ClBlack
- WizardForm.LicensePage.Color := ClBlack
- WizardForm.SelectDirPage.Color := ClBlack
- WizardForm.SelectProgramGroupPage.Color := ClBlack
- WizardForm.ReadyPage.Color := ClBlack
- WizardForm.InstallingPage.Color := ClBlack
- WizardForm.FinishedPage.Color := ClBlack
- WizardForm.WizardBitmapImage.hide;
- WizardForm.WizardSmallBitmapImage.hide;
- WizardForm.WizardSmallBitmapImage.Left:=0;
- WizardForm.SelectGroupBitmapImage.hide;
- WizardForm.SelectDirBitmapImage.hide;
- // Mainform.Enabled := False;;
- Wizardform.BorderStyle := bsSingle ;
- Wizardform.BorderIcons := Mainform.BorderIcons - [biMaximize] ;
- Wizardform.Caption := Mainform.Caption
- WizardForm.LicenseMemo.Top := 160
- WizardForm.LicenseMemo.Left := ScaleX(30)
- WizardForm.LicenseMemo.Width := ScaleX(350)
- WizardForm.LicenseMemo.Height := 165
- WizardForm.BackButton.Left:=(GetIniInt('InterfaceSettings', 'Button3Left', 0,0,0, ExpandConstant('{src}\Setup.ini')))
- WizardForm.BackButton.Top:=(GetIniInt('InterfaceSettings', 'Button3Top', 0,0,0, ExpandConstant('{src}\Setup.ini')))
- WizardForm.NextButton.Left:=(GetIniInt('InterfaceSettings', 'Button4Left', 0,0,0, ExpandConstant('{src}\Setup.ini')))
- WizardForm.NextButton.Top:=(GetIniInt('InterfaceSettings', 'Button4Top', 0,0,0, ExpandConstant('{src}\Setup.ini')))
- WizardForm.CancelButton.Left:=(GetIniInt('InterfaceSettings', 'Button2Left', 0,0,0, ExpandConstant('{src}\Setup.ini')))
- WizardForm.CancelButton.Top:=(GetIniInt('InterfaceSettings', 'Button2Top', 0,0,0, ExpandConstant('{src}\Setup.ini')))
- WizardForm.DirBrowseButton.Left:=(GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - (Image5.Bitmap.Width /3) - 10
- WizardForm.DirBrowseButton.Top:=(GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 130;
- WizardForm.DirBrowseButton.Width:=Image5.Bitmap.Width /3
- WizardForm.DirBrowseButton.Height:=Image5.Bitmap.Height
- WizardForm.DirBrowseButton.Parent:=BmpPanel1 ;
- LoadButtonImage1(WizardForm.NextButton,bidNext)
- LoadButtonImage2(WizardForm.BackButton,bidBack)
- if (GetIniBool('InterfaceSettings', 'ButtonOneLiner', False, ExpandConstant('{src}\Setup.ini')) = False) then
- ButtonLabel[bidBack].Top := (GetIniInt('InterfaceSettings', 'ButtonLabelTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + (ButtonLabel[bidBack].Font.Size / 2) + 2 ;
- LoadButtonImage3(WizardForm.CancelButton,bidCancel)
- LoadButtonImage2(CustomInstallButton,bidCustomInstall)
- LoadButtonImage4(MusicOnOff,bidMusicButton)
- LoadButtonImage5(WizardForm.DirBrowseButton,bidDirBrowse)
- if FileExists(ExpandConstant('{src}\background1.bmp')) and FileExists(ExpandConstant('{src}\Installer.bmp')) then begin
- LoadButtonImage5(CancelButton2,bidCancel2)
- LoadButtonImage5(MusicOnOff2,bidMusic2Button)
- ButtonPanel[bidMusic2Button].Visible := MusicEndis
- end;
- ///////??????? ???????? ? ??????????
- WizardForm.NextButton.Width:=Image.Bitmap.Width /3;
- WizardForm.NextButton.Height:=Image.Bitmap.Height;
- CustomInstallButton.Width:= Image2.Bitmap.Width /3;
- CustomInstallButton.Height:= Image2.Bitmap.Height;
- WizardForm.BackButton.Width:=Image2.Bitmap.Width /3;
- WizardForm.BackButton.Height:=Image2.Bitmap.Height;
- WizardForm.CancelButton.Width:=Image3.Bitmap.Width /3;
- WizardForm.CancelButton.Height:=Image3.Bitmap.Height;
- MusicOnOff.Width:= Image4.Bitmap.Width /3;
- MusicOnOff.Height:= Image4.Bitmap.Height;
- MainForm.OnClose:= @WizardClose
- with WizardForm do
- begin
- PageNameLabel.Hide;
- PageDescriptionLabel.Hide;
- WelcomeLabel1.Hide;
- WelcomeLabel2.Hide;
- DiskSpaceLabel.Hide;
- SelectDirBitmapImage.Hide;
- SelectDirBrowseLabel.Hide;
- SelectDirLabel.Hide;
- FinishedHeadingLabel.Hide;
- FinishedLabel.Hide;
- MainPanel.Hide
- FilenameLabel.Hide;
- StatusLabel.Hide;
- SelectStartMenuFolderLabel.Hide;
- SelectStartMenuFolderBrowseLabel.Hide;
- ReadyLabel.Hide;
- LicenseLabel1.Hide;
- LicenseAcceptedRadio.Hide;
- LicenseNotAcceptedRadio.Hide;
- end;
- ///////??????? ???????? ? ??????????
- end;
- /////??????????????? ??????
- ////?????? ???? ??????????
- procedure InitializeWizard3();
- begin
- WizardForm.Width:=InstallerWidth;
- WizardForm.Height:=InstallerHeight + 25;
- end;
- ////?????? ???? ??????????
- procedure AcceptLicenseOnClick(Sender: TObject);
- begin
- if SoundEndis = True then
- begin
- sndPlaySound(ExpandConstant('{src}\Button.wav'), SND_FILENAME or SND_ASYNC);
- end;
- if AcceptLicense.Checked = False then begin
- WizardForm.LicenseNotAcceptedRadio.Checked:= True
- ButtonLabel[bidNext].Enabled:=False
- end else begin
- WizardForm.LicenseAcceptedRadio.Checked:= True
- ButtonLabel[bidNext].Enabled:=True end; end;
- ///?????
- procedure InitializeWizard4();
- begin
- WizardForm.DiskSpaceLabel.Hide;
- BmpFile1:= TBitmapImage.Create(WizardForm);
- BmpFile1.Bitmap.LoadFromFile(ExpandConstant('{src}\Uninstall.bmp'));
- BmpPanel1:= TPanel.Create(WizardForm);
- with BmpPanel1 do begin
- Left:=0
- Top:=0
- Width:=InstallerWidth
- Height:=InstallerHeight
- Parent:=Wizardform.BackButton.Parent
- Color:=ClBlack
- end;
- BmpFile1.SetBounds(0, 0, InstallerWidth, InstallerHeight);
- BmpFile1.Stretch:= false
- BmpFile1.Parent:= BmpPanel1;
- if FileExists(ExpandConstant('{src}\background1.bmp')) and FileExists(ExpandConstant('{src}\Installer.bmp')) then begin
- BmpFile2:= TBitmapImage.Create(WizardForm);
- BmpFile2.Bitmap.LoadFromFile(ExpandConstant('{src}\Installer.bmp'));
- BmpFile2.SetBounds(0, 0, BmpFile2.Bitmap.Width, BmpFile2.Bitmap.Height);
- BmpFile2.Stretch:= false
- BmpFile2.Parent:= Wizardform.InstallingPage;
- end;
- BmpFile3:= TBitmapImage.Create(WizardForm);
- BmpFile3.Bitmap.LoadFromFile(ExpandConstant('{src}\Uninstall.bmp'));
- BmpFile3.SetBounds(0, 0, InstallerWidth, InstallerHeight);
- BmpFile3.Stretch:= false
- BmpFile3.Parent:= Wizardform.FinishedPage;
- //BmpFile8.Bitmap.Left := -(InstallerWidth/2 )
- Image5:= TBitmapImage.Create(WizardForm);
- Image5.Bitmap.LoadFromFile(ExpandConstant('{src}\btn0.bmp'));
- Image5.Parent:= WizardForm.LicensePage;
- MainLabel:= TLabel.Create(WizardForm);
- with MainLabel do
- begin
- Left:= 0;
- Top:= 0;
- Width:= InstallerWidth;
- Height:= InstallerHeight;
- AutoSize:= false;
- Transparent:= true;
- WordWrap:= False;
- Parent:= BmpPanel1;
- //Caption:= Wizardform.WelcomeLabel1.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- MainLabel:= TLabel.Create(WizardForm);
- with MainLabel do
- begin
- Left:= 0;
- Top:= 0;
- Width:= InstallerWidth;
- Height:= InstallerHeight;
- AutoSize:= false;
- Transparent:= true;
- WordWrap:= False;
- Parent:= WizardForm.LicensePage;
- //Caption:= Wizardform.WelcomeLabel1.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- MainLabel:= TLabel.Create(WizardForm);
- with MainLabel do
- begin
- Left:= 0;
- Top:= 0;
- Width:= InstallerWidth;
- Height:= InstallerHeight;
- AutoSize:= false;
- Transparent:= true;
- WordWrap:= False;
- Parent:= WizardForm.SelectDirPage;
- //Caption:= Wizardform.WelcomeLabel1.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- MainLabel:= TLabel.Create(WizardForm);
- with MainLabel do
- begin
- Left:= 0;
- Top:= 0;
- Width:= InstallerWidth;
- Height:= InstallerHeight;
- AutoSize:= false;
- Transparent:= true;
- WordWrap:= False;
- Parent:= WizardForm.SelectProgramGroupPage;
- //Caption:= Wizardform.WelcomeLabel1.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- MainLabel:= TLabel.Create(WizardForm);
- with MainLabel do
- begin
- Left:= 0;
- Top:= 0;
- Width:= InstallerWidth;
- Height:= InstallerHeight;
- AutoSize:= false;
- Transparent:= true;
- WordWrap:= False;
- Parent:= WizardForm.InstallingPage;
- //Caption:= Wizardform.WelcomeLabel1.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- MainLabel:= TLabel.Create(WizardForm);
- with MainLabel do
- begin
- Left:= 0;
- Top:= 0;
- Width:= InstallerWidth;
- Height:= InstallerHeight;
- AutoSize:= false;
- Transparent:= true;
- WordWrap:= False;
- Parent:= WizardForm.FinishedPage;
- //Caption:= Wizardform.WelcomeLabel1.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- NeedSpaceLabel := TLabel.Create(WizardForm);
- with NeedSpaceLabel do
- begin
- Parent := BmpPanel1;
- Transparent:= true;
- Font.Size:= 9;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Autosize:=False;
- WordWrap:=True;
- Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + (GetIniInt('InterfaceSettings', 'TextPositionHeight', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 80;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 10;
- Height := ScaleY(40);
- Caption := DiskSpaceLabelFix
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- FreeSpaceLabel := TLabel.Create(WizardForm);
- with FreeSpaceLabel do
- begin
- Parent := WizardForm.SelectDirPage;
- Transparent:= true;
- Font.Style:= [fsbold,fsitalic];
- Font.Size:= 9;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=ClWhite
- Left := ScaleX(5);
- Top := ScaleY(345);
- Width := ScaleX(209);
- Height := ScaleY(13);
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- WizardForm.DirEdit.Text := WizardForm.DirEdit.Text + #0;
- with WizardForm do
- begin
- InnerNotebook.Left := ScaleX(0);
- InnerNotebook.Top := ScaleY(0);
- InnerNotebook.Width := ScaleX(InstallerWidth);
- InnerNotebook.Height := ScaleY(InstallerHeight);
- OuterNotebook.Left := ScaleX(0);
- OuterNotebook.Top := ScaleY(0);
- OuterNotebook.Width := ScaleX(InstallerWidth);
- OuterNotebook.Height := ScaleY(InstallerHeight);
- end;
- with WizardForm do
- begin
- DirEdit.Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;
- DirEdit.Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 95;
- DirEdit.Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 15;
- DirEdit.Color:=clWhite;
- DirEdit.Parent := BmpPanel1;
- GroupEdit.Left:= 30;
- GroupEdit.Top:= 190;
- GroupEdit.Width:= 350
- GroupEdit.Color:=clWhite;
- ProgressGauge.Top:=(GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 105;
- ProgressGauge.Left:=(GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;
- ProgressGauge.Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 15;
- ProgressGauge.Height:= 12
- ProgressGauge.Parent:= BMPPanel1;
- end;
- WelcomeLabel1:= TLabel.Create(WizardForm);
- with WelcomeLabel1 do
- begin
- Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 10;
- Height:= 200;
- AutoSize:= false;
- Transparent:= true;
- WordWrap:= true;
- Font.Size:= 16;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Font.Style := [fsbold]
- Parent:= BmpPanel1;
- Caption:= Wizardform.WelcomeLabel1.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- WelcomeLabel2:=TLabel.Create(WizardForm);
- with WelcomeLabel2 do
- begin
- Top:= WelcomeLabel1.Top + 110;
- Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 10;
- Height:= ScaleY(200);
- AutoSize:= false;
- WordWrap:= true;
- Transparent:= true;
- Font.Size:= 10;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Parent:= BmpPanel1;
- Caption:= Wizardform.WelcomeLabel2.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- SelectDirBrowseLabel1:=TLabel.Create(WizardForm);
- with SelectDirBrowseLabel1 do
- begin
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;
- Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 10;
- Height:= 60;
- AutoSize:= false;
- WordWrap:= true;
- Transparent:= true;
- Font.Size:= 10;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Parent:= BmpPanel1;
- Caption:= Wizardform.SelectDirLabel.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- SelectDirBrowseLabel2:=TLabel.Create(WizardForm);
- with SelectDirBrowseLabel2 do
- begin
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 40;
- Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 10;
- Height:= 60;
- AutoSize:= false;
- WordWrap:= true;
- Transparent:= true;
- Font.Size:= 10;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Parent:= BmpPanel1;
- Caption:= Wizardform.SelectDirBrowseLabel.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- SelectDirBrowseLabel:=TLabel.Create(WizardForm);
- with SelectDirBrowseLabel do
- begin
- Top:= ScaleY(100);
- Left:= ScaleX(30);
- Width:= ScaleX(350);
- Height:= ScaleY(200);
- AutoSize:= false;
- WordWrap:= true;
- Transparent:= true;
- Font.Size:= 10;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Parent:= WizardForm.SelectProgramGroupPage;
- Caption:= WizardForm.SelectStartMenuFolderLabel.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- SelectDirBrowseLabel:=TLabel.Create(WizardForm);
- with SelectDirBrowseLabel do
- begin
- Top:= ScaleY(135);
- Left:= ScaleX(30);
- Width:= ScaleX(350);
- Height:= ScaleY(200);
- AutoSize:= false;
- WordWrap:= true;
- Transparent:= true;
- Font.Size:= 10;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Parent:= WizardForm.SelectProgramGroupPage;
- Caption:=Wizardform.SelectDirBrowseLabel.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- FinishedHeadingLabel:=TLabel.Create(WizardForm);
- with FinishedHeadingLabel do
- begin
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;
- Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 10;
- Height:= ScaleY(653);
- AutoSize:= false;
- WordWrap:= true;
- Font.Size:= 16;
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Font.Style := [fsBold]
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Transparent:= true;
- Parent:= WizardForm.FinishedPage;
- Caption:= Wizardform.FinishedHeadingLabel.Caption
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- FinishedLabel1:= TLabel.Create(WizardForm);
- with FinishedLabel1 do
- begin
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 115;
- Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 10;
- Height:= ScaleY(200);
- AutoSize:= false;
- WordWrap:= true;
- Transparent:= true;
- Font.Size:= 10;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Parent:= WizardForm.FinishedPage;
- Caption:= SetupMessage2(msgFinishedLabel)
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- FinishedLabel2:= TLabel.Create(WizardForm);
- with FinishedLabel2 do
- begin
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 215;
- Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 10;
- Height:= ScaleY(200);
- AutoSize:= false;
- WordWrap:= true;
- Transparent:= true;
- Font.Size:= 10;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Parent:= WizardForm.FinishedPage;
- Caption:= SetupMessage(msgClickFinish)
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- InstallingPageLabel1:=TLabel.Create(WizardForm);
- with InstallingPageLabel1 do
- begin
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5; //100
- Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 10;
- Height:= ScaleY(200);
- AutoSize:= false;
- WordWrap:= true;
- Transparent:= true;
- Font.Size:= 12;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Font.Style := [fsBold]
- Parent:= BMPPanel1;
- Caption:= SetupMessage(msgWizardInstalling)
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- InstallingPageLabel2:=TLabel.Create(WizardForm);
- with InstallingPageLabel2 do
- begin
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 55; //150
- Left:= (GetIniInt('InterfaceSettings', 'TextPositionLeft', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 5;;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 10;
- Height:= ScaleY(200);
- AutoSize:= false;
- WordWrap:= true;
- Transparent:= true;
- Font.Size:= 10;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Parent:= BMPPanel1;
- Caption:= SetupMessage2(msgInstallingLabel)
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- end;
- DirectX:= TCheckBox.Create(WizardForm);
- with DirectX do
- begin
- Parent:= BmpPanel1;
- Left:= WizardForm.DirEdit.Left;
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 130;
- Width:= ScaleX(14);
- Height:= ScaleY(14);
- TabOrder:= 0;
- Checked:= Dirx;
- Visible:= Dirx
- OnClick:= @SoundPlay
- Color:= GetIniInt('InstallOptions', 'CheckButtonColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- lblDirectX:= TLabel.Create(WizardForm);
- with lblDirectX do
- begin
- Caption:= FmtMessage(cm('InstallAdd'), [GetIniString('LauncherSettings', 'Launch1', '', ExpandConstant('{src}\Setup.ini'))]);
- Left:= WizardForm.DirEdit.Left + 20;
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 130;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 35;
- Height:= ScaleY(13);
- Font.Size:= 9;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Transparent := True;
- Parent:= BmpPanel1;
- OnClick:= @lblDirectXOnClick;
- Visible:= Dirx
- end;
- Redist:= TCheckBox.Create(WizardForm);
- with Redist do
- begin
- Parent:= BmpPanel1;
- Left:= WizardForm.DirEdit.Left;
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 150;
- Width:= ScaleX(14);
- Height:= ScaleY(14);
- TabOrder:= 1;
- Checked:= Redx;
- Visible:= Redx
- OnClick:= @SoundPlay
- Color:= GetIniInt('InstallOptions', 'CheckButtonColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- lblRedist:= TLabel.Create(WizardForm);
- with lblRedist do
- begin
- Caption:= FmtMessage(cm('InstallAdd'), [GetIniString('LauncherSettings', 'Launch2', '', ExpandConstant('{src}\Setup.ini'))]);
- Left:= WizardForm.DirEdit.Left + 20;
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 150;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 135;
- Height:= ScaleY(13);
- Transparent := True;
- Font.Size:= 9;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Parent:= BmpPanel1;
- OnClick:= @RedistOnClick;
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- Visible:= Redx
- end;
- PhysX:= TCheckBox.Create(WizardForm);
- with PhysX do
- begin
- Parent:= BmpPanel1;
- Left:= WizardForm.DirEdit.Left;
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 170;
- Width:= ScaleX(14);
- Height:= ScaleY(14);
- TabOrder:= 3;
- Checked:= Phyx;
- Visible := Phyx;
- OnClick:= @SoundPlay
- Color:= GetIniInt('InstallOptions', 'CheckButtonColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- PhysXText:= TLabel.Create(WizardForm);
- with PhysxText do
- begin
- Caption:= FmtMessage(cm('InstallAdd'), [GetIniString('LauncherSettings', 'Launch3', '', ExpandConstant('{src}\Setup.ini'))]);
- Left:= WizardForm.DirEdit.Left + 20;
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 170;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 35;
- Height:= ScaleY(13);
- Font.Size:= 9;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Transparent := True;
- Parent:= BmpPanel1;
- OnClick:= @PhysxOnClick;
- OnMouseMove:=@ButtonLabelMouseMoveMain;
- Visible := Phyx;
- end;
- GFWL:= TCheckBox.Create(WizardForm);
- with GFWL do
- begin
- Parent:= BmpPanel1;
- Left:= WizardForm.DirEdit.Left;
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 190;
- Width:= ScaleX(14);
- Height:= ScaleY(14);
- TabOrder:= 3;
- Checked:= GFWLV;
- Visible := GFWLV;
- OnClick:= @SoundPlay
- Color:= GetIniInt('InstallOptions', 'CheckButtonColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- end;
- GFWLText:= TLabel.Create(WizardForm);
- with GFWLText do
- begin
- Caption:= FmtMessage(cm('InstallAdd'), [GetIniString('LauncherSettings', 'Launch4', '', ExpandConstant('{src}\Setup.ini'))]);
- Left:= WizardForm.DirEdit.Left + 20;
- Top:= (GetIniInt('InterfaceSettings', 'TextPositionTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + 190;
- Width:= (GetIniInt('InterfaceSettings', 'TextPositionWidth', 0,0,0, ExpandConstant('{src}\Setup.ini'))) - 35;
- Height:= ScaleY(13);
- Font.Size:= 9;
- Font.Name:= GetIniString('InterfaceSettings', 'SetupFont', 'Arial', ExpandConstant('{src}\Setup.ini'));
- Font.Color:=GetIniInt('InterfaceSettings', 'SetupFontColor', $000000,0,0, ExpandConstant('{src}\Setup.ini'))
- Transparent := True;
- Parent:= BmpPanel1;
- OnClick:= @GFWLOnClick;
- Visible := GFWLV;
- end;
- end;
- ///?????
- procedure InitializeWizard();
- begin
- InitializeWizard4();
- InitializeWizard3();
- InitializeWizard2();
- InitializeWizard1();
- end;
- procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
- var
- ResultCode: integer;
- begin
- if CurUninstallStep = usUninstall then
- begin
- #ifdef ProductCode
- DeleteRegistryInfo;
- #endif
- if ((GetIniString('InstallSettings', 'GDFBinary', '', ExpandConstant('{tmp}\Uninstall.dat')) <> '') or (GetIniString('InstallSettings', 'GDFBinary' + LanguageTranslator2(ActiveLanguage) , '', ExpandConstant('{tmp}\Uninstall.dat')) <> '')) then
- begin
- if (GetIniString('InstallSettings', 'GDFBinary', '', ExpandConstant('{tmp}\Uninstall.dat')) <> '') then begin
- RetrieveGUIDForApplication(ExpandConstant('{app}\' + GetIniString('InstallSettings', 'GDFBinary', '', ExpandConstant('{tmp}\Uninstall.dat'))), GUID)
- end else begin
- RetrieveGUIDForApplication(ExpandConstant('{app}\' + GetIniString('InstallSettings', 'GDFBinary' + LanguageTranslator2(ActiveLanguage), '', ExpandConstant('{tmp}\Uninstall.dat'))), GUID);
- end;
- RemoveFromGameExplorer(GUID);
- end;
- UnloadDLL(ExpandConstant('{app}\GameuxInstallHelper.dll'));
- if FileOrDirExists(ExpandConstant(GetIniString('InstallOptions', 'SaveGameFolder', '', ExpandConstant('{tmp}\Uninstall.dat')))) then
- if (UninstallSilent = False) and (MsgBox(ExpandConstant('{cm:DelSaveGameFold}'), mbInformation, MB_YESNO) = IDNO) then begin
- DelTree(ExpandConstant(GetIniString('InstallOptions', 'SaveGameFolder', '', ExpandConstant('{tmp}\Uninstall.dat'))), True, True, True);
- end;
- end;
- end;
- function NextButtonClick(CurPageID: Integer): Boolean;
- begin
- if (CurPageID = wpWelcome) and (FastInstall = 0) and (GetIniBool('InterfaceSettings', 'EnableFastInstall', False, ExpandConstant('{src}\Setup.ini')) = True) then
- FastInstall := 1;
- Result := True;
- end;
- function BackButtonClick(CurPageID: Integer): Boolean;
- begin
- if CurPageID = wpFinished then
- Wizardform.NextButton.OnClick(nil);
- Result := True;
- end;
- procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
- begin
- if CancelMode = True then
- Confirm := False
- else
- Confirm := True
- end;
- Procedure CurPageChanged1(CurPageID: Integer);
- Begin
- if (CurPageID = wpWelcome) then begin
- FastInstall := 0;
- if (GetIniBool('InterfaceSettings', 'ButtonOneLiner', False, ExpandConstant('{src}\Setup.ini')) = False) then
- ButtonLabel[bidNext].Top := (GetIniInt('InterfaceSettings', 'ButtonLabelTop', 0,0,0, ExpandConstant('{src}\Setup.ini')));
- WelcomeLabel1.Visible := True;
- WelcomeLabel2.Visible := True;
- if (GetIniBool('InterfaceSettings', 'EnableFastInstall', False, ExpandConstant('{src}\Setup.ini')) = True) then begin
- ButtonPanel[bidCustomInstall].Visible := True;
- CustomInstallButton.Visible := True;
- end else begin
- ButtonPanel[bidCustomInstall].Visible := False;
- CustomInstallButton.Visible := False;
- end;
- SelectDirBrowseLabel1.Visible := False;
- SelectDirBrowseLabel2.Visible := False;
- Wizardform.DirEdit.Visible := False;
- WizardForm.DirBrowseButton.Visible:= False;
- ButtonPanel[bidDirBrowse].Visible:= False;
- Wizardform.ProgressGauge.Visible := False;
- DirectX.Visible := False;
- lblDirectX.Visible := False;
- Redist.Visible:= False;
- lblRedist.Visible:= False;
- PhysX.Visible := False;
- PhysXText.Visible := False;
- GFWL.Visible:= False;
- GFWLText.Visible:= False;
- NeedSpaceLabel.Visible:= False;
- InstallingPageLabel1.Visible := False;
- InstallingPageLabel2.Visible := False;
- SetTaskBarTitle(FmtMessage(ExpandConstant('{cm:ending}'), [GetAppName('')]))
- Wizardform.Caption := FmtMessage(ExpandConstant('{cm:ending}'), [GetAppName('')]);
- if (GetIniBool('InterfaceSettings', 'EnableFastInstall', False, ExpandConstant('{src}\Setup.ini')) = True) then begin
- if (GetIniBool('InterfaceSettings', 'ButtonOneLiner', False, ExpandConstant('{src}\Setup.ini')) = True) then
- Wizardform.NextButton.Caption := FmtMessage(ExpandConstant('{cm:IDPROP_SETUPTYPE_COMPLETE}'), [' '])
- else
- Wizardform.NextButton.Caption := FmtMessage(ExpandConstant('{cm:IDPROP_SETUPTYPE_COMPLETE}'), [#13 + #10]);
- end;
- end;
- if (CurPageID = wpSelectDir) and (FastInstall = 1) then
- Wizardform.NextButton.OnClick(nil) ;
- if (CurPageID = wpSelectDir) then begin
- if (GetIniBool('InterfaceSettings', 'ButtonOneLiner', False, ExpandConstant('{src}\Setup.ini')) = False) then
- ButtonLabel[bidNext].Top := (GetIniInt('InterfaceSettings', 'ButtonLabelTop', 0,0,0, ExpandConstant('{src}\Setup.ini'))) + (ButtonLabel[bidNext].Font.Size / 2) + 2 ;
- Wizardform.NextButton.Caption := SetupMessage(msgButtonInstall);
- WelcomeLabel1.Visible := False;
- WelcomeLabel2.Visible := False;
- ButtonPanel[bidCustomInstall].Visible := False;
- CustomInstallButton.Visible := False;
- SelectDirBrowseLabel1.Visible := True;
- SelectDirBrowseLabel2.Visible := True;
- Wizardform.DirEdit.Visible := True;
- WizardForm.DirBrowseButton.Visible:= True;
- ButtonPanel[bidDirBrowse].Visible:= True;
- DirectX.Visible := Dirx;
- lblDirectX.Visible := Dirx;
- Redist.Visible:= Redx;
- lblRedist.Visible:= Redx;
- PhysX.Visible := PhyX;
- PhysXText.Visible := PhyX;
- GFWL.Visible:= GFWLV;
- GFWLText.Visible:= GFWLV;
- NeedSpaceLabel.Visible:= True;
- end;
- if (CurPageID = wpInstalling) then begin
- InstallingPageLabel1.Visible := True;
- InstallingPageLabel2.Visible := True;
- Wizardform.ProgressGauge.Visible := True;
- WelcomeLabel1.Visible := False;
- WelcomeLabel2.Visible := False;
- ButtonPanel[bidCustomInstall].Visible := False;
- SelectDirBrowseLabel1.Visible := False;
- SelectDirBrowseLabel2.Visible := False;
- Wizardform.DirEdit.Visible := False;
- WizardForm.DirBrowseButton.Visible:= False;
- ButtonPanel[bidDirBrowse].Visible:= False;
- CustomInstallButton.Visible := False;
- DirectX.Visible := False;
- lblDirectX.Visible := False;
- Redist.Visible:= False;
- lblRedist.Visible:= False;
- PhysX.Visible := False;
- PhysXText.Visible := False;
- GFWL.Visible:= False;
- GFWLText.Visible:= False;
- NeedSpaceLabel.Visible:= False;
- end;
- if (CurPageID = wpInstalling) and FileExists(ExpandConstant('{src}\background1.bmp')) and FileExists(ExpandConstant('{src}\Installer.bmp')) then begin
- BmpPanel1.Visible := False;
- InstallingPageLabel1.Parent := Wizardform.InstallingPage;
- InstallingPageLabel2.Parent := Wizardform.InstallingPage;
- Wizardform.ProgressGauge.Parent := Wizardform.InstallingPage;
- InstallingPageLabel1.Top:= 20;
- InstallingPageLabel1.Left:= 20;
- InstallingPageLabel1.Width:= BMPFile2.Bitmap.Width - 50;
- InstallingPageLabel2.Top:= 50;
- InstallingPageLabel2.Left:= 20;
- InstallingPageLabel2.Width:= BMPFile2.Bitmap.Width - 50;
- Background('background1.bmp');
- with wizardform do begin
- ProgressGauge.Top:=100;
- ProgressGauge.Left:=20;
- ProgressGauge.Width:= BMPFile2.Bitmap.Width - 40
- show;
- Width := BMPFile2.Bitmap.Width;
- Height := BMPFile2.Bitmap.Height + 25;
- Top := GetSystemMetrics(1) - WizardForm.Height - 50;
- Left := GetSystemMetrics(0) /2 - WizardForm.Width /2 ;
- // CancelButton.Top := 135;
- end;
- // WizardForm.CancelButton.Parent := Wizardform.InstallingPage
- // LoadButtonImage(WizardForm.CancelButton,bidCancel)
- end;
- if (CurPageID = wpFinished) then begin
- SetTaskBarTitle(FmtMessage(ExpandConstant('{cm:ending}'), [GetAppName('')]))
- BmpPanel1.Visible := False;
- if (GetIniBool('InterfaceSettings', 'EnableFastInstall', False, ExpandConstant('{src}\Setup.ini')) = True) then begin
- Wizardform.Backbutton.show;
- Wizardform.Backbutton.Caption := Wizardform.NextButton.Caption;
- Wizardform.NextButton.Left := Wizardform.Width * 20;
- ButtonPanel[bidNext].Left := Wizardform.Width * 20;
- end;
- end;
- if (CurPageID = wpFinished) and FileExists(ExpandConstant('{src}\background1.bmp')) and FileExists(ExpandConstant('{src}\Installer.bmp')) then begin
- BGForm.Hide;
- WizardForm.Width := InstallerWidth;
- WizardForm.Height := InstallerHeight + 25;
- WizardForm.Top := GetSystemMetrics(1) /2 - WizardForm.Height /2 ;
- WizardForm.Left := GetSystemMetrics(0) /2 - WizardForm.Width /2 ;
- // Wizardform.NextButton.Top := (GetIniInt('InterfaceSettings', 'Button3Top', 0,0,0, ExpandConstant('{src}\Setup.ini')));
- end;
- if (CurPageID = wpFinished) and (MyError = True) then
- Wizardform.NextButton.OnClick(nil)
- End;
- function InitializeSetup(): Boolean;
- var
- appath,s : string;
- ResultCode: Integer;
- BitmapImage1 : TBitmapImage;
- begin
- if (FileExists(ExpandConstant('{code:GetSourcePath}\Setup.dll')) = False) or (Pos('.exe', GetCmdTail) <> 0) then begin
- MsgBox('DLL file cant be launched.', mbCriticalError, MB_OK)
- Result := False
- end else begin
- Result := True //testbereich
- FileCopy(ExpandConstant('{code:GetSourcePath}\Setup.ini'),ExpandConstant('{src}\Setup.ini'),False);
- // ExtractTemporaryFile('button.bmp')
- // ExtractTemporaryFile('bigbutton.bmp')
- // ExtractTemporaryFile('Uninstall.bmp');
- // ExtractTemporaryFile('2.bmp');
- // ExtractTemporaryFile('background1.bmp');
- // if (BackgroundImageQuantity >= 2) then
- // ExtractTemporaryFile('background2.bmp');
- // if (BackgroundImageQuantity >= 3) then
- // ExtractTemporaryFile('background3.bmp');
- // if (BackgroundImageQuantity >= 4) then
- // ExtractTemporaryFile('background4.bmp');
- // if (BackgroundImageQuantity >= 5) then
- // ExtractTemporaryFile('background5.bmp');
- // if (BackgroundImageQuantity >= 6) then
- // ExtractTemporaryFile('background6.bmp');
- // if (BackgroundImageQuantity >= 7) then
- // ExtractTemporaryFile('background7.bmp');
- // ExtractTemporaryFile('Splash.bmp');
- // #if fileExists("music.mp3")
- // ExtractTemporaryFile('music.mp3');
- // #endif
- // if MusicEndis = True then
- PlayMusic()
- counter2:=1
- repeat
- counter2:=counter2 +1
- // MsgBox(ExpandConstant('{src}\background'+ IntToStr(counter2)+'.bmp'), mbInformation, MB_YESNO);
- until FileExists(ExpandConstant('{src}\background'+ IntToStr(counter2)+'.bmp')) = False;
- BackgroundImageQuantity := counter2-1
- counter2 := 0;
- PictureShown := 0;
- yener90Mode:=False;
- if GetIniBool('InstallOptions', 'yener90mode', False, ExpandConstant('{src}\Setup.ini')) = true then
- yener90Mode:=True;
- if FileExists(ExpandConstant('{src}\Splash.bmp')) then
- Splash('Splash.bmp');
- // if SoundEndis = True then
- //ExtractTemporaryFile('Button.wav');
- end;
- end;
- procedure CurPageChanged(CurPageID: Integer);
- begin
- CurPageChanged1(CurPageID);
- CurPageChanged2(CurPageID);
- end;
- [CustomMessages]
- eng.InsertDisk=Please insert disc: %1
- eng.ending=%1 - Installation
- eng.BM=Music
- eng.BMon=ON
- eng.BMoff=OFF
- eng.InstallAdd=Install %1
- eng.uninstall=Deinstall
- eng.Language=ENU
- eng.LanguageNR=1033
- eng.Language2=en_US
- eng.Language3=us
- eng.IDPROP_SETUPTYPE_COMPLETE=Default%1Installation
- eng.IDPROP_SETUPTYPE_CUSTOM=Custom%1Installation
- eng.InstallingAF=Installing %1.....
- eng.DelSaveGameFold=Do you want to keep save game?
- cze.ArcBreak=Instalace byla přerušena!
- cze.InsertDisk=ProsĂm vloĹľte DVD: %1
- cze.taskbar=%1%%, %2 zůstává
- cze.ending=%1 - Instalace
- cze.hour= hodiny
- cze.min= min
- cze.sec= sek
- cze.BM=Hudba
- cze.InstallAdd=%1 install
- cze.uninstall=Odinstalovat
- cze.Language=CZE
- cze.Language2=cs_CZ
- cze.LanguageNR=1029
- cze.IDPROP_SETUPTYPE_COMPLETE=Úplná%1instalace
- cze.IDPROP_SETUPTYPE_CUSTOM=VlastnĂ%1instalace
- cze.InstallingAF=Instalace %1.....
- cze.DelSaveGameFold=Chcete-li uloĹľit hry?
- cnt.InsertDisk=請插入光盤: %1
- cnt.ending=%1 - 安裝
- cnt.BM=音樂
- cnt.BMon=ON
- cnt.BMoff=OFF
- cnt.InstallAdd=安裝 %1
- cnt.uninstall=卸載
- cnt.Language=ENU
- cnt.LanguageNR=1033
- cnt.Language2=zh_TW
- cnt.Language3=us
- cnt.IDPROP_SETUPTYPE_COMPLETE=é»čŞŤ%1安裝
- cnt.IDPROP_SETUPTYPE_CUSTOM=自定義%1安裝
- cnt.InstallingAF=安裝 %1.....
- cnt.DelSaveGameFold=ä˝ ćłäżťćŚäżťĺéŠć˛ďĽź
- dan.InsertDisk=Indsæt den DVD: %1
- dan.ending=%1 - Installation
- dan.BM=Musik
- dan.InstallAdd=Installere %1
- dan.uninstall=Afinstaller
- dan.Language=DAN
- dan.IDPROP_SETUPTYPE_COMPLETE=Standard%1Installation
- dan.IDPROP_SETUPTYPE_CUSTOM=Brugerdefineret%1Installation
- dan.InstallingAF=%1 er installeret.....
- dan.DelSaveGameFold=Ănsker du at beholde det gemte spil?
- ger.ArcBreak=Installation abgebrochen!
- ger.ArcError=Entpacken brach mit dem Fehlercode %1 ab.
- ger.ErrorUnknownError=Ein Fehler trat beim Entpacken auf. Kontaktieren sie den Autor des Programms.
- ger.ErrorCompressMethod=Die Kompressions-Methode "%1" des Archivs "%2" wird von der aktuellen Version von unarc.dll nicht unterstutzt.
- ger.ErrorOutBlockSize=Ausgabe-Block ist zu klein fur das Archiv "%1"
- ger.ErrorNotEnoughRAMMemory=Nicht genug freier Speicher um das Archiv "%1" zu entpacken.
- ger.ErrorReadData=Archiv "%1" Daten-Lese-Fehler
- ger.ErrorBadCompressedData=Daten konnten nicht aus dem Archiv "%1" entpackt werden.
- ger.ErrorNotImplement=Die benotigte Funktion wird noch nicht von unarc.dll unterstutzt.
- ger.ErrorDataAlreadyDecompress=Daten-Block des Archivs "%1" ist bereits entpackt.
- ger.ErrorUnpackTerminated=Abbruch durch Benutzer.
- ger.ErrorWriteData=Ein Fehler ereignete sich beim Bearbeiten des Archivs "%1"
- ger.ErrorBadCRC=Falsche CRC-Prufsumme in Archiv "%1"
- ger.ErrorBadPassword=Passwort fur Archiv "%1" ist falsch.
- ger.ErrorBadHeader=Header des Archivs "%1" ist beschadigt.
- ger.ErrorCodeException=Code-Ausnahme erkannt. Kontaktieren sie den Autor des Programms.
- ger.ErrorNotEnoughFreeSpace=Nicht genug freier Speicher um "%1" zu entpacken!
- ger.ArcTitle=Entpacke FreeArc-Archive...
- ger.StatusInfo=Dateien: %1%2, Fortschritt %3%%, verbleibende Zeit %4
- ger.ArcInfo=Disk %1 von %2, Archiv %3 von %4, %5%% des Archivs bearbeitet.
- ger.ArcFinish=Entpackte Archive: %1, erhaltene Dateien: %2 [%3]
- ger.InsertDisk=Bitte DVD einlegen: %1
- ger.ending=%1 - Installation
- ger.BM=Musik
- ger.BMon=AN
- ger.BMoff=AUS
- ger.InstallAdd=%1 installieren
- ger.uninstall=Deinstallieren
- ger.Language=DEU
- ger.Language2=de_DE
- ger.Language3=de
- ger.LanguageNR=1031
- ger.IDPROP_SETUPTYPE_COMPLETE=Standard%1Installation
- ger.IDPROP_SETUPTYPE_CUSTOM=Benutzerdefinierte%1Installation
- ger.InstallingAF=%1 wird installiert.....
- ger.DelSaveGameFold=Wollen Sie die gespeicherten Spielstände behalten ?
- esp.ArcBreak=InstalaciĂłn abortada!
- esp.InsertDisk=Por favor, inserte el disco: %1
- esp.taskbar=%1%%, %2 restante
- esp.ending=%1 - InstalaciĂłn
- esp.hour= hours
- esp.min= min
- esp.sec= sec
- esp.BM=MĂşsica
- esp.InstallAdd=Instalar %1
- esp.uninstall=Desinstalar
- esp.Language=ESP
- esp.Language2=es_ES
- esp.Language3=es
- esp.LanguageNR=1034
- esp.IDPROP_SETUPTYPE_COMPLETE=InstalaciĂłn%1predeterminada
- esp.IDPROP_SETUPTYPE_CUSTOM=InstalaciĂłn%1personalizada
- esp.InstallingAF=Instalando %1.....
- fre.ArcBreak=Installation avortée!
- fre.InsertDisk=Veuillez insérer le disque: %1
- fre.taskbar=%1%%, %2 restant
- fre.ending=%1 - Installation
- fre.hour= hours
- fre.min= min
- fre.sec= sec
- fre.BM=Musique
- fre.InstallAdd=Installer %1
- fre.uninstall=Désinstallation
- fre.Language=FRA
- fre.Language2=fr_FR
- fre.Language3=fr
- fre.LanguageNR=1036
- fre.IDPROP_SETUPTYPE_COMPLETE=Installation%1par défaut
- fre.IDPROP_SETUPTYPE_CUSTOM=Installation%1personnalisée
- fre.InstallingAF=Installation des %1.....
- hun.InsertDisk=Kérem, tegye be a meghajóba a %1. DVD-t
- hun.ending=%1 - telepĂtĂ©se
- hun.BM=Zene
- hun.BMon=BE
- hun.BMoff=KI
- hun.InstallAdd=%1 telepĂtĂ©se
- hun.uninstall=EltávolĂtása
- hun.Language=HUN
- hun.LanguageNR=1038
- hun.IDPROP_SETUPTYPE_COMPLETE=Szokásos%1telepĂtĂ©s
- hun.IDPROP_SETUPTYPE_CUSTOM=Egyedi%1telepĂtĂ©s
- hun.InstallingAF=%1 telepĂtĂ©se folyamatban.....
- hun.DelSaveGameFold=Szeretné megtartani az elmentett játékállásokat?
- ita.ArcBreak=Installazione interrotta!
- ita.InsertDisk=Inserire il disco: %1
- ita.taskbar=%1%%, %2 sinistra
- ita.ending=%1 - Installazione
- ita.hour=ora
- ita.min=min
- ita.sec=sec
- ita.InstallAdd=Installa %1
- ita.BM=Musica
- ita.uninstall=Rimuovi
- ita.Language=ITA
- ita.Language2=it_IT
- ita.Language3=it
- ita.LanguageNR=1040
- ita.IDPROP_SETUPTYPE_COMPLETE=Installazione%1predefinita
- ita.IDPROP_SETUPTYPE_CUSTOM=Installazione%1personalizzata
- ita.InstallingAF=Installazione %1 in corso.....
- jap.ArcBreak=イăłă‚ąăăĽă«ăŻä¸ć˘ă•れăľă—ăźďĽ
- jap.InsertDisk=ă‡ă‚Łă‚ąă‚Żă‚’挿入ă—ă¦ăŹă ă•ă„: %1
- jap.taskbar=%1%%, %2 ă®ăľăľ
- jap.ending=%1 - イăłă‚ąăăĽă«
- jap.hour= 時間
- jap.min= ĺ†ă®
- jap.sec= ç§’
- jap.BM=音楽
- jap.BMon=オăł
- jap.BMoff=オă•
- jap.InstallAdd=イăłă‚ąăăĽă« %1
- jap.uninstall=削除
- jap.Language=JAP
- jap.Language2=jp_JP
- jap.IDPROP_SETUPTYPE_COMPLETE=ă™ăąă¦
- jap.IDPROP_SETUPTYPE_CUSTOM=カスタム
- jap.InstallingAF=イăłă‚ąăăĽă« %1.....
- jap.DelSaveGameFold=ă‚ăŞăźăŻă€äżťĺă—ăźă‚˛ăĽă ă‚’äżťĺă—ăľă™ă‹ďĽź
- kor.InsertDisk=넣으ě‹ě‹śě¤ DVD: %1
- kor.ending=%1 - 설ěą
- kor.BM=음악
- kor.InstallAdd=%1 설ěą
- kor.uninstall=ě śę±°
- kor.Language=KOR
- kor.LanguageNR=1042
- kor.Language2=ko_KR
- kor.IDPROP_SETUPTYPE_COMPLETE=표준%1설ěą
- kor.IDPROP_SETUPTYPE_CUSTOM=ě‚¬ěš©ěž ě •ěť%1설ěą
- kor.InstallingAF=%1 설ěąë©ë‹ë‹¤.....
- kor.DelSaveGameFold=ë‹ąě‹ ěť´ ě €ěžĄëś ę˛Śěž„ěť„ 계속 í•ě‹śę˛ ěŠµë‹ęąŚ?
- ndl.ArcBreak=Installatie afgebroken!
- ndl.InsertDisk=Plaats DVD: %1
- ndl.taskbar=%1%%, %2 blijft
- ndl.ending=%1 - Installatie
- ndl.hour= uur
- ndl.min= min
- ndl.sec= sek
- ndl.BM=Muziek
- ndl.InstallAdd=%1 installeren
- ndl.uninstall=Verwijderen
- ndl.Language=NDL
- ndl.IDPROP_SETUPTYPE_COMPLETE=Standaard%1Installatie
- ndl.IDPROP_SETUPTYPE_CUSTOM=Aangepaste%1Installatie
- ndl.InstallingAF=%1 is geĂŻnstalleerd .....
- ndl.DelSaveGameFold=Wil je de opgeslagen spellen?
- nor.InsertDisk=Sett inn DVD: %1
- nor.ending=%1 - Installasjon
- nor.BM=Musikk
- nor.InstallAdd=Installer %1
- nor.uninstall=Avinstaller
- nor.Language=NOR
- nor.IDPROP_SETUPTYPE_COMPLETE=Standard%1Installasjon
- nor.IDPROP_SETUPTYPE_CUSTOM=Tilpasset%1Installasjon
- nor.InstallingAF=Installere %1.....
- nor.DelSaveGameFold=Vil du beholde de lagrede spillene?
- pol.InsertDisk=Proszę włożyć dysk: %1
- pol.ending=%1 - Instalacja
- pol.BM=Muzyka
- pol.BMon=TAK
- pol.BMoff=NIE
- pol.InstallAdd=Zainstaluj %1
- pol.uninstall=Deinstalacja
- pol.Language=pol
- pol.LanguageNR=1045
- pol.Language2=pl_PL
- pol.IDPROP_SETUPTYPE_COMPLETE=Instalacja%1standardowa
- pol.IDPROP_SETUPTYPE_CUSTOM=Instalacja%1niestandardowa
- pol.InstallingAF=Instalacja %1.....
- pol.DelSaveGameFold=Czy chcesz zachować zapisane stany gry?
- por.ArcBreak=Instalação abortada!
- por.InsertDisk= Por favor, insira o DVD: %1
- por.taskbar=%1%%, %2 permanece
- por.ending=%1 - Instalação
- por.hour= horas
- por.min= min
- por.sec= s
- por.BM=MĂşsica
- por.InstallAdd=Instalar %1
- por.uninstall=Deinstall
- por.Language=POR
- por.IDPROP_SETUPTYPE_COMPLETE=Instalação%1padrão
- por.IDPROP_SETUPTYPE_CUSTOM=Instalação%1personalizada
- por.InstallingAF=Instalando %1.....
- rus.ArcBreak=ĐŁŃтановка прервана!
- rus.InsertDisk=Đ’Ńтавьте диŃĐş: %1
- rus.taskbar=%1%%, жди %2
- rus.ending=%1 - ĐŁŃтановка
- rus.hour= чаŃов
- rus.min= мин
- rus.sec= Ńек
- rus.BM=ĐĽŃзыка
- rus.InstallAdd=ĐŁŃтановить %1
- rus.uninstall=Удаление
- rus.Language=rus
- rus.IDPROP_SETUPTYPE_COMPLETE=Стандартная%1ŃŃтановка
- rus.IDPROP_SETUPTYPE_CUSTOM=Выборочная%1ŃŃтановка
- rus.InstallingAF=ĐŁŃтановить %1.....
- swe.InsertDisk=Sätt in DVD: %1
- swe.ending=%1 - Installation
- swe.BM=Musik
- swe.InstallAdd=Installera %1
- swe.uninstall=Avinstallera
- swe.Language=SWE
- swe.IDPROP_SETUPTYPE_COMPLETE=Standard%1Installation
- swe.IDPROP_SETUPTYPE_CUSTOM=Anpassad%1Installation
- swe.InstallingAF=%1 är installerat.....
- swe.DelSaveGameFold=Vill du ha kvar det sparade spel?
- tha.ArcBreak=ŕ¸ŕ¸˛ŕ¸Łŕ¸•ิดตั้งถูŕ¸ŕ¸˘ŕ¸ŕą€ŕ¸Ąŕ¸´ŕ¸!
- tha.InsertDisk=ŕ¸ŕ¸Łŕ¸¸ŕ¸“าŕąŕ¸Şŕąŕąŕ¸śŕąŕ¸™: %1
- tha.ending=%1 - ตัวติดตั้ง
- tha.BM=ดนตรี
- tha.BMon=เปิด
- tha.BMoff=ปิด
- tha.InstallAdd=ดิดตั้ง %1
- tha.uninstall=ยŕ¸ŕą€ŕ¸Ąŕ¸´ŕ¸ŕ¸ŕ¸˛ŕ¸Łŕ¸”ิดตั้ง
- tha.Language=THA
- tha.LanguageNR=1054
- tha.Language2=th_TH
- tha.Language3=th
- tha.IDPROP_SETUPTYPE_COMPLETE=ติดตั้ง%1ŕąŕ¸šŕ¸šŕ¸›ŕ¸ŕ¸•ิ
- tha.IDPROP_SETUPTYPE_CUSTOM=ติดตั้ง%1ŕąŕ¸šŕ¸šŕ¸ŕ¸łŕ¸«ŕ¸™ŕ¸”เŕ¸ŕ¸‡
- tha.InstallingAF=ติดตั้ง %1.....
- tha.DelSaveGameFold=ต้ŕ¸ŕ¸‡ŕ¸ŕ¸˛ŕ¸Łŕ¸—ีŕąŕ¸ŕ¸°ŕą€ŕ¸ŕą‡ŕ¸šŕą€ŕ¸‹ŕ¸źŕą€ŕ¸ŕ¸ˇŕą„ว้หรืŕ¸ŕą„มŕą?
- tur.ArcBreak=Kurulum iptal edildi!
- tur.InsertDisk=Lütfen diski takın: %1
- tur.taskbar=%1%%, %2 kaldı
- tur.ending=%1 - Kur
- tur.hour= saat
- tur.min= dakika
- tur.sec= saniye
- tur.BMon=MĂĽzik
- tur.InstallAdd=%1 kur
- tur.uninstall=Kaldır
- tur.Language=TUR
- tur.IDPROP_SETUPTYPE_COMPLETE=Standart%1Kurulum
- tur.IDPROP_SETUPTYPE_CUSTOM=Ă–zel%1Kurulum
- tur.InstallingAF=%1 yĂĽkleniyor.....
- tur.DelSaveGameFold=Oyunun kaydettiÄźi ayarlar silinsinmi?
- [ISToolPreCompile]
- #define isFalse(any S) (S = LowerCase(Str(S))) == "no" || S == "false" || S == "off" ? "true" : "false"
- [Files]
- ;Source: Include\cab.dll; DestDir: {tmp}; Flags: dontcopy
- #ifdef CustomGDFBinary
- Source: GDF.dll; DestDir: {tmp}; Flags: dontcopy
- #endif
- ;Source: GDF.dll; DestDir: {tmp}; Flags: dontcopy
- Source: Include\GameuxInstallHelper.dll; DestDir: {app}; Flags: dontcopy ignoreversion
- Source: {src}\Uninstall.bmp; DestDir: {app}\Uninstall; Flags: external
- Source: {src}\Setup.ini; DestDir: {app}\Uninstall;DestName: Uninstall.dat; Flags: external
- ;Source: {code:GetSourcePath}\Executables\*; DestDir: {app}; Flags: external ignoreversion recursesubdirs createallsubdirs; ExternalSize: 1
- ;Source: Uninstall Dragon Age 2.exe; DestDir: {cf32}\Bioware;
- ;Source: {code:GetSourcePath}\Support\*; DestDir: {app}\Support; Flags: external ignoreversion recursesubdirs createallsubdirs; ExternalSize: 4300000000
- ;Source: {code:GetSourcePath}\DATA1\*; DestDir: {app}; Flags: external ignoreversion recursesubdirs createallsubdirs; ExternalSize: 4300000000; Check: DVD1;
- ;Source: {code:GetSourcePath}\DATA2\*; DestDir: {app}; Flags: external ignoreversion recursesubdirs createallsubdirs; ExternalSize: 4300000000; Check: DVD2;
- Source: Include\ISDone.dll; DestDir: {tmp}; Flags: dontcopy
- Source: Include\InnoCallback.dll; DestDir: {tmp}; Flags: dontcopy
- Source: Include\packjpg_dll.dll; DestDir: {tmp}; Flags: dontcopy
- Source: Include\RTconsole.exe; DestDir: {tmp}; Flags: dontcopy
- Source: Include\precomp038.exe; DestDir: {tmp}; Flags: dontcopy
- Source: Include\zlib1.dll; DestDir: {tmp}; Flags: dontcopy
- Source: Include\Unrar.dll; DestDir: {tmp}; Flags: dontcopy
- [Code]
- [Dirs]
Advertisement
Add Comment
Please, Sign In to add comment