View Single Post
  #3  
Old 01-05-2021, 14:53
alucard1973 alucard1973 is offline
Registered User
 
Join Date: Apr 2015
Location: Madrid
Posts: 45
Thanks: 1
Thanked 3 Times in 3 Posts
alucard1973 is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
I don't know if the ASIS 7.2.2 I have here is the latest version, but from what I found in the code it doesn't have any reading of key Component= or Comp= in records.ini

The installation is done normally from the Records.ini files (like Main Game).
After the main extraction, the ASIS configuration is checked in the [ComponentsSettings] section, key Component#.File= (starting with 1) and if any of them are checked and the file exists, it will be extracted.
NOTE: For the data file to work, it must be in the same path as Setup.exe, so if it is burned to disk or ISO it must be on the last disk, otherwise (folders) it must be next to Setup.exe.
Component#.File should only be the name of the component or <SubDir>\<DataFile> in relation to {src} (Setup.exe directory)

The Component will always be extracted to {app} so if you need to put the files in subfolders they must be in subfolders before compression.

If you understand a little bit, see the code below the component extraction process done after installing the main game.
Code:
    {Unpack selected components}
    #if UseComponents == "1"
      if ComponentsPageAvai then
      begin
        for I := 0 to GetArrayLength(CompIndexList) - 1 do
          if ComponentsList.Checked[CompIndexList[I]] then
          begin
            ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.File', '', ExpandConstant('{tmp}\Settings.ini')));
            if (ISDoneError = False) and FileExists(ComponentFile) then
              if not ISArcExtract(0, 0, ComponentFile, ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
                ISDoneError := True;
          end;
      end;
    #endif
So if I put this, it should extract the components2.file if I choose the FRENCH version
The components1 I left empty because it is to deselect if I do not want to install it, suddenly I guess I have a problem with setting.ini

Component1.Name=Commandos Behind Enemy Lines
Component1.File=
Component1.Size=
Component1.Level=1
Component1.Exclusive=0
Component1.Checked=1
Component1.Enabled=1

Component2.Name=French
Component2.File=Setup1FR.cab
Component2.Size=930
Component2.Level=0
Component2.Exclusive=1
Component2.Checked=0
Component2.Enabled=1

Component3.Name=English
Component3.File=Setup1.cab
Component3.Size=930
Component3.Level=0
Component3.Exclusive=1
Component3.Checked=0
Component3.Enabled=1

I will see and try to find a solution for it, but there is also the problem of registry.iss, suddenly, how do I put componets for the one I chose to install in relation to the settings.ini?
yes, the version I am using is 7.2.2a

Last edited by alucard1973; 01-05-2021 at 15:08.
Reply With Quote