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.

Titeuf 08-05-2022 06:57

Hello everyone,
i want to know how to include in ASIS 7.3.2 Diskspan GUI vxx
as in the version of Asis 7.2.2a
Thank you in advance for your replies

KaktoR 08-05-2022 07:30

What do you mean exactly? ASIS 7.3.3 is fully compatible with latest Diskspan GUI.

Titeuf 08-05-2022 07:39

2 Attachment(s)
Quote:

Originally Posted by KaktoR (Post 496740)
What do you mean exactly? ASIS 7.3.3 is fully compatible with latest Diskspan GUI.


Hello KaktoR,
Hmmm I only see links for 7.3.2
Where is the link to the latest version of asis 7.3.3?
and tell me in 7.3.3, Diskspan GUI is in the 7.3.3 archive?
look at me image of version 7.2.2a

KaktoR 08-05-2022 08:02

Sorry I totally forgot to share 7.3.3

Here it is.

What you need is just DSG 2.0.0.9+ (latest ASIS should work with other versions down to 2.0.0.5 too).

Titeuf 08-05-2022 08:18

Quote:

Originally Posted by KaktoR (Post 496742)
Sorry I totally forgot to share 7.3.3

Here it is.

What you need is just DSG 2.0.0.9+ (latest ASIS should work with other versions down to 2.0.0.5 too).

Ok KaktoR,
thank you very much but tell me for DSG 2.0.0.9+ I unzip the archive in the "COMPRESSOR" directory of asis?
in fact what I want is that "DSG 2.0.0.9+" be integrated into the Asis 7.3.3 script as in your version (7.2.2a) it's much more practical

KaktoR 08-05-2022 08:28

Yes Setup.exe will be created in COMPRESSOR\Setup_Files folder if it exists.

Titeuf 08-05-2022 08:34

Quote:

Originally Posted by KaktoR (Post 496744)
Yes Setup.exe will be created in COMPRESSOR\Setup_Files folder if it exists.


Big thank KaktoR

Spotless 13-05-2022 11:17

Hey Guys i want to add my own archives without using DiskSpan
i have used records and made setup.dll but the installer give me this:
https://i.ibb.co/SNDywYL/image.png

KaktoR 14-05-2022 01:59

Send me your setup.dll + records.ini

Spotless 14-05-2022 02:05

1 Attachment(s)
Quote:

Originally Posted by KaktoR (Post 496803)
Send me your setup.dll + records.ini

Password for setup.dll: egymello12

KaktoR 14-05-2022 02:11

Seems like you did not have set your password in Script.iss

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

Spotless 14-05-2022 02:19

Quote:

Originally Posted by KaktoR (Post 496805)
Seems like you did not have set your password in Script.iss

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

already there

Spotless 14-05-2022 02:25

1 Attachment(s)
also check my script.iss i have edited it

Spotless 14-05-2022 22:40

Guys how do i change the font of the installer?

KaktoR 15-05-2022 00:52

Quote:

Originally Posted by Spotless (Post 496807)
also check my script.iss i have edited it

Your error could happen because you edited the script. I will give no support for edited script unless you know what to do.

Quote:

Originally Posted by Spotless (Post 496823)
Guys how do i change the font of the installer?

Go to Help folder and read Settings.txt. There is all explained you need to know.

Spotless 15-05-2022 08:20

Quote:

Originally Posted by KaktoR (Post 496826)
Your error could happen because you edited the script. I will give no support for edited script unless you know what to do.



Go to Help folder and read Settings.txt. There is all explained you need to know.

ok thanks
it was errors from the archive

about the script im editing it but i keep your credits

Spotless 15-05-2022 09:34

another question how do i change the whole installer font?

mausschieber 15-05-2022 10:59

Quote:

Originally Posted by Spotless (Post 496861)
another question how do i change the whole installer font?

As KaktoR says before
Code:

Go to Help folder and read Settings.txt. There is all explained you need to know.

KaktoR 15-05-2022 12:33

It is only possible to change the welcome and finish messages.

By editing the script it is possible to change the whole appereance of the installer too, like this

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

However sometimes it is needed to change the font size for all elements. Like in the image above, you will see some cut texts.

Cesar82 15-05-2022 17:31

Quote:

Originally Posted by KaktoR (Post 496867)
It is only possible to change the welcome and finish messages.

By editing the script it is possible to change the whole appereance of the installer too, like this

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

However sometimes it is needed to change the font size for all elements. Like in the image above, you will see some cut texts.

Suggestion.
Instead of using Fonte.Size := 14 you can try using Fonte.Height := Scale(10) for example (it will keep the Height aspect of the font automatically calculating the font.size).

Spotless 16-05-2022 11:16

Thank you guys for Help
i want to combine records.ini to setup
and i want to add component archive name
and Redists does not work

L33THAK0R 20-05-2022 00:18

What'd be the best solution for being able to use a custom directory constant for a component file? I'm interested in looking into using something like the "{sd}" constant for a given component entry.

I know such functionality is supported for specifying the path of an ".ini" file under [INISettings], but I'm not too sure how to implement it.

I believe this is the section of the script I should be looking at, with the highlighted text being the value that I THINK indicates the working directory for where the file should be.

Code:

            ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.File', '', ExpandConstant('{tmp}\Settings.ini')));
            if (ISDoneError = False) and FileExists(ComponentFile) then
              if not ISArcExtract(0, 0, ComponentFile, ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
                ISDoneError := True;

I thought about using "{#.File}" or "{#File}", (as seen when used for "{#INIFile}") but this doesn't seem to be a valid solution, would anyone be able to suggest a method that I can look into?

Cesar82 20-05-2022 00:39

Quote:

Originally Posted by L33THAK0R (Post 496917)
What'd be the best solution for being able to use a custom directory constant for a component file? I'm interested in looking into using something like the "{sd}" constant for a given component entry.

I know such functionality is supported for specifying the path of an ".ini" file under [INISettings], but I'm not too sure how to implement it.

I believe this is the section of the script I should be looking at, with the highlighted text being the value that I THINK indicates the working directory for where the file should be.

Code:

            ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.File', '', ExpandConstant('{tmp}\Settings.ini')));
            if (ISDoneError = False) and FileExists(ComponentFile) then
              if not ISArcExtract(0, 0, ComponentFile, ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
                ISDoneError := True;

I thought about using "{#.File}" or "{#File}", (as seen when used for "{#INIFile}") but this doesn't seem to be a valid solution, would anyone be able to suggest a method that I can look into?

This is an old version of ASIS and I don't even remember anymore, but I think you can use any constant supported by Inno Setup, but all components will be redirected to new constant.
P.S: The current version you configure directly in the Records.ini file for each component.

L33THAK0R 20-05-2022 04:36

I am able to change all components to use a given constant, was hoping though to be able to use a different constant for each component, thanks for the help nonetheless.

All the new functionality in newer versions of the script really have me seriously considering making the move from v7.2.0, honestly though the only thing stopping me is the super convenient "Compressor GUI", its a shame it was phased out after v7.2.0 .

Cesar82 20-05-2022 07:57

Compressor GUI was eliminated to make way for DiskSpan GUI which has much more features and ease of compression doing everything automatically.

Why don't you use DiskSpan GUI?


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

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