Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #586  
Old 13-02-2019, 11:27
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
It's not a bug, I just forgot something Will post a fix asap
__________________
Haters gonna hate
Reply With Quote
Sponsored Links
  #587  
Old 13-02-2019, 13:16
LilKil LilKil is offline
Registered User
 
Join Date: Jul 2018
Location: Genf
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
LilKil is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
It's not a bug, I just forgot something Will post a fix asap
Cool, thank you! Also, is there a way to force the Setup to use the english language only instead of letting the user choose his own?

And I couldn't manage to change the .exe icon even by changing the "Setup.ico", it only changes the icon within the setup, no idea if you already noticed it.

Thank you for your great work!
Reply With Quote
  #588  
Old 13-02-2019, 13:43
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
No, but you can change ShowLanguageBox=0 (installer starts in OS language then. If Installer doesn't support OS language, english will be used as default).

Move Setup.exe to somewhere else. It's a windows problem for not updating icons properly.
__________________
Haters gonna hate
Reply With Quote
  #589  
Old 13-02-2019, 14:18
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 7,209
Thanks: 3,040
Thanked 9,043 Times in 3,086 Posts
pakrat2k2 is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
It's not a bug, I just forgot something Will post a fix asap
I used 712 beta6(2) & compiled perfectly fine.. maybe he's using wrong version of inno ?
Reply With Quote
The Following User Says Thank You to pakrat2k2 For This Useful Post:
Titeuf (13-02-2019)
  #590  
Old 14-02-2019, 03:51
Schabik Schabik is offline
Registered User
 
Join Date: Dec 2008
Location: Somewhere in Poland
Posts: 152
Thanks: 17
Thanked 35 Times in 32 Posts
Schabik is on a distinguished road
KaktoR,


I have a suggestion about components page,


Instead of checkboxes can You use RadioButtons?


Or some "if" statements so if one checkbox is checked then other isn't It will block the installation of many languages at once.
Attached Images
File Type: png 2019-02-14_12h27_22.png (62.4 KB, 152 views)
Reply With Quote
  #591  
Old 14-02-2019, 05:56
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 7,209
Thanks: 3,040
Thanked 9,043 Times in 3,086 Posts
pakrat2k2 is on a distinguished road
@ Schabik

The issue with that is if someone wants 2 or more languages ( say english & Brazil Portuguese ) then that choice would not be available, or many others as well.
Reply With Quote
  #592  
Old 14-02-2019, 06:04
Schabik Schabik is offline
Registered User
 
Join Date: Dec 2008
Location: Somewhere in Poland
Posts: 152
Thanks: 17
Thanked 35 Times in 32 Posts
Schabik is on a distinguished road
Quote:
Originally Posted by pakrat2k2 View Post
@ Schabik

The issue with that is if someone wants 2 or more languages ( say english & Brazil Portuguese ) then that choice would not be available, or many others as well.

I think that the best solution is to get both.
If you want to use many lang files than an option for that, to enable it, if you want to use one lang at the time second option to that to enable. You know what I mean?

For some games like AC1 there can't be more than one language at the time, for polish there are files that are patched so the Polish lang can work.
Reply With Quote
  #593  
Old 14-02-2019, 07:31
LilKil LilKil is offline
Registered User
 
Join Date: Jul 2018
Location: Genf
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
LilKil is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
No, but you can change ShowLanguageBox=0 (installer starts in OS language then. If Installer doesn't support OS language, english will be used as default).

Move Setup.exe to somewhere else. It's a windows problem for not updating icons properly.
Thank you for the clarification!

Quote:
Originally Posted by pakrat2k2 View Post
I used 712 beta6(2) & compiled perfectly fine.. maybe he's using wrong version of inno ?
I use the latest unicode version available, do I need to use another version?
Reply With Quote
  #594  
Old 14-02-2019, 15:43
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
^
Open "Components.iss" and replace with this (replace all in this file)

Code:
[Components]
#if UseComponents == "1"
  Name: "main"; Description: "Main Files"; Types: full compact custom; Flags: fixed
  Name: "englisharch"; Description: {cm:CompEnglish}; Types: full
  Name: "frencharch"; Description: {cm:CompFrench}; Types: full
  Name: "germanarch"; Description: {cm:CompGerman}; Types: full
  Name: "italianarch"; Description: {cm:CompItalian}; Types: full
  Name: "spanisharch"; Description: {cm:CompSpanish}; Types: full
  Name: "polisharch"; Description: {cm:CompPolish}; Types: full
  Name: "russianarch"; Description: {cm:CompRussian}; Types: full
  Name: "portuguesebrazilarch"; Description: {cm:CompPortugueseBrazil}; Types: full
#endif
__________________
Haters gonna hate
Reply With Quote
  #595  
Old 16-02-2019, 02:33
Titeuf's Avatar
Titeuf Titeuf is offline
Registered User
 
Join Date: Oct 2016
Location: France
Posts: 191
Thanks: 614
Thanked 22 Times in 19 Posts
Titeuf is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
New one for components (first test)

Code:
beta 6(2)

- Added components
  > With this you can unpack language archives
  > Set them in Settings.ini
  > You don't need to add them to Records.ini
With included archives it works well. I haven't tested it with any compression or more data but it should work anyways.
Hello KaktoR,
I'm going to do a test with the language files, and I want to put the language files in a subdirectory, can you tell me what are the changes to make for this work please?
thanks in advance

Edit: After compilation I have these messages that appears in Inno (look at me picture).
Thank you
Attached Images
File Type: jpg componenterror.jpg (105.1 KB, 126 views)

Last edited by Titeuf; 16-02-2019 at 03:07.
Reply With Quote
  #596  
Old 16-02-2019, 10:21
Schabik Schabik is offline
Registered User
 
Join Date: Dec 2008
Location: Somewhere in Poland
Posts: 152
Thanks: 17
Thanked 35 Times in 32 Posts
Schabik is on a distinguished road
Quote:
Originally Posted by Titeuf View Post
Hello KaktoR,
I'm going to do a test with the language files, and I want to put the language files in a subdirectory, can you tell me what are the changes to make for this work please?
thanks in advance

Edit: After compilation I have these messages that appears in Inno (look at me picture).
Thank you
Why bother? If the game don't have hebrew so it won't be nessesary.

Checked for compression afr+srepmax+lolz for lang files and it runs smoothly.
Reply With Quote
The Following User Says Thank You to Schabik For This Useful Post:
Titeuf (16-02-2019)
  #597  
Old 16-02-2019, 11:11
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
@Titeuf: Ingnore this messages. I didn't translate Hebrew, and probably didn't do it anymore (because it's like arabic, it reads from right to left and installer is mirrored this way. I didn't test installer yet with hebrew language, if all buttons/text/etc are on the right place. Maybe I will deactivate it in future releases).

Will work on the script in the next weeks again (spare time at the moment).
__________________
Haters gonna hate

Last edited by KaktoR; 16-02-2019 at 11:25.
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
Schabik (16-02-2019), Titeuf (16-02-2019)
  #598  
Old 16-02-2019, 11:20
Titeuf's Avatar
Titeuf Titeuf is offline
Registered User
 
Join Date: Oct 2016
Location: France
Posts: 191
Thanks: 614
Thanked 22 Times in 19 Posts
Titeuf is on a distinguished road
hello KaktoR,
ok thank you for your answer!
I thought I made a mistake
cordially
Reply With Quote
  #599  
Old 22-02-2019, 03:50
Schabik Schabik is offline
Registered User
 
Join Date: Dec 2008
Location: Somewhere in Poland
Posts: 152
Thanks: 17
Thanked 35 Times in 32 Posts
Schabik is on a distinguished road
Hey there guys,

I did a little research for setting components not as checkboxes but as Radiobuttons, and I've managed to achieve the goal

If someone want to integrate the code with ASIS please, be my guest
The modifications were tested by me and work for example with Assassins Creed 1 MultiLang (With Czech,Polish,English,French,Italian,German and Spanish).

The Modifications I presented are as Follows:

Code for Components.iss

Code:
[Components]
#if RadioInsteadCheckbox == "1"
Name: "main"; Description: {cm:MainFiles}; Types: full compact custom; Flags: fixed
Name: "Lang"; Description: {cm:GameLang}; Types: full compact custom; Flags: fixed
Name: "Lang\czecharch"; Description: {cm:CompCzech}; Types: custom; Flags: exclusive;
Name: "Lang\englisharch"; Description: {cm:CompEnglish}; Types: custom; Flags: exclusive;
Name: "Lang\frencharch"; Description: {cm:CompFrench}; Types: custom; Flags: exclusive
Name: "Lang\germanarch"; Description: {cm:CompGerman}; Types: custom; Flags: exclusive
Name: "Lang\italianarch"; Description: {cm:CompItalian}; Types: custom; Flags: exclusive
Name: "Lang\polisharch"; Description: {cm:CompPolish}; Types: custom; Flags: exclusive
Name: "Lang\spanisharch"; Description: {cm:CompSpanish}; Types: custom; Flags: exclusive
#endif
#if RadioInsteadCheckbox == "0"
Name: "main"; Description: {cm:MainFiles}; Types: full compact custom; Flags: fixed
Name: "Lang"; Description: {cm:GameLang}; Types: full compact custom; Flags: fixed
Name: "Lang\czecharch"; Description: {cm:CompCzech}; Types: custom;
Name: "Lang\englisharch"; Description: {cm:CompEnglish}; Types: custom
Name: "Lang\frencharch"; Description: {cm:CompFrench}; Types: custom
Name: "Lang\germanarch"; Description: {cm:CompGerman}; Types: custom
Name: "Lang\italianarch"; Description: {cm:CompItalian}; Types: custom
Name: "Lang\polisharch"; Description: {cm:CompPolish}; Types: custom
Name: "Lang\spanisharch"; Description: {cm:CompSpanish}; Types: custom
#endif
Code for Settings.iss (Component Section):

Code:
// Component
#define UseComponents ReadIni(SourcePath + "\Settings.ini", "Component", "Enable", "")
#define RadioInsteadCheckbox ReadIni(SourcePath + "\Settings.ini", "Component", "EnableRadiobutton", "")
#define EnglishArch ReadIni(SourcePath + "\Settings.ini", "Component", "EnglishArch", "")
#define FrenchArch ReadIni(SourcePath + "\Settings.ini", "Component", "FrenchArch", "")
#define GermanArch ReadIni(SourcePath + "\Settings.ini", "Component", "GermanArch", "")
#define ItalianArch ReadIni(SourcePath + "\Settings.ini", "Component", "ItalianArch", "")
#define SpanishArch ReadIni(SourcePath + "\Settings.ini", "Component", "SpanishArch", "")
#define PolishArch ReadIni(SourcePath + "\Settings.ini", "Component", "PolishArch", "")
#define CzechArch ReadIni(SourcePath + "\Settings.ini", "Component", "CzechArch", "")
Code for Settings.ini (also Component section):

Code:
[Component]
Enable=1
EnableRadiobutton=1
EnglishArch=
FrenchArch=
GermanArch=
ItalianArch=
SpanishArch=
PolishArch=
CzechArch=
In Registry.iss You can add something like this, if a language registry key is required, for tests I've added something like this:

Code:
[Registry]
Root: HKLM; Subkey: SOFTWARE\WOW6432Node\Ubisoft\Assassin's Creed; ValueType: string; ValueName: "Language"; ValueData: "Polish"; Flags: uninsdeletekey; Components: Lang\polisharch;
Root: HKLM; Subkey: SOFTWARE\WOW6432Node\Ubisoft\Assassin's Creed; ValueType: string; ValueName: "Language"; ValueData: "Czech"; Flags: uninsdeletekey; Components: Lang\czecharch;
Root: HKLM; Subkey: SOFTWARE\WOW6432Node\Ubisoft\Assassin's Creed; ValueType: string; ValueName: "Language"; ValueData: "English"; Flags: uninsdeletekey; Components: Lang\englisharch;
Root: HKLM; Subkey: SOFTWARE\WOW6432Node\Ubisoft\Assassin's Creed; ValueType: string; ValueName: "Language"; ValueData: "French"; Flags: uninsdeletekey; Components: Lang\frencharch;
Root: HKLM; Subkey: SOFTWARE\WOW6432Node\Ubisoft\Assassin's Creed; ValueType: string; ValueName: "Language"; ValueData: "German"; Flags: uninsdeletekey; Components: Lang\germanarch;
Root: HKLM; Subkey: SOFTWARE\WOW6432Node\Ubisoft\Assassin's Creed; ValueType: string; ValueName: "Language"; ValueData: "Italian"; Flags: uninsdeletekey; Components: Lang\italianarch;
Root: HKLM; Subkey: SOFTWARE\WOW6432Node\Ubisoft\Assassin's Creed; ValueType: string; ValueName: "Language"; ValueData: "Spanish"; Flags: uninsdeletekey; Components: Lang\spanisharch;
In main script in code for extracting the language components I had to make some adjustments.
I've made them as following:

Code:
#if UseComponents == "1"
  {Unpack selected components}
  if IsComponentSelected('Lang\englisharch') then
    if FileExists(GetIniString('Component', 'EnglishArch', '', ExpandConstant('{tmp}\Settings.ini'))) then
      if ISDoneError = False then
        ISArcExtract(0, 0, ExpandConstant('{src}\' + GetIniString('Component', 'EnglishArch', '', ExpandConstant('{tmp}\Settings.ini'))), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false);

  if IsComponentSelected('Lang\frencharch') then
    if FileExists(GetIniString('Component', 'FrenchArch', '', ExpandConstant('{tmp}\Settings.ini'))) then
      if ISDoneError = False then
        ISArcExtract(0, 0, ExpandConstant('{src}\' + GetIniString('Component', 'FrenchArch', '', ExpandConstant('{tmp}\Settings.ini'))), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false);

  if IsComponentSelected('Lang\germanarch') then
    if FileExists(GetIniString('Component', 'GermanArch', '', ExpandConstant('{tmp}\Settings.ini'))) then
      if ISDoneError = False then
        ISArcExtract(0, 0, ExpandConstant('{src}\' + GetIniString('Component', 'GermanArch', '', ExpandConstant('{tmp}\Settings.ini'))), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false);

  if IsComponentSelected('Lang\italianarch') then
    if FileExists(GetIniString('Component', 'ItalianArch', '', ExpandConstant('{tmp}\Settings.ini'))) then
      if ISDoneError = False then
        ISArcExtract(0, 0, ExpandConstant('{src}\' + GetIniString('Component', 'ItalianArch', '', ExpandConstant('{tmp}\Settings.ini'))), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false);

  if IsComponentSelected('Lang\spanisharch') then
    if FileExists(GetIniString('Component', 'SpanishArch', '', ExpandConstant('{tmp}\Settings.ini'))) then
      if ISDoneError = False then
        ISArcExtract(0, 0, ExpandConstant('{src}\' + GetIniString('Component', 'SpanishArch', '', ExpandConstant('{tmp}\Settings.ini'))), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false);

  if IsComponentSelected('Lang\polisharch') then
    if FileExists(GetIniString('Component', 'PolishArch', '', ExpandConstant('{tmp}\Settings.ini'))) then
      if ISDoneError = False then
        ISArcExtract(0, 0, ExpandConstant('{src}\' + GetIniString('Component', 'PolishArch', '', ExpandConstant('{tmp}\Settings.ini'))), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false);

  if IsComponentSelected('Lang\czecharch') then
    if FileExists(GetIniString('Component', 'CzechArch', '', ExpandConstant('{tmp}\Settings.ini'))) then
      if ISDoneError = False then
        ISArcExtract(0, 0, ExpandConstant('{src}\' + GetIniString('Component', 'CzechArch', '', ExpandConstant('{tmp}\Settings.ini'))), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false);
#endif
@KaktoR if You see and accept these changes I will be honored if You add them to the next beta

Last edited by Schabik; 22-02-2019 at 04:41.
Reply With Quote
The Following 2 Users Say Thank You to Schabik For This Useful Post:
pakrat2k2 (22-02-2019), Titeuf (22-02-2019)
  #600  
Old 22-02-2019, 04:45
Titeuf's Avatar
Titeuf Titeuf is offline
Registered User
 
Join Date: Oct 2016
Location: France
Posts: 191
Thanks: 614
Thanked 22 Times in 19 Posts
Titeuf is on a distinguished road
Hello Schabik,
maybe can you put pictures?
thank you in advance
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Help] need Advanced Installer script with Razor1911's UltraArc module rez3vil Conversion Tutorials 3 15-04-2024 02:24
Portable Installer Inno Setup Script y_thelastknight Conversion Tutorials 59 23-10-2020 00:02
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 02:05
Simple Arc Installer 78372 Conversion Tutorials 1 15-06-2017 15:37
MSC+Srep+lzma Simple Script Example gozarck Conversion Tutorials 10 07-09-2015 16:31



All times are GMT -7. The time now is 07:18.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com