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)

MartinezPL 22-09-2021 08:53

Hi,
Any idea why shortcut is a white blank icon?

I have this in Settings.ini

[Executable1]
ShortcutName=Kena Bridge of Spirits
ExePath=Kena.exe
ExeParam=
IconFileName=Kena.exe

I even had:
IconFileName=Setup.ico

Since Setup.ico use icon straight from game .exe file.
Still it was white blank image.

Cesar82 22-09-2021 09:14

Quote:

Originally Posted by MartinezPL (Post 494094)
Hi,
Any idea why shortcut is a white blank icon?

I have this in Settings.ini

[Executable1]
ShortcutName=Kena Bridge of Spirits
ExePath=Kena.exe
ExeParam=
IconFileName=Kena.exe

I even had:
IconFileName=Setup.ico

Since Setup.ico use icon straight from game .exe file.
Still it was white blank image.

Remove IconFileName= key or try:
IconFileName={app}\Kena.exe

MartinezPL 23-09-2021 03:36

"IconFileName={app}\Kena.exe"
This made the trick.
Thank you very much Cesar82

L33THAK0R 11-10-2021 01:01

Is it there any easy solution to have multiple data files for single selected component? I'm currently making a collection, with one of the selective titles having to have certain files packed separately. I know I could just instruct the user to select 2 items, but for the sake of it looking better I was wondering if a neater solution would be possible.

I tried modifying
Code:

if Trim(GetIniString('ComponentsSettings', 'Component' + IntToStr(I) + '.File', '', IniFile)) = '' then
&
Code:

ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.File', '', ExpandConstant('{tmp}\Settings.ini')));
to
Code:

if Trim(GetIniString('ComponentsSettings', 'Component' + IntToStr(I) + '.FileA' or '.FileB', '', IniFile)) = '' then
&
Code:

ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.FileA', '', ExpandConstant('{tmp}\Settings.ini')));
ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.FileB', '', ExpandConstant('{tmp}\Settings.ini')));

when they appeared (twice for each) within the script, however this sadly didn't work out, with other attempts either not functioning when testing with a set of example archives, or an error was met on compiling the script. Does anyone familiar with Pascal have any idea if this type of modification is possible? I'm assuming such a solution isn't feasible, as the script wasn't designed to have multiple entries for a single component part.

KaktoR 11-10-2021 02:18

Yes, however, you have to enable Tasks

Just make a Task

Code:

Task1.Name=Game Files
Task1.ItemType=CHECKBOX
Task1.Size=<Game size> gb/mb/kb/b
Task1.Level=0
Task1.Checked=1
Task1.Enabled=0

And records.ini

Code:

[Record1]
Type=Freearc_Original
Source={src}\Data1a.bin
Output={app}\
Disk=1
Size=<archive size> gb/mb/kb/b
Task=1

[Record2]
Type=Freearc_Original
Source={src}\Data1b.bin
Output={app}\
Disk=1
Size=<archive size> gb/mb/kb/b
Task=1

...

Maybe it works without Task too, but I have not tested it.

But may I ask, why you don't make a masked data archive? You can store different files with different compressions inside a single freearc archive.

Edit: Ohh, I just forgot you are working with an older script (right?). In this case I can't help you much, but I guess it is possible neverthless (I guess in this case you have to work with Component=# instead of Task=# in records.ini).

L33THAK0R 11-10-2021 03:24

Quote:

Originally Posted by KaktoR (Post 494369)
But may I ask, why you don't make a masked data archive? You can store different files with different compressions inside a single freearc archive.

It's quite odd but regardless of a mask, certain files within this title fail to decompress unless packed separately. Even stranger still compressing these files separately gives a lower combined total, than with these files all-in-one archive.

Quote:

Originally Posted by KaktoR (Post 494369)
Edit: Ohh, I just forgot you are working with an older script (right?). In this case I can't help you much, but I guess it is possible nevertheless (I guess in this case you have to work with Component=# instead of Task=# in records.ini).

I'll give merging this feature to v7.2.0 a shot, since it already works in 7.3.X, I'm hopeful I'll be successful!

its_gnar_again 03-12-2021 18:30

Odd question considering it's been a few months without a new post on this thread, but what does it mean when the installer outputs a unarc -6 error (unable to read data)? Someone was talking to me about it and I have no clue - I never received this error and decompression worked fine on my machines.

alucard1973 30-03-2022 12:47

Please, DelSaveGame in script

KaktoR 30-03-2022 12:55

Code:

[UninstallDelete]
Type: filesandordirs; Name: "<pathconstant>\<folder name>"


alucard1973 30-03-2022 14:58

Quote:

Originally Posted by KaktoR (Post 496354)
Code:

[UninstallDelete]
Type: filesandordirs; Name: "<pathconstant>\<folder name>"


Thank you, but what I meant was a script if possible that asks when you uninstall a game if you want to delete the game save which is for example in <userdocs>\SquareEnix\Final Fantasy VII

KaktoR 31-03-2022 00:44

1 Attachment(s)
Try this

Add to Settings.ini
Code:

[Settings]
...
...
Savegamefolder={userdocs}\Final Fantasy VII

Edit: Fixed missing file

alucard1973 31-03-2022 13:49

Thanks very much
can I put several like Savegamefolder1, Savegamefolder2?

fabrieunko 04-04-2022 13:52

hello, is it possible to add a small equalizer just above the music OFF/ON button

Rainiu 05-04-2022 23:30

Sorry if this has been asked before, but how do I add a window or border to the welcome screen message? Thanks.

[IMG]https://i.postimg.cc/ZqKqS0s5/image.jpg[/IMG]

KaktoR 06-04-2022 10:10

You have to make it manualy in your bitmap image. There is a _Background.psd file which contains this half transparent border for example reasons (75% opacity).

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

Maybe one day I will add PNG images for it :D But actually this project is finished from my side if there are no bugs around.


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

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