[Setup]
AppName=Painkiller Hell & Damnation
AppVersion=1.5
DefaultDirName={pf}\Painkiller Hell & Damnation
[Code]
var
Language: TNewComboBox;
s0,s1,s2: String;
LanguageLabel: TLabel;
procedure InitializeWizard();
begin
Language := TNewComboBox.Create(WizardForm);
with Language do
begin
Parent := WizardForm.SelectDirPage;
Left := ScaleX(120);
Top := ScaleY(120);
Width := ScaleX(145);
Height := ScaleY(21);
Items.Add('japanese');
Items.Add('polish');
Items.Add('hungarian');
Items.Add('czech');
Items.Add('brazilian');
Items.Add('german');
Items.Add('spanish');
Items.Add('italian');
Items.Add('french');
Items.Add('english');
Items.Add('russian');
ItemIndex := 0;
end;
LanguageLabel := TLabel.Create(WizardForm);
with LanguageLabel do
begin
Parent := WizardForm.SelectDirPage;
Caption := 'Selet game language:';
Left := ScaleX(0);
Top := ScaleY(120);
Width := ScaleX(112);
Height := ScaleY(13);
end;
end;
procedure CurStepChanged(CurStep: TSetupStep);
begin
s0:= + '=';
s1:= + '[Game]' + #13#10 + 'AppId = 214870' + #13#10 + 'Language' + s0 +(Language.Text) + #13#10 + #13#10 + '[Settings]' + #13#10 + 'PlayerName =Origins' + #13#10 + #13#10 + '[Subscriptions]' + #13#10 + 'Default = true' + #13#10 + #13#10 + '[DLC]' + #13#10;
s2:= + '1 = 219130' + #13#10 + '2 = 219131' + #13#10 + '3 = 219133' + #13#10 + '4 = 219135' + #13#10 + '5 = 219136' + #13#10 + '6 = 229190' + #13#10 + '7 = 229210' + #13#10 + '8 = 229230' + #13#10 + '9 = 229250' + #13#10 + '10 = 229270' + #13#10 + '11 = 229290' + #13#10 + '12 = 229310' + #13#10 + '13 = 230010' + #13#10;
CreateDir(ExpandConstant('{app}\')+'Binaries\'); //Создаем папки
CreateDir(ExpandConstant('{app}\')+'Binaries\'+'win32\'); //по очереди, по одной
case CurStep of
ssPostInstall: SaveStringToFile(ExpandConstant('{app}\Binaries\win32\SKIDROW.ini'), s1+s2, False);
end;
end;
[Setup]
AppName=My Application
AppVersion=1.5
DefaultDirName={pf}\My Application
[Types]
Name: full; Description: Full installation; Flags: iscustom
[Components]
Name: text; Description: Язык субтитров; Types: full; Flags: fixed
Name: text\rus; Description: Русский; Flags: exclusive;
Name: text\eng; Description: Английский; Flags: exclusive;
[Ini]
Filename: "{app}\Binaries\Win32\SKIDROW.ini"; Section: "Game"; Key: "Language"; String: "russian"; Components: text\rus;
Filename: "{app}\Binaries\Win32\SKIDROW.ini"; Section: "Game"; Key: "Language"; String: "english"; Components: text\eng;
[Game]
AppId = 214870
Language=russian
[Settings]
PlayerName =Origins
[Subscriptions]
Default = true
[DLC]
1 = 219130
2 = 219131
3 = 219133
4 = 219135
5 = 219136
6 = 229190
7 = 229210
8 = 229230
9 = 229250
10 = 229270
11 = 229290
12 = 229310
13 = 230010
Items.Add('japanese');
Items.Add('polish');
Items.Add('hungarian');
Items.Add('czech');
Items.Add('brazilian');
Items.Add('german');
Items.Add('spanish');
Items.Add('italian');
Items.Add('french');
Items.Add('english');
Items.Add('russian');
[Setup]
AppName=My Application
AppVersion=1.5
DefaultDirName={pf}\My Application
[Files]
Source: PKHDGame\Localization\RUS\*; DestDir: {app}\PKHDGame\Localization\RUS; Flags: ignoreversion recursesubdirs createallsubdirs; Components: text\rus
Source: PKHDGame\Localization\INT\*; DestDir: {app}\PKHDGame\Localization\INT; Flags: ignoreversion recursesubdirs createallsubdirs; Components: text\eng
[Types]
Name: full; Description: Full installation; Flags: iscustom
[Components]
Name: text; Description: Язык субтитров; Types: full; Flags: fixed
Name: text\rus; Description: Русский; Flags: exclusive
Name: text\eng; Description: Английский; Flags: exclusive
Name: voice; Description: Язык озвучки; Types: full; Flags: fixed
Name: voice\rus; Description: Русский; Flags: exclusive
Name: voice\eng; Description: Английский; Flags: exclusive
[INI]
Filename: {app}\Binaries\Win32\SKIDROW.ini; Section: Game; Key: Language; String: russian; Components: text\rus
Filename: {app}\Binaries\Win32\SKIDROW.ini; Section: Game; Key: Language; String: english; Components: text\eng
Filename: {app}\Binaries\Win32\SKIDROW.ini; Section: Game; Key: Language; String: russian; Components: voice\rus
Filename: {app}\Binaries\Win32\SKIDROW.ini; Section: Game; Key: Language; String: english; Components: voice\eng