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 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.

ROKA1969 19-05-2024 00:47

Thank you

KaktoR 19-05-2024 01:30

Never heard of that error :D

pcblizzard 28-07-2024 05:45

1 Attachment(s)
Hey,

I have the following problem (with version 4.7.6):

If I specify more than one component in the ‘Settings.ini’, I get the error at the line (" for I := 0 to ComponentsList.Items.Count - 1 do" - see picture below):
Code:

[ComponentsSettings]
Enable=1
FlatPageMode=0
ShowComponentSize=1

I set it like this:
Code:

[ComponentsSettings]
Enable=0
FlatPageMode=0
ShowComponentSize=1

of course I no longer have a choice of component selection, but the error is then gone, and the setup is compiled.

Maybe someone can help me!


KR pcblizzard

KaktoR 28-07-2024 05:46

Try latest v7.5.0 if that is fixed (should be, as I tested more then one component with that).

https://www.patreon.com/posts/release-v7-5-0-108191154

pcblizzard 28-07-2024 06:23

Yes, v7.5.0 works with more than one component, THANK YOU!

demon964 04-08-2024 08:09

hi. how i can add checkbox for maximum 2gb ram usage during setup installation?

like fitgirl

KaktoR 04-08-2024 09:37

There is already a checkbox for this purpose I think. However I have not touched it since years tbh. See if it is working.

dyren 09-10-2024 03:56

Hi,

I'm having the following issue: https://dyren.lol/issue.mp4

Basically the installer closes without anything being extracted. The files were compressed with DiskSpan and I used the Setup.dll I got after the compression was finished. I tried with and without the Records.ini file being merged into the Setup.dll file, and I got the same result. Is there any solution?

KaktoR 09-10-2024 06:03

Where is Setup.dll?

dyren 09-10-2024 06:13

^^In the folder named "Setup_DLL"

KaktoR 09-10-2024 06:17

I think this isn't supposed to be in there.

1. Extract contents of Setup.dll in Setup_DLL folder and compile the script normaly

or

2. Put Setup.dll next to Script.iss and compile the script after you make the following script change (remove semicolon)
Code:

#define DSG_InternalDLL          /* Putting Setup.dll next to the script will compress the DLL file into the Setup.exe file  */

dyren 09-10-2024 08:20

Same issue for both methods. Although, yesterday I tried the installer on a single archive, and it was working fine.

wareck 19-10-2024 22:25

for dyren:
I use a lot Asis

On your video, It's happen when you forgot record.ini or you let setup.dll and extracted files

try this :
make your conversion with diskspanguy
copy setup.dll and record.ini

copy them in the setup_dll folder of asis
right click on setup.dll and choose "uncompress here" (you need to have freearc installer on your computer)
then delete setup.dll
you will have something like that:
Attachment 38489

compile asis setup.
take setup.exe and copy/paste in your conversion folder
delete setup.dll and record.ini (they are included in the setup.exe)

And it will works...

dyren 20-10-2024 06:10

Quote:

Originally Posted by wareck (Post 506033)
for dyren:
I use a lot Asis

On your video, It's happen when you forgot record.ini or you let setup.dll and extracted files

try this :
make your conversion with diskspanguy
copy setup.dll and record.ini

copy them in the setup_dll folder of asis
right click on setup.dll and choose "uncompress here" (you need to have freearc installer on your computer)
then delete setup.dll
you will have something like that:
Attachment 38489

compile asis setup.
take setup.exe and copy/paste in your conversion folder
delete setup.dll and record.ini (they are included in the setup.exe)

And it will works...

Hi, thank you, but I already figured it out. :)

dyren 28-10-2024 09:45

Hey,

The "Limit RAM and CPU usage" option doesn't seem to work. I pretty much got the same CPU and RAM usage regardless if it's ticked or not. Is there anything I can do on my end or is the option controlled by the setup itself?

KaktoR 03-11-2024 11:47

I will take a look in the next days.

Cesar82 03-11-2024 16:49

Quote:

Originally Posted by dyren (Post 506107)
Hey,

The "Limit RAM and CPU usage" option doesn't seem to work. I pretty much got the same CPU and RAM usage regardless if it's ticked or not. Is there anything I can do on my end or is the option controlled by the setup itself?

The option just uses cls.ini with cpu/ram limitations and arc.ini limiting cpu usage to 50p. Few methods support these limitations, so not all methods will have differences.

demon964 06-11-2024 04:01

Quote:

Originally Posted by Cesar82 (Post 506207)
The option just uses cls.ini with cpu/ram limitations and arc.ini limiting cpu usage to 50p. Few methods support these limitations, so not all methods will have differences.

Fitgirl setup also give error 80% time, if you not enable checkbox maximum 2 gb ram usage. Can you add this option to disk span gui

Cesar82 06-11-2024 04:14

Quote:

Originally Posted by demon964 (Post 506222)
Fitgirl setup also give error 80% time, if you not enable checkbox maximum 2 gb ram usage. Can you add this option to disk span gui

The principle is the same in the fitgril installer and the one used in DSG.
However, it does not apply to all methods.
Only to CLS that support hardware usage settings or decompressor exe that has a parameter that limits hardware usage.
However, there is nothing to add to DSG.

See im imge fitgirl installe config in SREP.ini if checkbox 2GB is checked
https://i.imgur.com/6yBxIx6.png
The memory setting in srep in the image above is in CLS.ini is "512mb", and in DiskSpan GUI's CLS.ini is 20% for low hardware resources.
So if your decompression is failing, change in the file "Resources\Win64\INSTALLER\ARC\CLS_Standard.ini" in the 3 sections related to SREP to Memory=512mb and compress your game again.

Bondpotter 08-11-2024 08:32

https://i.imgur.com/hoGtF7w.jpeg

Getting this error on clicking install with setup created with ASIS v7.5. After clicking install this error occurs and setup starts installing but background and small installer with progress bar is not loading.

KaktoR 08-11-2024 09:40

Works fine here.

Send me your settings + background folder

Bondpotter 08-11-2024 12:01

Quote:

Originally Posted by KaktoR (Post 506231)
Works fine here.

Send me your settings + background folder

Thanks for the reply, It was problems with images I used. I had to convert them again in jpg.

Morrenus 29-11-2024 11:27

Quote:

Originally Posted by wareck (Post 506033)
for dyren:
I use a lot Asis

On your video, It's happen when you forgot record.ini or you let setup.dll and extracted files

try this :
make your conversion with diskspanguy
copy setup.dll and record.ini

copy them in the setup_dll folder of asis
right click on setup.dll and choose "uncompress here" (you need to have freearc installer on your computer)
then delete setup.dll
you will have something like that:
Attachment 38489

compile asis setup.
take setup.exe and copy/paste in your conversion folder
delete setup.dll and record.ini (they are included in the setup.exe)

And it will works...

I had the same issue and this didn't work for me.

Gummy Bear 11-12-2024 13:55

Hi, I am new to this, I have compressed a file into bin format, how do I write this in settings.ini?

KaktoR 12-12-2024 01:15

You need records.ini file

trillestdwane 23-04-2025 09:17

I know there aren't any more updates to this project, but I've noticed that in compact mode the checkbox for not creating start menu stuff is disabled, thus always creating it.
Is there anyway to bring this functionality back in compact mode?

KaktoR 23-04-2025 09:36

Hmm normally startmenu icons should not be created if you uncheck "desktop icon" in compactmode. I will check this.

trillestdwane 23-04-2025 09:43

Quote:

Originally Posted by KaktoR (Post 507399)
Hmm normally startmenu icons should not be created if you uncheck "desktop icon" in compactmode. I will check this.

I should've clarified that I meant if it was possible to bring back the start menu checkbox whilst keeping the desktop icon check box in compact mode, meaning I could still create desktop icons while not creating start menu icons/folders, like in standard mode.

KaktoR 23-04-2025 09:47

It is possible yes but needs some editing because I have to adjust some other checkboxes aswell then.

KaktoR 23-04-2025 10:58

1 Attachment(s)
Quote:

Originally Posted by trillestdwane (Post 507400)
I should've clarified that I meant if it was possible to bring back the start menu checkbox whilst keeping the desktop icon check box in compact mode, meaning I could still create desktop icons while not creating start menu icons/folders, like in standard mode.

Like this?

https://i.imgur.com/MiFzWnR.png

Edit: Change the appereance a bit. Check it out

wareck 27-04-2025 08:04

hello
for me with this hotfix , I needed to add this line in script.iss:

procedure DSG_RefreshSelectedItems();
var
I: Integer;

KaktoR 27-04-2025 08:08

Could you send me your settings.ini file

wareck 27-04-2025 10:44

Quote:

Originally Posted by KaktoR (Post 507446)
Could you send me your settings.ini file

It's from archive on patreon...
I take https://www.patreon.com/file?h=108191154&m=329602487
and
https://www.patreon.com/file?h=108191154&m=457434456

no editing file just unzip them...
If I click on compile script :

https://i.ibb.co/6RQ6L8gg/Sans-titre.png

KaktoR 27-04-2025 10:52

Thanks!

wareck 30-05-2025 08:46

Hello Kaktor
I very often use the function that run a command batch after data decompress
(like postprocess or something like patch, xdelta)

For example:
uncompress data1.bin
Run batch1.bat
uncompress data2.bin
final Batch.cmd (in setting of asis)
Check Crc and end installation

I would like to add a message during ASIS progression because sometimes my batch are long to execute and take time.

something like "Please wait during processing"

but I do not find yet where I can add theses lines

best regards

wareck


All times are GMT -7. The time now is 07:30.

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