View Single Post
  #2  
Old 01-05-2021, 10:28
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by alucard1973 View Post
yes, I removed it because the setup I want to choose for installation is in components2.file and components3.file
the concern is that in the record, I do how, I understood correctly that you tell me to do nothing, but unfortunately, it installs me everything every time and I would like to choose in the pack, the game and the language of the game that I want to install, for example, commando beyond line and commando 2 without installing the others

I don't know if I'm explaining myself well
what I want to do, is therefore if I choose to install commandos 2, is that it installs me this version as well as this file

[Record5]
Type=Freearc_Original
Source={src}\Setup3FR.cab
Output={app}\SteamApps\common\Commandos 2 Men of Courage\
Disk=1

[Record13]
Type=Freearc_Original
Source={src}\Setup3STEAM.cab
Output={app}\SteamApps\

I would test more or less what you tell me because they don't laugh to put in the record.ini as in CIU which was for me Task = 2 for example, I doubt that it works for me, but I have nothing more to lose

another thing, to uninstall a backup, is there a line to put in setting.ini?
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
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
Gehrman (01-05-2021)