FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   ASIS: Advanced Simple Installer Script (https://fileforums.com/showthread.php?t=99481)

KaktoR 28-12-2023 11:10

Not supported this way.

However you could save all actions for different games in a single bat file and use
Code:

if
command.

Open CMD.exe and type
Code:

if /?
to get additional help there.

statics 28-12-2023 12:51

Quote:

Originally Posted by KaktoR (Post 503208)
Not supported this way.

However you could save all actions for different games in a single bat file and use
Code:

if
command.

Open CMD.exe and type
Code:

if /?
to get additional help there.

I did a "Frankenstein" in the script, and I managed to make it work, in a pretty horrible way hahaha
Then I will try to improve the code...
Code:

     
if IsComponentChecked(2) and not IsDoneError then
      begin
        PercentLabel.Hide;
        ElapsedLabel.Hide;
        RemainingLabel.Hide;
        if FileExists(ExpandConstant('{tmp}\xdelta3.exe')) then
        begin
          FileCopy(ExpandConstant('{tmp}\xdelta3.exe'), ExpandConstant('{app}\xdelta3.exe'), False);
          WizardForm.FilenameLabel.Caption := ExpandConstant('{cm:BatchExecution}');
          WizardForm.FilenameLabel.Font.Size := 12;
          WizardForm.FilenameLabel.Left := WizardForm.ProgressGauge.Left;
          WizardForm.FilenameLabel.Top := WizardForm.ProgressGauge.Top;
          WizardForm.FilenameLabel.Width := WizardForm.ProgressGauge.Width;
          WizardForm.FilenameLabel.Height := WizardForm.ProgressGauge.Height;
          WizardForm.ProgressGauge.Hide;
          if FileExists(ExpandConstant('{app}\english.pak.xdelta')) then
          begin
            RenameFile(ExpandConstant('{app}\Game\Localized\english.pak'), ExpandConstant('{app}\Game\Localized\english.pak.tmp'));
            Exec(ExpandConstant('{app}\xdelta3.exe'), ' -d -B536870912 -qfs "Game\Localized\english.pak.tmp" "english.pak.xdelta" "Game\Localized\english.pak"', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
            DeleteFile(ExpandConstant('{app}\xdelta3.exe'));
            DeleteFile(ExpandConstant('{app}\english.pak.xdelta'));
          end;
        end;
      end;


ozerune 17-02-2024 12:26

Is it at all possible to use this in combination with DiskSpan in order to make an installer that is split across multiple disks that you can insert one at a time similar to old DOS games?

KaktoR 17-02-2024 12:48

Yes

ozerune 17-02-2024 14:25

Quote:

Originally Posted by KaktoR (Post 503681)
Yes

Would you be able to give me a rough idea of what I would need to do? I understand how to make an installer with the created bin, ini, and dll files when they are in the same directory as the exe, but am not so sure as to where I should start to get ASIS reading off of disc drives.

KaktoR 17-02-2024 14:39

Set disk size in diskspan -> compress files -> create setup.exe -> copy setup.exe to the same folder where bin files are and install

ozerune 17-02-2024 15:29

Quote:

Originally Posted by KaktoR (Post 503684)
Set disk size in diskspan -> compress files -> create setup.exe -> copy setup.exe to the same folder where bin files are and install

I understand that much, but I want to have all of the setup and bin files on separate DVDs inserted one at a time. Say for example I have portal 2 split up into 2 bin files. I want 1 bin file, Setup.dll, Records.ini, and Setup.exe on one DVD. The install process will start as usual, but when the first bin is done extracting, get prompted to remove the DVD and insert Disc 2. Hopefully that example gives a better idea of what I'm asking is possible :)

KaktoR 17-02-2024 16:00

Then just move second bin file to another folder. Setup will ask for that file if first bin file is finished.

ozerune 17-02-2024 19:37

That did it, thank you so much!

wareck 08-04-2024 05:27

execute command during decompress
 
Hello
Can you help me fo this :

I would like to start a command line during decompress
unpack data-1a-01.bin
execute commande like wemtool
continue to unpack data-1b-01.bin

with diskspan , it makes a file record.ini like this

Code:

[Record1]
Type=FreeArc_Original
Source={src}\Data1a-01.bin
Output={app}\
Disk=1
Size=4.005.985.165 bytes

[Record2]
Type=Exec_Command
Source={cmd}
Output=/C "patch.bat"
Disk=1

[Record3]
Type=FreeArc_Original
Source={src}\Data1b-01.bin
Output={app}\
Disk=1
Size=16.231.822 bytes

[InstallerSettings]
SingleDisk=1

ASIS can do this kind of things ?

Best regards

KaktoR 08-04-2024 05:31

Use Settings.ini for this

Code:

[Batch]
Enable=1
BatchFile=Patch.bat

Setup\Patch.bat
Code:

@echo off
setlocal EnableDelayedExpansion EnableExtensions

"WemTool.exe" -d

endlocal
del "%~f0"

WemTool.exe has to be in game root folder. Patch.bat will be executed from there. Cmd will be executed on the end when all files are extracted.

Tigru 13-05-2024 10:59

Hello, in Registry.iss what do I have to write in ValueType for the registry type REG_BINARY and REG_DWORD? Or is string the only ValueType that works?

KaktoR 13-05-2024 11:06

Use InnoSetup help

Code:

ValueType
The data type of the value. This must be one of the following:

none
string
expandsz
multisz
dword
qword
binary

If none (the default setting) is specified, Setup will create the key but not a value. In this case the ValueData parameter is ignored.
If string is specified, Setup will create a string (REG_SZ) value.
If expandsz is specified, Setup will create an expand-string (REG_EXPAND_SZ) value.
If multisz is specified, Setup will create an multi-string (REG_MULTI_SZ) value.
If dword is specified, Setup will create a 32-bit integer (REG_DWORD) value.
If qword is specified, Setup will create a 64-bit integer (REG_QWORD) value.
If binary is specified, Setup will create a binary (REG_BINARY) value.


ROKA1969 18-05-2024 21:46

A large number of users report this error:

RUNNING INSTALLER WITH SELECTED LANGUAGE FAILED. Code:5

What's the problem?

Masquerade 18-05-2024 23:24

^^
The setup is blocked by windows defender / windows smartscreen. Click the unblock button in the properties of the setup.


All times are GMT -7. The time now is 12:19.

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