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)

pcblizzard 04-09-2022 13:39

Can anyone tell me what the music track is called or from which soundtrack it is, which is included by default with the download (i.e., what is named just “Music.mp3”)?

mausschieber 05-09-2022 02:27

Quote:

Originally Posted by pcblizzard (Post 498185)
Can anyone tell me what the music track is called or from which soundtrack it is, which is included by default with the download (i.e., what is named just “Music.mp3”)?

do you mean the last ASIS its from the Game Stray the other i don't know

pcblizzard 05-09-2022 02:39

Exactly, the music from ASIS (where as a template is the game "Stray", but I listened through the soundtrack and track 1 from the soundtrack sounds similar, but somehow not the same).
It's been the same everywhere so far (though I'm only with it since version 7.3.5 - what was before, I can't say of course).

KaktoR 05-09-2022 02:42

https://www.youtube. com/watch?v=37wUUn748iQ

L33THAK0R 05-09-2022 18:41

Is it possible to call the "UnpackDLLFiles" function early, ideally at the initialisation of the wizard? I recently switched to using a VCLStyle skin instead of CJStyle skin (as CJStyles arent able to modify some GUI elements and aren't quite as versatile), however the DLL size difference between the two is alarmingly large (2.98MB vs 385KB). However, applying some very basic compression, such as the parameters used to pack a given "Setup.dll" significantly reduces the VCLStyle DLL to ~700kb, unfortunately though it seems I'm not able to get the wizard to extract the DLL before loading it, despite having the commands ordered to do so.

Code:

function InitializeSetup(): Boolean;
begin
  Result := True;
  ExtractTemporaryFile('SplitLib.dll');
  ExtractTemporaryFile('Settings.ini');
  #if VCL
    FileCopy(ExpandConstant('{src}\VclStylesInno.dll'), ExpandConstant('{tmp}\VclStylesInno.dll'), False);
    ExtractTemporaryFile('VclStylesInno.dll');
    ExtractTemporaryFile('{#VCLName}');
    LoadVCLStyle(ExpandConstant('{tmp}\{#VCLName}'));

I can't quite decipher the errors I get either as they simply say:

Code:

Runtime error (at 368:722):
Could not call proc.

&

Code:

Runtime error (at 400:5):
Could not call proc.

Am I missing something or is this sort of extracting and loading DLLs a bit too finicky for Inno Setup to handle?

L33THAK0R 05-09-2022 21:04

Sorry to fill up this thread with questions, but could anyone please tell me where abouts the logic is for the transition between CompactMode's Main-Window and the CRC-Window?

I use QuickSFV for CRC validation and was hoping to add a 3rd & 4th state to the "WizardForm.NextButton" (or whatever the label is for the CompactMode Install button), to allow it to launch a given Batch script, while displaying "Verify"/"cm:Verify", and then function as a Finish/Continue button after the script concluded.

Currently I've got the latter functionality working just fine, I'm just trying to figure out how to discard the separate CRC window to move it all to the one screen.

KaktoR 06-09-2022 00:03

Quote:

Originally Posted by L33THAK0R (Post 498203)
Is it possible to call the "UnpackDLLFiles" function early, ideally at the initialisation of the wizard? I recently switched to using a VCLStyle skin instead of CJStyle skin (as CJStyles arent able to modify some GUI elements and aren't quite as versatile), however the DLL size difference between the two is alarmingly large (2.98MB vs 385KB). However, applying some very basic compression, such as the parameters used to pack a given "Setup.dll" significantly reduces the VCLStyle DLL to ~700kb, unfortunately though it seems I'm not able to get the wizard to extract the DLL before loading it, despite having the commands ordered to do so.

Code:

function InitializeSetup(): Boolean;
begin
  Result := True;
  ExtractTemporaryFile('SplitLib.dll');
  ExtractTemporaryFile('Settings.ini');
  #if VCL
    FileCopy(ExpandConstant('{src}\VclStylesInno.dll'), ExpandConstant('{tmp}\VclStylesInno.dll'), False);
    ExtractTemporaryFile('VclStylesInno.dll');
    ExtractTemporaryFile('{#VCLName}');
    LoadVCLStyle(ExpandConstant('{tmp}\{#VCLName}'));

I can't quite decipher the errors I get either as they simply say:

Code:

Runtime error (at 368:722):
Could not call proc.

&

Code:

Runtime error (at 400:5):
Could not call proc.

Am I missing something or is this sort of extracting and loading DLLs a bit too finicky for Inno Setup to handle?

You have to call function UnpackDLLFiles directly in function InitializeSetup

Quote:

Originally Posted by L33THAK0R (Post 498205)
Sorry to fill up this thread with questions, but could anyone please tell me where abouts the logic is for the transition between CompactMode's Main-Window and the CRC-Window?

I use QuickSFV for CRC validation and was hoping to add a 3rd & 4th state to the "WizardForm.NextButton" (or whatever the label is for the CompactMode Install button), to allow it to launch a given Batch script, while displaying "Verify"/"cm:Verify", and then function as a Finish/Continue button after the script concluded.

Currently I've got the latter functionality working just fine, I'm just trying to figure out how to discard the separate CRC window to move it all to the one screen.

If you want to use quicksfv instead of the crc page in compactmode you have to disable the crc page creation and call quicksfv instead.

L33THAK0R 06-09-2022 21:06

Quote:

Originally Posted by KaktoR (Post 498207)
You have to call function UnpackDLLFiles directly in function InitializeSetup

Ah alright I'll give that a shot!



Quote:

Originally Posted by KaktoR (Post 498207)
If you want to use quicksfv instead of the crc page in compactmode you have to disable the crc page creation and call quicksfv instead.

Would you happen to know by any chance what the label/function is that calls the crc page post-install, I cant for the life of me seem to figure it out!

L33THAK0R 06-09-2022 22:36

Sorry again to seemingly never run out of queries, I'm a bit of a brainlet, if it's at all alright would you be able to walk me through the values/arguments I should be attaching to "UnpackDLLFiles", I'm not too sure about the
Code:

(UnpFile: String): Boolean;
side of things, with trusty Dr. Google not really making clear what a "UnpFile" designation is.

KaktoR 07-09-2022 00:42

Quote:

Originally Posted by L33THAK0R (Post 498241)
Would you happen to know by any chance what the label/function is that calls the crc page post-install, I cant for the life of me seem to figure it out!

If you search for "#if CheckCRC" you will get all things related to crc check.

The crc page is a custom created page, "CurPageID = CRCPage.ID"

This page will be created here

Code:

    #if !CompactMode //if NOT compactmode (= normal mode)
      CRCPage := CreateCustomPage(wpInstalling, '', ''); //crc page will be created after wpInstalling page
    #else // if compact mode
      CRCPage := CreateCustomPage(wpInfoAfter, '', ''); //crc page will be created after wpInfoAfter page (compactmode works a bit different due to 1 page installer)
    #endif

Use Exec or Exec2 funtion on ssPostInstall step to start quicksvf.exe. You can search there for "#if UseBatch" to get an idea how it should look like with quicksvf.exe.

Quote:

Originally Posted by L33THAK0R (Post 498242)
Sorry again to seemingly never run out of queries, I'm a bit of a brainlet, if it's at all alright would you be able to walk me through the values/arguments I should be attaching to "UnpackDLLFiles", I'm not too sure about the
Code:

(UnpFile: String): Boolean;
side of things, with trusty Dr. Google not really making clear what a "UnpFile" designation is.

Example
Code:

function InitializeSetup(): Boolean;
begin
...
UnpackDLLFiles;
...

UnpFile is a custom string designated to UnpackDLLFiles function and is only valid inside this function.

L33THAK0R 08-09-2022 17:56

Got a bit of a different, but hopefully easier question to answer, are there any other variables that can determine the size of an element, outside of ScaleX/ScaleY? I've got a really annoying element that refuses to be resized, the image linked (here) demonstrates this, as every other element that has a "ScaleX" property has had it set to 100, with the exception of the client size, however this element at the top refuses to change. I've also searched for the approx. pixel length/height of the element with a +/- 20 variance in the script to try and find the value but alas to no avail. The reason as to my wanting to remove/resize this element is that once the page changes to CRCPage.Surface, the logo image I have attached, disappears as its parent is WizardForm.WelcomePage, and my separate image entry for CRCPage.Surface is cut off, as this rogue element is rendered on top of CRCPage.Surface.

its_gnar_again 10-09-2022 06:55

Question: Am I missing anything for the redists section for v7.3.4's settings? No matter what I do, the installer skips over the redist install when the checkbox is marked. I have tried using the {app} tag, where the specified redist folder is included in the archives, and the {src} tag, where the specified redist folder is in the same place the setup is in, but both of them don't work. My setup right now is like this:

Code:

[Redists]
Enable=1

Redist1.Enable=1
Redist1.Name=DirectX
Redist1.Level=0
Redist1.ItemType=CHECK
Redist1.Checked=1
Redist1.Enabled=1
Redist1.Exe32={app}\redist\dx.exe
Redist1.Exe64={app}\redist\dx.exe
Redist1.Param=


pcblizzard 11-09-2022 01:14

Funny, that's exactly the problem I'm having right now, and wanted to ask what the problem is. :) Both “DirectX” and “Microsoft Visual C++ 2015-2022” are simply ignored.

Code:

[Redists]
Enable=1

Redist1.Enable=1
Redist1.Name=Microsoft DirectX
Redist1.Level=0
Redist1.ItemType=CHECK
Redist1.Checked=1
Redist1.Enabled=1
Redist1.Exe32={app}\_redist\directx\DXSETUP.exe
Redist1.Exe64={app}\_redist\directx\DXSETUP.exe
;Redist1.Param=/silent

Redist2.Enable=1
Redist2.Name=Microsoft Visual C++ 2015-2022
Redist2.Level=0
Redist2.ItemType=CHECK
Redist2.Checked=1
Redist2.Enabled=1
Redist2.Exe32={app}\_redist\vc_redist_2015_2022\VC_redist.x86.exe
Redist2.Exe64={app}\_redist\vc_redist_2015_2022\VC_redist.x64.exe
;Redist2.Param=/q /norestart

And is it possible to say in the “settings.ini” that e.g., “Microsoft Visual C++ 2015-2022” is mandatory and the entry is preselected and not deselectable? In the normal Inno setup script [under “Components”] the “Fixed” command works, but not here.

KaktoR 11-09-2022 02:10

I checked quick, don't have really any time today, but the problem is somewhere in ssPostInstall step, at least debug mode tells me (the whole redist part is not processed).

I will look at it further tomorrow :)

Cesar82 11-09-2022 10:08

1 Attachment(s)
Quote:

Originally Posted by pcblizzard (Post 498279)
Funny, that's exactly the problem I'm having right now, and wanted to ask what the problem is. :) Both “DirectX” and “Microsoft Visual C++ 2015-2022” are simply ignored.

Code:

[Redists]
Enable=1

Redist1.Enable=1
Redist1.Name=Microsoft DirectX
Redist1.Level=0
Redist1.ItemType=CHECK
Redist1.Checked=1
Redist1.Enabled=1
Redist1.Exe32={app}\_redist\directx\DXSETUP.exe
Redist1.Exe64={app}\_redist\directx\DXSETUP.exe
;Redist1.Param=/silent

Redist2.Enable=1
Redist2.Name=Microsoft Visual C++ 2015-2022
Redist2.Level=0
Redist2.ItemType=CHECK
Redist2.Checked=1
Redist2.Enabled=1
Redist2.Exe32={app}\_redist\vc_redist_2015_2022\VC_redist.x86.exe
Redist2.Exe64={app}\_redist\vc_redist_2015_2022\VC_redist.x64.exe
;Redist2.Param=/q /norestart

And is it possible to say in the “settings.ini” that e.g., “Microsoft Visual C++ 2015-2022” is mandatory and the entry is preselected and not deselectable? In the normal Inno setup script [under “Components”] the “Fixed” command works, but not here.

Try with this hotfix (I didn't have time to test).

L33THAK0R 11-09-2022 10:40

Bizarre update for anyone else in the future who encounters my issue, it seems "WizardForm.DirEdit" & "WizardForm.DirBrowseButton" were the culprits of my bizarre element issue and simply hiding them resolves this. I've done some digging but alas I've no idea what the scripts reasoning is for creating this rogue overlapping element.

KaktoR 11-09-2022 11:45

There are some other elements which glitch around :D

All of these problems with misplaced and glitched elements started when I was trying to resize the original wizardform way back, which was - to my naive surprise - problematic in the past because there seems to be a internal limitation in Inno Setup source for some reason (if you want to make the installer surface bigger then default). Not sure but I think it was the Wizardform.Innerpage which was the real problem, that's why there exists a funny procedure GrowWizard to get rid of this problem.

pcblizzard 11-09-2022 12:45

Quote:

Originally Posted by Cesar82 (Post 498288)
Try with this hotfix (I didn't have time to test).

The script works! Thank you very much!

KaktoR 11-09-2022 13:15

Made some changes and added quicksfv alternative crc checking a week ago. Wanted to wait for next DSG but it let us wait and I don't know if anything have to be changed in script yet. So here is a new update.

Code:

v7.3.7
_____________________________________________________
- Added QuickSFV option again as alternative crc check option after installation
  > Note: You can't use both options
- Fixed redist installation (thanks to Cesar)
- Fixed some other things

https://fileforums.com/showpost.php?...postcount=1191

ROKA1969 15-09-2022 11:26

1 Attachment(s)
In my case, the progress bar doesn't work in version 7.3.5, I didn't have this problem.

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

How can anyone check this under the link is my script

fabrieunko 15-09-2022 19:58

hello is an update planned for DiskSpan support 2.0.1.2?

Cesar82 15-09-2022 21:47

Quote:

Originally Posted by fabrieunko (Post 498339)
hello is an update planned for DiskSpan support 2.0.1.2?

One thing at a time... Wait!
Soon the Light Installer Script will be supported.
Then the CIU and then the ASIS and then the other installers.
Just don't use the new features with outdated scripts and errors will not occur even using DiskSpan GUI 2.0.1.2.

KaktoR 16-09-2022 00:49

Quote:

Originally Posted by fabrieunko (Post 498339)
hello is an update planned for DiskSpan support 2.0.1.2?

It is compatible. Only the new hash function in DSG does not work with ASIS at the moment.

Quote:

Originally Posted by ROKA1969 (Post 498332)
In my case, the progress bar doesn't work in version 7.3.5, I didn't have this problem.

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

How can anyone check this under the link is my script

I will check

ROKA1969 16-09-2022 11:01

It has already been clarified that the problem was the upgrade to version 7.3.7. Version 7.3.6 + fix redist itself works fine.
https://i.imgur.com/Fu0AsJP.png

KaktoR 16-09-2022 11:19

1 Attachment(s)
Works here (v7.3.7)

fabrieunko 16-09-2022 12:01

Hello, I just tested version 7.3.7 it works very well. but I have a problem when I test with QuickSFV.
I generated an sfv file but it gives me an error see image. maybe the checksum file is not copied to the right place? if I copy it into the tu game directory and launch QuickSFV manually it works


https://zupimages.net/up/22/37/d1u7.jpg

KaktoR 16-09-2022 16:21

Quote:

Originally Posted by fabrieunko (Post 498364)
Hello, I just tested version 7.3.7 it works very well. but I have a problem when I test with QuickSFV.
I generated an sfv file but it gives me an error see image. maybe the checksum file is not copied to the right place? if I copy it into the tu game directory and launch QuickSFV manually it works


https://zupimages.net/up/22/37/d1u7.jpg

The problem seems that you can't set the WorkingDir constant in Exec function correctly for QuickSFV.exe

If you set RunFromAppFolder=1 it works fine. I have removed the RunFromAppFolder option temporarily if you use QuickSFV until I find another solution.

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

Here is v7.3.8
https://fileforums.com/showthread.ph...028#post498028

Code:

v7.3.8
_____________________________________________________
- Fixed INI options if the file was not present in {app} dir the installer has created the file instead
- Removed RunFromAppFolder setting temporarily if you use QuickSFV


L33THAK0R 19-09-2022 10:11

Is it possible to implement external labels to replace TimeStr1/2/3? I've got the issue currently where the time elapsed/remaining labels are cut off by the WizardForm boundaries, however this issue would be resolved if I were able to shorten "hour(s)"/"minute(s)"/"second(s)" to something simpler such as "hr(s)"/"min(s)"/"sec(s)", however I'm currently unable to figure out how to do so.

Masquerade 19-09-2022 11:10

Quote:

Originally Posted by L33THAK0R (Post 498387)
Is it possible to implement external labels to replace TimeStr1/2/3? I've got the issue currently where the time elapsed/remaining labels are cut off by the WizardForm boundaries, however this issue would be resolved if I were able to shorten "hour(s)"/"minute(s)"/"second(s)" to something simpler such as "hr(s)"/"min(s)"/"sec(s)", however I'm currently unable to figure out how to do so.

If I am correct in thinking, these strings are read from ISDone's configurations. So, just edit the corresponding ini file for each language in "Resources\Includes" folder. Should fix your problem.

L33THAK0R 19-09-2022 21:27

Quote:

Originally Posted by Masquerade (Post 498390)
If I am correct in thinking, these strings are read from ISDone's configurations. So, just edit the corresponding ini file for each language in "Resources\Includes" folder. Should fix your problem.

Ah cheers, I didn't even think to check the config files, definitely makes things easier!

KaktoR 21-09-2022 10:37

1 Attachment(s)
Code:

v7.3.9
_____________________________________________________
- The script is now compatible with DiskSpan_GUI v2.0.1.2+ (thanks to César)
  > Hash files created with DSG v2.0.1.2+ can be used with ASIS now
  > Note that for QuickSFV you have to create hash file manually and place it in Setup folder (like before)
- Removed RunFromAppFolder setting completely
  > If you use QuickSFV for hash checking, hash file and QuickSFV.exe will now be executed from {app} folder
  > QuickSFV.exe and QuickSFV.ini will be deleted from {app} folder after hash check is finished


fabrieunko 22-09-2022 19:31

Hello, I have just tested ASIS 7.3.9 with the QuickSFV function and I have a small error when the installation is finished and it asks to test the files. here are the screens:

Code:

[CRCCheck]
//----------------------------------------------- Setup\Filename.md5 \ .sha1 \ .sha256 \ .sha512
Enable=1
StartCheck=1
QuickSFV=1
QuickSFVFile=checksums.md5

in my setup I have created a file checksums.md5

but when the installer finished. and want to test the files I have:

https://zupimages.net/up/22/38/bypw.png

another problem when the file test starts, this one says:
Control ... directory name / filename.pak (221 GB out of 526 GB) when it should indicate 2.21 and 5.26

https://zupimages.net/up/22/38/ngg0.png

abror 25-09-2022 08:17

anyone please tell me how to remove or hide the "Pause" button

L33THAK0R 25-09-2022 10:17

Quote:

Originally Posted by abror (Post 498480)
anyone please tell me how to remove or hide the "Pause" button

At least for compact mode, just change all entries of
Code:

PauseButton.Show;
to
Code:

PauseButton.Hide;
in your "Script.iss"

abror 25-09-2022 10:42

Quote:

Originally Posted by L33THAK0R (Post 498481)
At least for compact mode, just change all entries of
Code:

PauseButton.Show;
to
Code:

PauseButton.Hide;
in your "Script.iss"

thank you for helping

abror 25-09-2022 10:45

1 Attachment(s)
I want to report a problem with version v7.3.9

If I turn off the crc check an error will occur

Attachment 32715

KaktoR 25-09-2022 11:28

2 Attachment(s)
Code:

v7.4.0
_____________________________________________________
- The script is now compatible with DiskSpan_GUI v2.0.1.3+ (thanks to César)
- Fixed some bugs
Hotfix 1:
 - Fixed QuickSFV not reading hash file if path/file name contains spaces
 - Added option to turn off Windows 11 information


ROKA1969 26-09-2022 04:00

I would like to have only two languages in the language selection window: Polish and English, I removed all entries for other languages in the script, but they are still displayed in the selection window

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

I also deleted the ASIS folder but they keep showing up. Anyone help?

I will add that using QuickSFV also displays the same error as my friend fabrieunko

https://www.zupimages.net/up/22/38/bypw.png

KaktoR 26-09-2022 04:03

Comment out languages in "function CreateLangDialog(): Boolean;"

KaktoR 26-09-2022 04:23

Quote:

Originally Posted by ROKA1969 (Post 498498)
I will add that using QuickSFV also displays the same error as my friend fabrieunko

https://www.zupimages.net/up/22/38/bypw.png

Works here
https://i.imgur.com/dEpPt3O.png

Send me Settings.ini + Script.iss


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

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