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)

Zsuvalo 14-07-2021 00:29

Hi!

Can someone please make a step-by-step guide on how to use ASIS with DiskSpan GUI
because as a little dummy I am, I can't make it work... It always freezes when pressing install.

Thanks, Zsuvalo

mausschieber 14-07-2021 01:46

Quote:

Originally Posted by Zsuvalo (Post 493239)
Hi!

Can someone please make a step-by-step guide on how to use ASIS with DiskSpan GUI
because as a little dummy I am, I can't make it work... It always freezes when pressing install.

Thanks, Zsuvalo

have you read the topic in its own thread? if not then here

Zsuvalo 15-07-2021 00:28

I finally made it work by uncommenting line #8 in the script so the Setup.dll gets merged into the .exe. It works perfectly now.

KaktoR 15-07-2021 00:54

In any case you need Setup.dll.

Setup.dll will be created by DiskSpan GUI if the process is complete. You can also create it manually if you don't use DiskSpan GUI.

However, like you already find out, you can include Setup.dll into Setup.exe by uncommenting Line 8 in Script.iss, move Setup.dll next to Script.iss and then compile it.

srt19 17-07-2021 11:47

Hello,

I wonder if there's a way to run batch script directly after finished extracting a certain data file (e.g Data-01.bin), and when it finished it continue to extract the next data file.

Thanks.

ipom 21-07-2021 05:52

With v7.2.0 you could define the file location to use for components but now (v7.3.1) you can no longer do that, how am I supposed to link components and compressed archives? I also see no option do to so with the newly added 'tasks'... I'm probably just being stupid but I would like some clarification.

Cesar82 21-07-2021 16:35

Quote:

Originally Posted by ipom (Post 493358)
With v7.2.0 you could define the file location to use for components but now (v7.3.1) you can no longer do that, how am I supposed to link components and compressed archives? I also see no option do to so with the newly added 'tasks'... I'm probably just being stupid but I would like some clarification.

With the current version of ASIS you configure tasks in DiskSpan GUI by adding a new Data.bin and specifying a value in the task combobox.
The same goes for a language that will only be installed if the installer is started in the corresponding language.
To install the same Data.bin for more than one task, manually indicate the tasks in the combobox, separating by comma (The same goes for languages).

Tasks must be configured in ASIS Settings.ini starting with Task 1 (each line of the asis checklistbox is counted as a task even if it is one ItemType GROUP) .

KaktoR 22-07-2021 01:46

Quote:

Originally Posted by ipom (Post 493358)
With v7.2.0 you could define the file location to use for components but now (v7.3.1) you can no longer do that, how am I supposed to link components and compressed archives? I also see no option do to so with the newly added 'tasks'... I'm probably just being stupid but I would like some clarification.

You link them in records.ini

Example:

Code:

Component1.Name=GAME 1
Component1.ItemType=CHECK
Component1.Size=5.00 GB
Component1.Level=0
Component1.Checked=1
Component1.Enabled=1

[Record1]
Type=FreeArc_Original
Source={src}\Game1.bin
Output={app}\
Disk=1
Component=1
Size=301.89 MB

----------------------------

Task1.Name=Languages // This task is just a GROUP, no files linked to it
Task1.ItemType=GROUP
Task1.Size=0
Task1.Level=0
Task1.Checked=1
Task1.Enabled=1

Task2.Name=cm:EN
Task2.ItemType=RADIO
Task2.Size=500 mb
Task2.Level=1
Task2.Checked=1
Task2.Enabled=1

[Record2]
Type=FreeArc_Original
Source={src}\English.bin
Output={app}\
Disk=1
Component=1
Task=2
Size=100 MB


L33THAK0R 24-07-2021 08:28

Is it possible to get ASIS to read a checksum file from within the {app} directory? I'm testing out combining checksums based on end-user selection to be able to verify all selected items (currently just verifying main/core files), and my current implementation is to put a bunch of respectively named dummy checksum files within the/one of the core archive/s, with each optional/component archive containing its own relevant checksum, which overwrites the dummy checksum during installation. My hope is to execute a script to combine these all together (using the batch "copy" command) to merge said checksums into one complete checksum file to be used by ASIS post-install for verification. However during the compile stage it seems ASIS isn't keen on letting this happen.

KaktoR 24-07-2021 08:35

Not sure, but maybe by changing all constants {tmp} to {app} for #CRCFileName ispp.

L33THAK0R 24-07-2021 21:18

UPDATE 1: Copying the combined checksums works (checked the copied file in the {tmp} directory), however, it seems like Inno Setup isn't too happy about one of its files being replaced, I'll probably have to use something like QuickSFV and get the setup to launch a batch script if CRC's are enabled.

Quote:

Originally Posted by KaktoR (Post 493401)
Not sure, but maybe by changing all constants {tmp} to {app} for #CRCFileName ispp.

Seems like that didn't work, I'm gonna try to figure out the whole pascal scripting nonsense and see if I can copy a file from the {app} directory to the {tmp} directory.

KaktoR 25-07-2021 02:48

1 Attachment(s)
Quote:

Originally Posted by L33THAK0R (Post 493410)
UPDATE 1: Copying the combined checksums works (checked the copied file in the {tmp} directory), however, it seems like Inno Setup isn't too happy about one of its files being replaced, I'll probably have to use something like QuickSFV and get the setup to launch a batch script if CRC's are enabled.



Seems like that didn't work, I'm gonna try to figure out the whole pascal scripting nonsense and see if I can copy a file from the {app} directory to the {tmp} directory.

Edit: Make changes in Settings.ini (only add RunFromAppFolder= key)

Code:

[CRCCheck]
...
...
RunFromAppFolder=0/1

If set to 1, the Hash file will be copied to {app} folder and will be executed from there instead of {tmp}.

If you want to merge some hash files together, you have to do it inside {tmp} folder first. Just make sure you do the merge operation before FileCopy Line 5004 (for NormalMode) and Line 5264 (for CompactMode).

L33THAK0R 25-07-2021 03:10

Quote:

Originally Posted by KaktoR (Post 493415)
Edit: Make changes in Settings.ini (only add RunFromAppFolder= key)

Code:

[CRCCheck]
...
...
RunFromAppFolder=0/1

If set to 1, the Hash file will be copied to {app} folder and will be executed from there instead of {tmp}.

If you want to merge some hash files together, you have to do it inside {tmp} folder first. Just make sure you do the merge operation before FileCopy Line 5004 (for NormalMode) and Line 5264 (for CompactMode).

Thank you for this! I'll definitely see if I can carry these changes over to v7.2.0 (I can't seem to get my head around versions past this version but currently, and for the foreseeable future, my needs are pretty basic regarding setup functionality). I was able to enact my previous plans of using QuickSFV with just a few changes in the script. I'm sorry to have caused you the trouble, but hopefully I'll be able to put your effort to good use!

mr_gnar 28-07-2021 12:18

I recently downloaded v7.3.1 and it seems promising enough with what I looked at, but I am having trouble trying to compile a setup so I can test to see if I can get anything to work.

Line 4066: Column 9: Unknown identifier "I" - This error pops up. Without changing anything in the stock Settings.ini, that error doesn't show. The line is something related to the "task list", but the only thing I changed was disabling it because I don't want to use it. What's the issue?

KaktoR 28-07-2021 12:27

Send me your settings.ini


All times are GMT -7. The time now is 13:31.

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