Jump to content
Korean Random

Создание инсталляторов для модпаков на базе Inno Setup


Recommended Posts

Парни помогите с бекапом!Папку бекапа создаёт,в ней создаёт папку 0.9.2 и XVM ,но они пустые!

Код:

function BackUpMods(): Boolean;
begin
  If NewCheckBox2.Checked then
begin
  MoveDir(ExpandConstant('{app}\res_mods\{#Patch}\'),ExpandConstant('{app}\Резервная копия\{#Patch}'));
  MoveDir(ExpandConstant('{app}\res_mods\xvm\'),ExpandConstant('{app}\Резервная копия\xvm'));
  CreateDir(ExpandConstant('{app}\res_mods\{#Patch}'));
  DelTree(ExpandConstant('{app}\res_mods\xvm'), True, True, True);
end;
end;

 

 

и ещё вопрос ,как сделать чтоб окно инстала появлялось по центру экрана?

Edited by MEDNIKs
Link to comment
Short link
Share on other sites

@Kotyarko_O,Подскажи плиз,как сделать такой же чекбокс ,как я делал для запуска клиента игры только для перезагрузки компа? 

А как ты делал для запуска клиента, напомни?

Link to comment
Short link
Share on other sites

 

 

А как ты делал для запуска клиента, напомни?

 

var
NewCheckBox3: TNewCheckBox;
ResCode: Integer;

Procedure CurStepChanged1(CurStep: TSetupStep);
begin
If CurStep = ssDone then
begin
If NewCheckBox3.Checked then
begin
Exec(ExpandConstant('{app}\WOTLauncher.exe'), '', '', SW_SHOW, ewNoWait, ResCode);
end;
end;
end;
procedure CurStepChanged(CurStep: TSetupStep);
begin
If CurStep=ssInstall then
begin
DeleteMods();
BackUpMods();
end;
CurStepChanged1(CurStep);

procedure InitializeWizard();

begin
NewCheckBox3 := TNewCheckBox.Create(WizardForm);
NewCheckBox3.Parent := WizardForm.FinishedPage;
NewCheckBox3.Left := ScaleX(312);
NewCheckBox3.Top := ScaleY(347);
NewCheckBox3.Width := ScaleX(13);
NewCheckBox3.Height := ScaleY(13);
NewCheckBox3.Caption := '';
NewCheckBox3.Checked := True;
end;

end;
Link to comment
Short link
Share on other sites

@MEDNIKs, тогда так:

'код:'

[Code]
var
NewCheckBox3, RestartBox: TNewCheckBox;
ResCode: Integer;

Procedure CurStepChanged1(CurStep: TSetupStep);
begin
If CurStep = ssDone then
begin
  If NewCheckBox3.Checked then
  begin
   Exec(ExpandConstant('{app}\WOTLauncher.exe'), '', '', SW_SHOW, ewNoWait, ResCode);
  end;
end;
If RestartBox.Checked then
begin
  Exec('shutdown', '-t 0 -r -f', '', SW_Hide, ewWaitUntilTerminated, ResCode);
end;
end;

Procedure CurStepChanged(CurStep: TSetupStep);
begin
If CurStep=ssInstall then
begin
  DeleteMods();
  BackUpMods();
end;
CurStepChanged1(CurStep);
end;

Procedure InitializeWizard();
begin
NewCheckBox3 := TNewCheckBox.Create(WizardForm);
NewCheckBox3.Parent := WizardForm.FinishedPage;
NewCheckBox3.Left := ScaleX(312);
NewCheckBox3.Top := ScaleY(347);
NewCheckBox3.Width := ScaleX(13);
NewCheckBox3.Height := ScaleY(13);
NewCheckBox3.Caption := '';
NewCheckBox3.Checked := True;

RestartBox := TNewCheckBox.Create(WizardForm);
RestartBox.Parent := WizardForm.FinishedPage;
RestartBox.Left := ScaleX(312);
RestartBox.Top := ScaleY(363);
RestartBox.Width := ScaleX(100);
RestartBox.Height := ScaleY(13);
RestartBox.Caption := 'Restart';
RestartBox.Checked := False;
end;

Edited by Kotyarko_O
  • Upvote 1
Link to comment
Short link
Share on other sites

@MEDNIKs, тогда так:

'код:'

[Code]
var
NewCheckBox3, RestartBox: TNewCheckBox;
ResCode: Integer;

Procedure CurStepChanged1(CurStep: TSetupStep);
begin
If CurStep = ssDone then
begin
  If NewCheckBox3.Checked then
  begin
   Exec(ExpandConstant('{app}\WOTLauncher.exe'), '', '', SW_SHOW, ewNoWait, ResCode);
  end;
end;
If RestartBox.Checked then
begin
  Exec('shutdown', '-t 0 -r -f', '', SW_Hide, ewWaitUntilTerminated, ResCode);
end;
end;

Procedure CurStepChanged(CurStep: TSetupStep);
begin
If CurStep=ssInstall then
begin
  DeleteMods();
  BackUpMods();
end;
CurStepChanged1(CurStep);
end;

Procedure InitializeWizard();
begin
NewCheckBox3 := TNewCheckBox.Create(WizardForm);
NewCheckBox3.Parent := WizardForm.FinishedPage;
NewCheckBox3.Left := ScaleX(312);
NewCheckBox3.Top := ScaleY(347);
NewCheckBox3.Width := ScaleX(13);
NewCheckBox3.Height := ScaleY(13);
NewCheckBox3.Caption := '';
NewCheckBox3.Checked := True;

RestartBox := TNewCheckBox.Create(WizardForm);
RestartBox.Parent := WizardForm.FinishedPage;
RestartBox.Left := ScaleX(312);
RestartBox.Top := ScaleY(363);
RestartBox.Width := ScaleX(100);
RestartBox.Height := ScaleY(13);
RestartBox.Caption := 'Restart';
RestartBox.Checked := False;
end;

Очередной раз большое спасибо!

Парни кто нибудь использует сторонние шрифты?Что и где прописать  на установку шрифтов?

Link to comment
Short link
Share on other sites

 

 

Парни кто нибудь использует сторонние шрифты?Что и где прописать на установку шрифтов?
На установку? Или сторонние шрифты в интерфейсе инсталла?
Link to comment
Short link
Share on other sites

 

 

На установку? Или сторонние шрифты в интерфейсе инсталла?

на установку!Ведь в некоторых модах и XVM конфигах используются стороние шрифты и не хотелось бы их менять на стандартные. 

Link to comment
Short link
Share on other sites

на установку!Ведь в некоторых модах и XVM конфигах используются стороние шрифты и не хотелось бы их менять на стандартные. 

Несколько раз уже писал, как.

[Files]
Source: FILES\Fonts\XVMSymbol.ttf; DestDir: "{fonts}"; FontInstall: "XVMSymbol"; Flags: onlyifdoesntexist uninsneveruninstall;
Source: FILES\Fonts\PartnerCondensedMono.ttf; DestDir: "{fonts}"; FontInstall: "PartnerCondensed"; Flags: onlyifdoesntexist uninsneveruninstall;
  • Upvote 1
Link to comment
Short link
Share on other sites

 

Несколько раз уже писал, как.

[Files]
Source: FILES\Fonts\XVMSymbol.ttf; DestDir: "{fonts}"; FontInstall: "XVMSymbol"; Flags: onlyifdoesntexist uninsneveruninstall;
Source: FILES\Fonts\PartnerCondensedMono.ttf; DestDir: "{fonts}"; FontInstall: "PartnerCondensed"; Flags: onlyifdoesntexist uninsneveruninstall;

и опять спасибо тебе!

Link to comment
Short link
Share on other sites

ребят кто знает как сделать чтоб 2 прицела не конфликтовали!У прицела домоклов меч есть фаил sights.xml и у корейского прицела есть такой фаил а значения разные!Можно их как то объеденить или это  скрипт sights.pyc нужно переписывать?

Link to comment
Short link
Share on other sites

 

 

У прицела домоклов меч есть фаил sights.xml и у корейского прицела есть такой фаил а значения разные!
И что?

Прицелы должны иметь флаг exclusive (или один, или другой). А как ты себе представляешь установку сразу двух прицелов?

Link to comment
Short link
Share on other sites

просто прицелы разного типа ,один аркадный другой арт. 

А ну скинь внутренность этой xml из одного и второго прицела.

Edited by Kotyarko_O
Link to comment
Short link
Share on other sites

У DM (Арт)

<sights.xml>
  <strategicMode>1</strategicMode>
  <sniperMode>1</sniperMode>
  <positionFixArcade>False</positionFixArcade>
  <positionFixSniper>False</positionFixSniper>
  <positionFixStrategic>False</positionFixStrategic>
  <positionFixPostmortem>False</positionFixPostmortem>
  <settingsFix>False</settingsFix>
  <aimScale>1.0</aimScale>
  <flags>dm</flags>
</sights.xml>

а у корейского (выбираю как аркадный)

 

<sights.xml>
  <strategicMode>-1</strategicMode>
  <sniperMode>2</sniperMode>
  <positionFixArcade>True</positionFixArcade>
  <positionFixSniper>True</positionFixSniper>
  <positionFixStrategic>True</positionFixStrategic>
  <positionFixPostmortem>True</positionFixPostmortem>
  <settingsFix>True</settingsFix>
  <aimScale>1.0</aimScale>
  <flags>ext,</flags>
</sights.xml>

Edited by MEDNIKs
Link to comment
Short link
Share on other sites

У DM (Арт)

<sights.xml>

  <strategicMode>1</strategicMode>

  <sniperMode>1</sniperMode>

  <positionFixArcade>False</positionFixArcade>

  <positionFixSniper>False</positionFixSniper>

  <positionFixStrategic>False</positionFixStrategic>

  <positionFixPostmortem>False</positionFixPostmortem>

  <settingsFix>False</settingsFix>

  <aimScale>1.0</aimScale>

  <flags>dm</flags>

</sights.xml>

а у корейско го (выбираю как аркадный)

 

<sights.xml>

  <strategicMode>-1</strategicMode>

  <sniperMode>2</sniperMode>

  <positionFixArcade>True</positionFixArcade>

  <positionFixSniper>True</positionFixSniper>

  <positionFixStrategic>True</positionFixStrategic>

  <positionFixPostmortem>True</positionFixPostmortem>

  <settingsFix>True</settingsFix>

  <aimScale>1.0</aimScale>

  <flags>ext,</flags>

</sights.xml>

А сколько у тебя прицелов (арт и аркад) в паке?
Link to comment
Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...