|
#11
|
||||
|
||||
|
Quote:
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
|
| The Following User Says Thank You to Cesar82 For This Useful Post: | ||
Gehrman (01-05-2021) | ||
|
|
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 |