1
1
; CODEX installer
2
2
3
- #define Style " CODEX" ; You can find more in Include\Style (PLAZA/RUNE + more).
4
- #define GroupName " CODEX" ; Name of the group (rename crack directory).
3
+ #define Style " CODEX" ; You can find more in Include\Style (PLAZA/RUNE + more)
4
+ #define GroupName " CODEX" ; Name of the group (rename crack directory)
5
5
#define LogoGroup " 5" ; set header logo 1 .. 8 (more in Include/GFX/Logos)
6
6
#define IconGroup " 1" ; set app icon 1 .. 3 (more in Include/GFX/Icons)
7
7
#define MusicGroup " 1" ; set app icon 1 .. 3 (more in Include/Music)
8
- #define Game " Example Game" ; Name of release.
9
- #define GameExe " example.exe" ; Game executable
10
- #define Game_NeedSize " 4616" ; Needed space for release.
11
- #define MyAppURL " http://store.steampowered.com/app/480"
8
+ #define Game " Example Game" ; Name of release
9
+ #define GameExe " example.exe" ; Game executable (include gamedir relative path if needed)
10
+ #define GameNeedSize " 4616" ; Needed space for release
11
+ #define AppURL " http://store.steampowered.com/app/480"
12
12
#define AppVersion " 1.0.0.0"
13
13
#define AppPublisher " Valve"
14
- #define Game_CrackDir " {src} \" + GroupName ; Game crack directory (if present).
15
- #define SetupFiles " Include" ; Files needed for the installation.
16
- #define OutputName " setup" ; Name of the output setup file.
17
- #define Uninstallexe " unins000.exe
14
+ #define GameCrackDir " {src} \" + GroupName ; Game crack directory (if present)
15
+ #define SetupFiles " Include" ; Files needed for the installation
16
+ #define OutputName " setup" ; Name of the output setup file
18
17
19
18
[Setup]
20
19
AppName = {#Game}
21
20
AppVerName = {#Game}
22
21
AppPublisher = {#AppPublisher}
23
- AppSupportURL={#MyAppURL }
22
+ AppSupportURL = {#AppURL }
24
23
AppVersion = {#AppVersion}
25
24
DefaultDirName = {code:DefDirWiz}
26
25
DefaultGroupName = {#Game}
@@ -52,13 +51,13 @@ Source:CallbackCtrl.dll; Flags: dontcopy;
52
51
;Source:Include\GFX\Icons\games.ico; Flags: dontcopy;
53
52
54
53
[Registry]
55
- Root: HKCU; Subkey: " Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" ; ValueName: " {app} \SETSUNA.exe " ; ValueType: String; ValueData: " RUNASADMIN" ; Check: " CheckError" ; Flags: uninsdeletevalue uninsdeletekeyifempty
54
+ Root : HKCU; Subkey : " Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" ; ValueName : " {app} \{#GameExe} " ; ValueType : String ; ValueData : " RUNASADMIN" ; Check : " CheckError" ; Flags : uninsdeletevalue uninsdeletekeyifempty
56
55
57
56
[Icons]
58
57
Name : " {userdesktop}\{#Game}" ; Filename : " {app} \{#GameExe}" ; Check : Icon and CheckError;
59
58
Name : " {group} \{#Game}" ; Filename : " {app} \{#GameExe}" ; Check : Start and CheckError;
60
- Name: " {group} \{cm:UninstallProgram,}" ; Filename: " {uninstallexe} " ; Check: Unnin and Start and CheckError;
61
- Name: " {group} \{cm:ProgramOnTheWeb,I am Setsuna} " ; Filename: " {#MyAppURL }" ;
59
+ Name : " {group} \{cm:UninstallProgram,{#Game} }" ; Filename : " {uninstallexe} " ; Check : Unnin and Start and CheckError;
60
+ Name : " {group} \{cm:ProgramOnTheWeb,{#Game}} " ; Filename : " {#AppURL }" ;
62
61
63
62
[Languages]
64
63
Name : " English" ; MessagesFile : " compiler:Default.isl"
@@ -135,13 +134,11 @@ Type: filesandordirs; Name: {app}
135
134
lblGroupDir: TLabel;
136
135
lblInstallResult: TLabel;
137
136
bvlDirectories: TBevel;
138
- bvlInstallForm: TBevel;
139
137
bvlDirInstall: TBevel;
140
- bvlStartMenuDir: TBevel;
141
138
bvlIconGroup: TBevel;
142
- bvlOptionsForm : TBevel;
139
+ bvlOptions : TBevel;
143
140
bvlInstallOptions: TBevel;
144
- bvlButtonForm : TBevel;
141
+ bvlButtons : TBevel;
145
142
bvlLeftButton: TBevel;
146
143
bvlRightButton: TBevel;
147
144
bvlProgressForm: TBevel;
@@ -152,7 +149,6 @@ Type: filesandordirs; Name: {app}
152
149
chbCopyCrack: TCheckBox;
153
150
cbxDrive: TNewComboBox;
154
151
ImageName: AnsiString;
155
- FNameSearch: AnsiString;
156
152
FreeMB: Cardinal;
157
153
TotalMB: Cardinal;
158
154
hMutex: DWord;
@@ -195,13 +191,13 @@ Type: filesandordirs; Name: {app}
195
191
196
192
const
197
193
// GetDriveType
198
- DRIVE_UNKNOWN = 0; // UNKNOWN
199
- DRIVE_NO_ROOT_DIR = 1; // Root path invalid
200
- DRIVE_REMOVABLE = 2; // Removable
201
- DRIVE_FIXED = 3; // Fixed
202
- DRIVE_REMOTE = 4; // Network
203
- DRIVE_CDROM = 5; // DVD-ROM and CD-ROM
204
- DRIVE_RAMDISK = 6; // Ram disk
194
+ DRIVE_UNKNOWN = 0 ; // UNKNOWN
195
+ DRIVE_NO_ROOT_DIR = 1 ; // Root path invalid
196
+ DRIVE_REMOVABLE = 2 ; // Removable
197
+ DRIVE_FIXED = 3 ; // Fixed
198
+ DRIVE_REMOTE = 4 ; // Network
199
+ DRIVE_CDROM = 5 ; // DVD-ROM and CD-ROM
200
+ DRIVE_RAMDISK = 6 ; // Ram disk
205
201
206
202
const
207
203
// BASS
@@ -281,11 +277,11 @@ Type: filesandordirs; Name: {app}
281
277
{ $EXTERNALSYM FOF_CONFIRMMOUSE }
282
278
FOF_CONFIRMMOUSE = $0002 ;
283
279
{ $EXTERNALSYM FOF_SILENT }
284
- FOF_SILENT = $0004; // don 't create progress/report
280
+ FOF_SILENT = $0004 ; // Don 't create progress/report
285
281
{ $EXTERNALSYM FOF_RENAMEONCOLLISION }
286
282
FOF_RENAMEONCOLLISION = $0008 ;
287
283
{ $EXTERNALSYM FOF_NOCONFIRMATION }
288
- FOF_NOCONFIRMATION = $0010; // Don't prompt the user.
284
+ FOF_NOCONFIRMATION = $0010 ; // Don't prompt the user.
289
285
FOF_WANTMAPPINGHANDLE = $0020 ;
290
286
FOF_ALLOWUNDO = $0040 ;
291
287
FOF_FILESONLY = $0080 ;
@@ -392,7 +388,7 @@ Type: filesandordirs; Name: {app}
392
388
procedure TaskBarUpdateButtons (APP: HWND);
393
389
external ' TaskBarUpdateButtons@{tmp}\WinTB.dll stdcall delayload' ;
394
390
procedure TaskBarButtonEnabled (Button: LongInt; Enabled: Boolean);
395
- external 'TaskBarButtonEnabled@{tmp} \WinTB.dll stdcall delayload'; // cdecl = 2, stdcall = 3 - delayload = 1, [ ] = 0
391
+ external ' TaskBarButtonEnabled@{tmp}\WinTB.dll stdcall delayload' ; // cdecl = 2, stdcall = 3 - delayload = 1, [ ] = 0
396
392
procedure TaskBarButtonToolTip (Button: LongInt; Hint: PAnsiChar);
397
393
external ' TaskBarButtonToolTip@{tmp}\WinTB.dll stdcall delayload' ;
398
394
procedure TaskBarButtonIcon (Button: LongInt; Icon: DWord);
@@ -456,6 +452,7 @@ Type: filesandordirs; Name: {app}
456
452
Result := not ISDoneError;
457
453
end ;
458
454
455
+ // Wtf does this do?
459
456
function NoSD : String;
460
457
var
461
458
x, bit, i: Integer;
@@ -616,8 +613,6 @@ Type: filesandordirs; Name: {app}
616
613
end ;
617
614
618
615
procedure BtnOnClick (Btn: Integer);
619
- var
620
- i: LongInt;
621
616
begin
622
617
Case Btn of
623
618
hInstall : if ISStep = 1 then
@@ -670,7 +665,7 @@ Type: filesandordirs; Name: {app}
670
665
end ;
671
666
end ;
672
667
673
- procedure MyOnTimer1 (h, msg, idevent, dwTime: LongWord);
668
+ procedure MyOnTimer (h, msg, idevent, dwTime: LongWord);
674
669
begin
675
670
if Transparency > 100 then begin
676
671
KillTimer(WizardForm.Handle, TimerID);
@@ -690,7 +685,7 @@ Type: filesandordirs; Name: {app}
690
685
end ;
691
686
SetWindowLong(WizardForm.Handle, GWL_EXSTYLE, GetWindowLong(WizardForm.Handle, GWL_EXSTYLE) or WS_EX_LAYERED);
692
687
if (Transparency = 0 ) and (DraggingEnabled <> 0 ) then begin
693
- TimerID := SetTimer(WizardForm.Handle, 1, 10, WrapTimerProc(@MyOnTimer1 , 4));
688
+ TimerID := SetTimer(WizardForm.Handle, 1 , 10 , WrapTimerProc(@MyOnTimer , 4 ));
694
689
end ;
695
690
end ;
696
691
if Msg = 533 then begin
@@ -703,8 +698,8 @@ Type: filesandordirs; Name: {app}
703
698
704
699
function IsCrackTheres : Boolean;
705
700
begin
706
- if DirExists(ExpandConstant('{#Game_CrackDir }')) then begin
707
- if not PathIsDirectoryEmpty(ExpandConstant('{#Game_CrackDir }')) then begin
701
+ if DirExists(ExpandConstant(' {#GameCrackDir }' )) then begin
702
+ if not PathIsDirectoryEmpty(ExpandConstant(' {#GameCrackDir }' )) then begin
708
703
Result := True; end
709
704
else begin
710
705
Result := False;
@@ -732,7 +727,6 @@ Type: filesandordirs; Name: {app}
732
727
procedure CBDriveOnClick (Sender: TObject);
733
728
var
734
729
DirValue: AnsiString;
735
- I: Integer;
736
730
begin
737
731
DirValue := WizardForm.DirEdit.Text;
738
732
Delete(DirValue, 1 , Length(cbxDrive.Text));
@@ -778,7 +772,7 @@ Type: filesandordirs; Name: {app}
778
772
MsgBox(ExpandConstant(' {cm:ErrBro}' ), mbError, MB_OK);
779
773
Result := False;
780
774
end ;
781
- if FreeMB < {#Game_NeedSize } then begin
775
+ if FreeMB < { #GameNeedSize } then begin
782
776
MsgBox(ExpandConstant(' {cm:ErrSize}' ), mbError, MB_OK);
783
777
Result := False;
784
778
end ;
@@ -797,8 +791,8 @@ Type: filesandordirs; Name: {app}
797
791
begin
798
792
Path := ExtractFileDrive(WizardForm.DirEdit.Text);
799
793
GetSpaceOnDisk(Path, True, FreeMB, TotalMB);
800
- lblDiskSizeNeeded.Caption := ExpandConstant('{cm:FreeSpace1}') + ' ' + MbOrTb({#Game_NeedSize })+ ' ' + ExpandConstant('{cm:FreeSpace2}');
801
- if not (FreeMB > {#Game_NeedSize }) then begin
794
+ lblDiskSizeNeeded.Caption := ExpandConstant(' {cm:FreeSpace1}' ) + ' ' + MbOrTb({ #GameNeedSize } )+ ' ' + ExpandConstant(' {cm:FreeSpace2}' );
795
+ if not (FreeMB > { #GameNeedSize } ) then begin
802
796
lblDiskSizeNeeded.Font.Color := $1B1BE7; end
803
797
else begin
804
798
lblDiskSizeNeeded.Font.Color := $E6E0E1;
@@ -928,8 +922,6 @@ Type: filesandordirs; Name: {app}
928
922
end ;
929
923
930
924
function UnnIn : Boolean;
931
- var
932
- Unused: Integer;
933
925
begin
934
926
if ((chbNoUninstaller.Checked) and (ISDoneCancel <> 1 )) then
935
927
Result := False
@@ -1088,7 +1080,7 @@ Type: filesandordirs; Name: {app}
1088
1080
end ;
1089
1081
end ;
1090
1082
1091
- procedure ImgButton1OnClick (Sender: TObject);
1083
+ procedure ImgButtonOnClick (Sender: TObject);
1092
1084
begin
1093
1085
if not (BASS_ChannelIsActive(mp3HNDL) = BASS_ACTIVE_PAUSED) then begin
1094
1086
BASS_ChannelPause(mp3HNDL);
@@ -1125,7 +1117,7 @@ Type: filesandordirs; Name: {app}
1125
1117
bmpPauseButton.OnMouseLeave := @ImgButtonOnMouseLeave;
1126
1118
bmpPauseButton.OnMouseDown := @ImgButtonOnMouseDown;
1127
1119
bmpPauseButton.OnMouseUp := @ImgButtonOnMouseUp;
1128
- bmpPauseButton.OnClick := @ImgButton1OnClick ;
1120
+ bmpPauseButton.OnClick := @ImgButtonOnClick ;
1129
1121
bmpPlayButton := TBitmapImage.Create(WizardForm);
1130
1122
bmpPlayButton.Parent := WizardForm;
1131
1123
bmpPlayButton.ReplaceColor := clBlack;
@@ -1192,7 +1184,7 @@ Type: filesandordirs; Name: {app}
1192
1184
TaskBarButtonIcon(hMusic, TBIcon[3 ].Handle);
1193
1185
end ;
1194
1186
1195
- procedure DubleOnClick (Sender: TObject);
1187
+ procedure DoubleOnClick (Sender: TObject);
1196
1188
begin
1197
1189
case Sender of
1198
1190
btnLeftButton: WizardForm.CancelButton.OnClick(WizardForm.CancelButton);
@@ -1516,13 +1508,13 @@ Type: filesandordirs; Name: {app}
1516
1508
WizardForm.Position := poScreenCenter;
1517
1509
WizardForm.WizardBitmapImage.Parent := WizardForm;
1518
1510
WizardForm.WizardBitmapImage.SetBounds(WizardForm.ClientWidth / 2 - ScaleX(225 ), ScaleY(0 ), ScaleX(450 ), ScaleY(65 ));
1519
- bvlInstallForm := TBevel.Create(WizardForm);
1520
- bvlInstallForm .SetBounds(ScaleX(10), ScaleY(60), WizardForm.ClientWidth - ScaleX(20), ScaleY(180));
1521
- bvlInstallForm .Shape := bsBox;
1522
- bvlInstallForm .Style := bsRaised;
1523
- bvlInstallForm .Parent := WizardForm;
1511
+ bvlDirectories := TBevel.Create(WizardForm);
1512
+ bvlDirectories .SetBounds(ScaleX(10 ), ScaleY(60 ), WizardForm.ClientWidth - ScaleX(20 ), ScaleY(180 ));
1513
+ bvlDirectories .Shape := bsBox;
1514
+ bvlDirectories .Style := bsRaised;
1515
+ bvlDirectories .Parent := WizardForm;
1524
1516
bvlDirInstall := TBevel.Create(WizardForm);
1525
- bvlDirInstall.SetBounds(bvlInstallForm .Left + ScaleX(10), bvlInstallForm .Top + ScaleY(10), bvlInstallForm .Width - ScaleX(20), ScaleY(75));
1517
+ bvlDirInstall.SetBounds(bvlDirectories .Left + ScaleX(10 ), bvlDirectories .Top + ScaleY(10 ), bvlDirectories .Width - ScaleX(20 ), ScaleY(75 ));
1526
1518
bvlDirInstall.Shape := bsBox;
1527
1519
bvlDirInstall.Style := bsLowered;
1528
1520
bvlDirInstall.Parent := WizardForm;
@@ -1531,13 +1523,13 @@ Type: filesandordirs; Name: {app}
1531
1523
bvlIconGroup.Shape := bsBox;
1532
1524
bvlIconGroup.Style := bsLowered;
1533
1525
bvlIconGroup.Parent := WizardForm;
1534
- bvlOptionsForm := TBevel.Create(WizardForm);
1535
- bvlOptionsForm .SetBounds(bvlInstallForm .Left, bvlInstallForm .Top + bvlInstallForm .Height + ScaleY(10), bvlInstallForm .Width, bvlDirInstall.Height - ScaleY(7));
1536
- bvlOptionsForm .Shape := bsBox;
1537
- bvlOptionsForm .Style := bsLowered;
1538
- bvlOptionsForm .Parent := WizardForm;
1526
+ bvlOptions := TBevel.Create(WizardForm);
1527
+ bvlOptions .SetBounds(bvlDirectories .Left, bvlDirectories .Top + bvlDirectories .Height + ScaleY(10 ), bvlDirectories .Width, bvlDirInstall.Height - ScaleY(7 ));
1528
+ bvlOptions .Shape := bsBox;
1529
+ bvlOptions .Style := bsLowered;
1530
+ bvlOptions .Parent := WizardForm;
1539
1531
bvlInstallOptions := TBevel.Create(WizardForm);
1540
- bvlInstallOptions.SetBounds(bvlOptionsForm .Left + ScaleX(10), bvlOptionsForm .Top + ScaleY(10), bvlOptionsForm .Width - ScaleX(20), bvlOptionsForm .Height - ScaleY(20));
1532
+ bvlInstallOptions.SetBounds(bvlOptions .Left + ScaleX(10 ), bvlOptions .Top + ScaleY(10 ), bvlOptions .Width - ScaleX(20 ), bvlOptions .Height - ScaleY(20 ));
1541
1533
bvlInstallOptions.Shape := bsBox;
1542
1534
bvlInstallOptions.Style := bsLowered;
1543
1535
bvlInstallOptions.Parent := WizardForm;
@@ -1687,25 +1679,25 @@ Type: filesandordirs; Name: {app}
1687
1679
lblCopyCrack.OnMouseLeave := @LabelCrackOnMouseLeave;
1688
1680
lblCopyCrack.OnClick := @LabelCrackOnClick;
1689
1681
if IsCrackTheres then begin
1690
- bvlOptionsForm .Height := WizardForm.ClientHeight - bvlInstallOptions.Top - chbCopyCrack.Top + chbCopyCrack.Height + ScaleY(55);
1691
- bvlInstallOptions.Height := bvlOptionsForm .Height - ScaleY(20);
1682
+ bvlOptions .Height := WizardForm.ClientHeight - bvlInstallOptions.Top - chbCopyCrack.Top + chbCopyCrack.Height + ScaleY(55 );
1683
+ bvlInstallOptions.Height := bvlOptions .Height - ScaleY(20 );
1692
1684
end
1693
1685
else begin
1694
1686
chbCopyCrack.Hide;
1695
1687
lblCopyCrack.Hide;
1696
1688
end ;
1697
- bvlButtonForm := TBevel.Create(WizardForm);
1698
- bvlButtonForm .SetBounds(bvlInstallForm .Left, bvlOptionsForm .Top + bvlOptionsForm .Height + ScaleY(10), bvlInstallForm .Width, ScaleY(50));
1699
- bvlButtonForm .Shape := bsBox;
1700
- bvlButtonForm .Style := bsLowered;
1701
- bvlButtonForm .Parent := WizardForm;
1689
+ bvlButtons := TBevel.Create(WizardForm);
1690
+ bvlButtons .SetBounds(bvlDirectories .Left, bvlOptions .Top + bvlOptions .Height + ScaleY(10 ), bvlDirectories .Width, ScaleY(50 ));
1691
+ bvlButtons .Shape := bsBox;
1692
+ bvlButtons .Style := bsLowered;
1693
+ bvlButtons .Parent := WizardForm;
1702
1694
bvlLeftButton := TBevel.Create(WizardForm);
1703
- bvlLeftButton.SetBounds(bvlButtonForm .Left + ScaleX(5), bvlButtonForm .Top + ScaleY(5), bvlButtonForm .Width / 2 - ScaleX(8), bvlButtonForm .Height - ScaleY(10));
1695
+ bvlLeftButton.SetBounds(bvlButtons .Left + ScaleX(5 ), bvlButtons .Top + ScaleY(5 ), bvlButtons .Width / 2 - ScaleX(8 ), bvlButtons .Height - ScaleY(10 ));
1704
1696
bvlLeftButton.Shape := bsBox;
1705
1697
bvlLeftButton.Style := bsLowered;
1706
1698
bvlLeftButton.Parent := WizardForm;
1707
1699
bvlRightButton := TBevel.Create(WizardForm);
1708
- bvlRightButton.SetBounds(bvlLeftButton.Left + bvlLeftButton.Width + ScaleX(6), bvlButtonForm .Top + ScaleY(5), bvlButtonForm .Width / 2 - ScaleX(8), bvlButtonForm .Height - ScaleY(10));
1700
+ bvlRightButton.SetBounds(bvlLeftButton.Left + bvlLeftButton.Width + ScaleX(6 ), bvlButtons .Top + ScaleY(5 ), bvlButtons .Width / 2 - ScaleX(8 ), bvlButtons .Height - ScaleY(10 ));
1709
1701
bvlRightButton.Shape := bsBox;
1710
1702
bvlRightButton.Style := bsLowered;
1711
1703
bvlRightButton.Parent := WizardForm;
@@ -1720,7 +1712,7 @@ Type: filesandordirs; Name: {app}
1720
1712
btnLeftButton.Font.Name := WizardForm.DirEdit.Font.Name ;
1721
1713
btnLeftButton.Font.Size := 8 ;
1722
1714
btnLeftButton.Parent := WizardForm;
1723
- btnLeftButton.OnClick := @DubleOnClick ;
1715
+ btnLeftButton.OnClick := @DoubleOnClick ;
1724
1716
if IsThemeActive then begin
1725
1717
btnRightButton := TButton.Create(WizardForm); end
1726
1718
else begin
@@ -1730,9 +1722,9 @@ Type: filesandordirs; Name: {app}
1730
1722
btnRightButton.Font.Name := WizardForm.DirEdit.Font.Name ;
1731
1723
btnRightButton.Font.Size := 8 ;
1732
1724
btnRightButton.Parent := WizardForm;
1733
- btnRightButton.OnClick := @DubleOnClick ;
1725
+ btnRightButton.OnClick := @DoubleOnClick ;
1734
1726
bvlProgressForm := TBevel.Create(WizardForm);
1735
- bvlProgressForm.SetBounds(bvlInstallForm .Left, bvlButtonForm .Top + bvlButtonForm .Height + ScaleY(10), bvlInstallForm .Width, WizardForm.ClientHeight - bvlButtonForm .Top - bvlButtonForm .Height - ScaleY(20));
1727
+ bvlProgressForm.SetBounds(bvlDirectories .Left, bvlButtons .Top + bvlButtons .Height + ScaleY(10 ), bvlDirectories .Width, WizardForm.ClientHeight - bvlButtons .Top - bvlButtons .Height - ScaleY(20 ));
1736
1728
bvlProgressForm.Shape := bsBox;
1737
1729
bvlProgressForm.Style := bsLowered;
1738
1730
bvlProgressForm.Parent := WizardForm;
@@ -1870,11 +1862,8 @@ Type: filesandordirs; Name: {app}
1870
1862
1871
1863
procedure CurStepChanged (CurStep: TSetupStep);
1872
1864
var
1873
- unused1, unused2: Integer;
1874
- Comps1, Comps2, Comps3, TmpValue: Cardinal;
1875
- FindHandle1, ColFiles1, CurIndex1, tmp: Integer;
1876
- ExecError, ISFailed: Boolean;
1877
- InFilePath, OutFilePath, OutFileName: PAnsiChar;
1865
+ Comps1, Comps2, Comps3: Cardinal;
1866
+ ExecError: Boolean;
1878
1867
ArcFileIndex, ArcFileCount: Integer;
1879
1868
ArcFileName: String;
1880
1869
begin
@@ -1884,7 +1873,7 @@ Type: filesandordirs; Name: {app}
1884
1873
ExtractTemporaryFile(' unarc.dll' );
1885
1874
ISPaused := False;
1886
1875
ISDoneError := True;
1887
- ISFailed := False;
1876
+ ExecError := False;
1888
1877
ArcFileIndex := 1 ;
1889
1878
ArcFileCount := 0 ;
1890
1879
while True do begin
@@ -1906,12 +1895,12 @@ Type: filesandordirs; Name: {app}
1906
1895
while ArcFileIndex <= ArcFileCount do begin
1907
1896
ArcFileName := ExpandConstant(' {src}\setup-' + IntToStr(ArcFileIndex) + ' .bin' );
1908
1897
if not ISArcExtract(0 , 100 / ArcFileCount, FileSearch(ArcFileName), ExpandConstant(' {app}' ), ' ' , False, ' ' , ' ' , ExpandConstant(' {app}' ), False) then begin
1909
- ISFailed := True;
1898
+ ExecError := True;
1910
1899
Break;
1911
1900
end ;
1912
1901
Inc(ArcFileIndex);
1913
1902
end ;
1914
- if ISFailed then begin
1903
+ if ExecError then begin
1915
1904
Break;
1916
1905
end ;
1917
1906
ISDoneError := False;
@@ -1946,7 +1935,7 @@ Type: filesandordirs; Name: {app}
1946
1935
memProgressLog.Lines.Add(SetupMessage(msgStatusRunProgram));
1947
1936
if (CurStep = ssPostInstall) and (chbCopyCrack.Checked) and not ISDoneError then begin
1948
1937
hMutex := CreateMutexA(0 , 1 , ' WSjuQKBxmd_mut' );
1949
- if IsXCOPY(ExpandConstant('{#Game_CrackDir }'), ExpandConstant('{app} '), 'WpAYr2duAuquv8OF') then
1938
+ if IsXCOPY(ExpandConstant(' {#GameCrackDir }' ), ExpandConstant(' {app}' ), ' WpAYr2duAuquv8OF' ) then
1950
1939
CrackInstalled := True
1951
1940
else
1952
1941
MsgBox(ExpandConstant(' {cm:ErrCopy}' ), mbConfirmation, MB_OK);
@@ -1955,8 +1944,6 @@ Type: filesandordirs; Name: {app}
1955
1944
end ;
1956
1945
1957
1946
procedure DeinitializeSetup ;
1958
- var
1959
- unused: LongInt;
1960
1947
begin
1961
1948
if bInitDone then begin
1962
1949
ShowWindow(WizardForm.Handle, SW_HIDE);
0 commit comments