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)

gen40 30-03-2021 14:48

this is cool epic i will use this when i do my next repack :D

L33THAK0R 31-03-2021 08:33

hey so I'm pretty dumb/simple/touched in the head, how can I get like an optional .bin or whatever working with ASIS? Not looking to have it as a select-able option in the GUI just want to be able to put an "optional.bin" in the root directory for the installer and it to extract it, sorry if this is a silly question.

KaktoR 31-03-2021 10:17

Add a second record to Records.ini

L33THAK0R 12-04-2021 07:29

Quote:

Originally Posted by KaktoR (Post 491183)
Add a second record to Records.ini

Thank you so much for your quick response, got another quick question, how can I select AFR 0.20 in the "COMPRESSOR_GUI.exe"? Using ASIS v7.2.0.0 and can only seem to select 0.19. Sorry if its a bit of a silly question.

KaktoR 12-04-2021 07:34

I think you have to hold CTRL key and click on "default" if I remember right.

L33THAK0R 12-04-2021 19:19

Quote:

Originally Posted by KaktoR (Post 491318)
I think you have to hold CTRL key and click on "default" if I remember right.

sick as, cheers man, works like a charm

L33THAK0R 13-04-2021 20:35

Hey dunno if anyone knows how to or if it's even possible with ASIS, but is there a way to get ASIS to delete a specified file at the end of install? Got this really annoying 40mb junk temp file that isn't getting cleaned up and was wondering if there was a way I can get the installer to remove it.

Masquerade 13-04-2021 23:42

Quote:

Originally Posted by L33THAK0R (Post 491338)
Hey dunno if anyone knows how to or if it's even possible with ASIS, but is there a way to get ASIS to delete a specified file at the end of install? Got this really annoying 40mb junk temp file that isn't getting cleaned up and was wondering if there was a way I can get the installer to remove it.

Code:

if CurStep = ssPostInstall then begin
    DeleteFile(ExpandConstant('{app}\<path to file>'));


L33THAK0R 14-04-2021 16:07

Quote:

Originally Posted by Masquerade (Post 491341)
Code:

if CurStep = ssPostInstall then begin
    DeleteFile(ExpandConstant('{app}\<path to file>'));


fuckkk absolute legend, cheers brother

L33THAK0R 14-04-2021 18:33

Alright got 2 more questions for you lads and then I promise I'll stop spamming 'em.

So I've got a repack with a few optional components and I was wondering if its possible for the setup once launched to have a look to see if the component file is present, and if it comes back false, can the setup disable the user from selecting that component?

like changing
Code:

Component1.Enabled=1
to
Code:

Component1.Enabled=0
My second question kinda builds off this first one, by which I mean can you have multiple CRC check files for different combinations of components selected and tell ASIS which one to select based of the selected components?


(like checksums1.md5 for main files & checksums2.md5 for main files + ost)

L33THAK0R 16-04-2021 20:55

Also a super small question, if I have a compressor that is name differently to how it is named in ASIS, is it possible to change this in ASIS? in this case I'm using "afr_019" but this isn't recognised by ASIS.

KaktoR 17-04-2021 01:10

Quote:

Originally Posted by L33THAK0R (Post 491356)
Alright got 2 more questions for you lads and then I promise I'll stop spamming 'em.

So I've got a repack with a few optional components and I was wondering if its possible for the setup once launched to have a look to see if the component file is present, and if it comes back false, can the setup disable the user from selecting that component?

like changing
Code:

Component1.Enabled=1
to
Code:

Component1.Enabled=0
My second question kinda builds off this first one, by which I mean can you have multiple CRC check files for different combinations of components selected and tell ASIS which one to select based of the selected components?


(like checksums1.md5 for main files & checksums2.md5 for main files + ost)

code change is neccessary for this

Quote:

Originally Posted by L33THAK0R (Post 491375)
Also a super small question, if I have a compressor that is name differently to how it is named in ASIS, is it possible to change this in ASIS? in this case I'm using "afr_019" but this isn't recognised by ASIS.

In latest version asis will use whatever you put inside setup.dll.

asis itself doesn't have any compressor settings anymore.

L33THAK0R 17-04-2021 20:19

Quote:

Originally Posted by KaktoR (Post 491377)
code change is neccessary for this



In latest version asis will use whatever you put inside setup.dll.

asis itself doesn't have any compressor settings anymore.

Hey so this is a bit of a dumb question but where do you put setup.dll when you've generated it

Cesar82 17-04-2021 21:16

Quote:

Originally Posted by L33THAK0R (Post 491393)
Hey so this is a bit of a dumb question but where do you put setup.dll when you've generated it

Setup.dll is a ".arc" file (compressed -m0..-m8 and renamed to .dll) that contains the compressors that must be placed next to Setup.exe.
If you rename the Setup.exe file for example to Install.exe, you must also rename the Setup.dll file to Install.dll.
The Setup.dll file is automatically generated by DiskSpan_GUI when compressing the game, but you can include different compressors as long as you also create the settings in the INI files.

In the COMPRESSOR folder on DiskSpan_GUI you have a ".bat" file called "_Compress Optional DLL (Drop Folder or Setup.dll) .bat" that is especially useful for this situation.
You just create a folder and put compressors, cls libraries and .ini files
After placing all decompressor files in a folder just click on the folder and drop the folder on the .bat file to create Setup.dll file.

The standard INI file names are:
Code:

- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Optimal.ini for when installation is done on 64-bit systems.
- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Standard.ini for when installation is done on 64-bit systems.

and
Code:

- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Optimal.ini for when installation is done on 32-bit systems.
- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Standard.ini for when installation is done on 32-bit systems.

P.S: Arc.ini/CLS.ini is also compatible and will be read if the ones mentioned above do not exist.

L33THAK0R 18-04-2021 02:57

Quote:

Originally Posted by Cesar82 (Post 491395)
Setup.dll is a ".arc" file (compressed -m0..-m8 and renamed to .dll) that contains the compressors that must be placed next to Setup.exe.
If you rename the Setup.exe file for example to Install.exe, you must also rename the Setup.dll file to Install.dll.
The Setup.dll file is automatically generated by DiskSpan_GUI when compressing the game, but you can include different compressors as long as you also create the settings in the INI files.

In the COMPRESSOR folder on DiskSpan_GUI you have a ".bat" file called "_Compress Optional DLL (Drop Folder or Setup.dll) .bat" that is especially useful for this situation.
You just create a folder and put compressors, cls libraries and .ini files
After placing all decompressor files in a folder just click on the folder and drop the folder on the .bat file to create Setup.dll file.

The standard INI file names are:
Code:

- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Optimal.ini for when installation is done on 64-bit systems.
- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Standard.ini for when installation is done on 64-bit systems.

and
Code:

- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Optimal.ini for when installation is done on 32-bit systems.
- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Standard.ini for when installation is done on 32-bit systems.

P.S: Arc.ini/CLS.ini is also compatible and will be read if the ones mentioned above do not exist.

I understand all this but what I mean is where physically should "setup.dll" be present when making the .exe with ASIS, or is it not included inside of the .exe generated by ASIS?


All times are GMT -7. The time now is 14:09.

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