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)

Cesar82 26-09-2022 08:53

From the messagebox it looks like the filename is empty.

Masquerade 26-09-2022 09:00

Quote:

Originally Posted by ROKA1969 (Post 498498)
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

QuickSFV will display this error if there are spaces in the file path where the MD5 checksum is stored. The string needs wrapping in quotation marks.

abror 26-09-2022 09:01

1 Attachment(s)
is there a way to get rid of the popup at the start of this install?

Attachment 32723

Masquerade 26-09-2022 09:05

Seconding this, which methods are supposedly not working on Windows 11? I have been making my repacks under Windows 11 for months now and have not encountered any such problems. If there's anything you would like testing, just ask.

Cesar82 26-09-2022 09:09

Quote:

Originally Posted by abror (Post 498505)
is there a way to get rid of the popup at the start of this install?

Attachment 32723

Comment out lines 4219 and 4220 of the script with //
Code:

    //if (FailWinEleven = '') and (MessageBox(WizardForm.Handle, 'Some of the methods used in this compression may not be supported by Windows 11.' + #13#10 + #13#10 + 'Would you like to continue anyway?', SetupMessage(msgSetupAppTitle), MB_ICONQUESTION or MB_YESNO or MB_TASKMODAL) <> IDYES) then
    //  Exit;

But be aware that this is a warning and that installation errors may occur because one of the methods is not supported by Windows 11.

Quote:

Originally Posted by Masquerade (Post 498504)
QuickSFV will display this error if there are spaces in the file path where the MD5 checksum is stored. The string needs wrapping in quotation marks.

Try changing line 5231 of the script as shown below:
Code:

            ShellExec('open', ExpandConstant('{app}\QuickSFV.exe'), AddQuotes(ExpandConstant('{app}\{#QuickSFVFile}')), '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode);
Quote:

Originally Posted by Masquerade (Post 498507)
Seconding this, which methods are supposedly not working on Windows 11? I have been making my repacks under Windows 11 for months now and have not encountered any such problems. If there's anything you would like testing, just ask.

From what I've understood so far they are: xt_zlib (xzlib), xt_lzo (xlzo), xtool:manvil:lzo, xtool:mfc3, xtool:mfc4, lzorec

For the xt_zlib method (from the old xtool) the old DLL zlibwapi.dll (102 Kb) was replaced by the DLL used with the new XTool (523 Kb) and the problem was fixed (I hope it has the same compression gain).
For errors in the other methods above the incompatible library is lzo2.dll (103 Kb) which does not work with Windows 11.

You can blacklist the DiskSpan GUI new methods that occur extraction errors in windows 11, for this include in the FailWinEleven= key of the [SETTINGS] section of DSG_Methods.ini.
The methods listed if used will show a warning to the user before compression and also during installation.

For errors of this type to occur, it is necessary to compress it on Windows 10 or lower and install it on Windows 11.
Compressing on windows 11 will not show errors even during installation because the libraries will be ignored and there will be no precompression (Ratio 100%).

KaktoR 26-09-2022 09:22

Code:

Hotfix 1:
 - Fixed QuickSFV not reading hash file if path/file name contains spaces
 - Added option to turn off Windows 11 information

https://fileforums.com/showthread.ph...487#post498487

Cesar82 26-09-2022 09:27

@Masquerade see my previou post.

ROKA1969 26-09-2022 10:11

Quote:

Originally Posted by KaktoR (Post 498499)
Comment out languages in "function CreateLangDialog(): Boolean;"

Now I have two languages working. Thank you :)

ROKA1969 26-09-2022 10:41

Quote:

Originally Posted by KaktoR (Post 498510)
Code:

Hotfix 1:
 - Fixed QuickSFV not reading hash file if path/file name contains spaces
 - Added option to turn off Windows 11 information

https://fileforums.com/showthread.ph...487#post498487

Works fine with fix 1. Thank you !!

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

If it was possible to remove the checksums.md5 file from the game folder after verification, I would be happy :)

KaktoR 27-09-2022 02:37

Quote:

Originally Posted by ROKA1969 (Post 498514)
If it was possible to remove the checksums.md5 file from the game folder after verification, I would be happy :)

Edit the following code

Code:

if HashCheckCB.Checked then
  begin
    PercentLabel.Hide;
    ElapsedLabel.Hide;
    RemainingLabel.Hide;
    WizardForm.FilenameLabel.Caption := ExpandConstant('{cm:HashPageTitle}');
    WizardForm.ProgressGauge.Hide;
    FileCopy(ExpandConstant('{tmp}\QuickSFV.exe'), ExpandConstant('{app}\QuickSFV.exe'), False);
    FileCopy(ExpandConstant('{tmp}\{#QuickSFVFile}'), ExpandConstant('{app}\{#QuickSFVFile}'), False);
    ShellExec('open', ExpandConstant('{app}\QuickSFV.exe'), ExpandConstant('"{app}\{#QuickSFVFile}"'), '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode);
    DeleteFile(ExpandConstant('{app}\QuickSFV.exe'));
    DeleteFile(ExpandConstant('{app}\QuickSFV.ini'));
    DeleteFile(ExpandConstant('{app}\{#QuickSFVFile}'));


ROKA1969 27-09-2022 05:45

1 Attachment(s)
KaktoR thank you :) Reliable as always !!

However, I noticed an error. After selecting the redists in the installer during their installation, windows with the C: \ Windows \ folder open, when I uncheck them, everything works normally. I checked on my script and on a clean script downloaded from here:

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

I am adding my scrypt for inspection

Attachment 32748

KaktoR 02-10-2022 05:21

Quote:

Originally Posted by ROKA1969 (Post 498535)
KaktoR thank you :) Reliable as always !!

However, I noticed an error. After selecting the redists in the installer during their installation, windows with the C: \ Windows \ folder open, when I uncheck them, everything works normally. I checked on my script and on a clean script downloaded from here:

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

I am adding my scrypt for inspection

Attachment 32748

You have some errors in your settings.
  1. Section=[GameSettings]
    You don't have to use brackets here ([]). Inno Setup would assume the INI section would look like this: [[GameSettings]]
  2. For the redist installation you have to fill both Exe32 and Exe64 keys

KaktoR 02-10-2022 05:27

1 Attachment(s)
Code:

v7.4.1
_____________________________________________________
- New option added to delete hash file after file vericifation
- Changed batch execution behavior
  > Batch file will now be executed always from {app} directory (working dir = {app})
  > Because I was asked, theoretically it is possible to execute other files then bat/cmd aswell
    as long as Inno knows how to open them (the script is using ShellExec function with 'open' verb)
  > Batch file has to be in Setup folder
- Updated BASS audio library to v2.4.16.7
- Updated help file


KaktoR 02-10-2022 13:04

Change in Line 86

Code:

#define DeleteHashFile YesNo(ReadIni(Settings, "CRCCheck", "QuickSFVDeleteHashFile", ""))
I have forgot to change it

ROKA1969 04-10-2022 07:45

Users are reporting to me that my installer reports an error:

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

I don't know what's going on, doesn't ASIS support windows x86 version or only x64 versions?

KaktoR 04-10-2022 08:05

It is x64 only.

ROKA1969 04-10-2022 09:43

Is it possible to run it on windows x86?

Masquerade 04-10-2022 09:56

Quote:

Originally Posted by ROKA1969 (Post 498600)
Is it possible to run it on windows x86?

It pays to actually read the reply KaktoR gave you.
Quote:

Originally Posted by KaktoR (Post 498598)
It is x64 only.


KaktoR 04-10-2022 11:25

I wonder what people still use x86 OS, but whatever.

You could try to delete the following lines from [Setup], but I can not guarantee that it will not brake up something and I will not give any support for it. Do at your own risk.

Code:

ArchitecturesInstallIn64BitMode=x64
ArchitecturesAllowed=x64


Cesar82 04-10-2022 15:10

The installer will run but the decompressors being x64 will not work.

pcblizzard 05-10-2022 11:53

I think I have found another “bug” in v7.4.1:

If I set “StartCheck” to “1”, the CRC check should start automatically at the end of the installation, but it does not. It just comes up with the “installation is finished” window, nothing more.

Settings.ini
Code:

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

Script.iss:
Code:

// CRCCheck
#define CheckCRC YesNo(ReadIni(Settings, "CRCCheck", "Enable", ""))
#define StartCRC YesNo(ReadIni(Settings, "CRCCheck", "StartCheck", ""))   
// QuickSFV Options
#define UseQuickSFV YesNo(ReadIni(Settings, "CRCCheck", "QuickSFV", ""))
#define QuickSFVFile ReadIni(Settings, "CRCCheck", "QuickSFVFile", "")
#define DeleteHashFile YesNo(ReadIni(Settings, "CRCCheck", "DeleteHashFile", ""))

Or am I just making a (thinking) mistake?


KR blizz

KaktoR 05-10-2022 12:20

Works fine here.

Did you check the "Check CRC" checkbox?

Edit: Make sure you have included the hash file in Setup.dll and name file extension to ".dat" and add it to records.ini aswell like this
Code:

[Record#]
Type=Checksum_File
Source={tmp}\hashfile.dat
Output={app}\
Disk=1


pcblizzard 05-10-2022 12:44

Yes, the "Check CRC" is preselected (deactivating and re-selecting also did nothing). Hm... I'll have to see what the problem is.

EDIT: The "StartCheck" option does not only work if I set "QuickSFV" to "1", correct?

KaktoR 05-10-2022 13:06

The "StartCheck" option is only relevant if you don't use QuickSFV check. QuickSFV check starts always automatically if unpack process is finished.

pcblizzard 05-10-2022 13:25

Hm ... very funny. I don't know what's wrong with me (I've also tried settings from previous versions [of course everything has been adjusted] but it just won't work.

These are my standard settings in “Settings.ini”

Code:

Enable=1
StartCheck=1
QuickSFV=0
QuickSFVFile=check.md5
QuickSFVDeleteHashFile=0

And in the screenshot you can see the last window, neither before nor after that anything happened in terms of a CRC check.

Another thing I noticed is that when I have “StartCheck=0", the window no longer appears (i.e., where I then have to start the check manually [which still appeared with 7.3.x]), so it must definitely be me. Then I'll try an older version of the script.


KR blizz

KaktoR 05-10-2022 13:41

I'm asking again: Is your hash file included in Setup.dll and Records.ini?

Send me all relevant files for testing (Settings.ini, Setup.dll).

pcblizzard 05-10-2022 13:53

Okay, i will send you the Files via PN.

Cesar82 05-10-2022 18:19

Quote:

Originally Posted by KaktoR (Post 498627)
I'm asking again: Is your hash file included in Setup.dll and Records.ini?

Send me all relevant files for testing (Settings.ini, Setup.dll).

I'm not sure, but I think you can even use other directories or file extension (If you manually enter records.ini).

Code:

[Record#]
Type=Checksum_File
Source={src}\HASH\hashfile.md5
Output={app}\
Disk=1

[Record#]
Type=Checksum_File
Source={app}\hashfile.sfv
Output={app}\
Disk=1

If you use any constant, it will be copied to the temporary folder, generating a new name with a .dat extension and merging if necessary
If using {app} the file will not be deleted from the installation folder after checking.

Names without constants in the Source= key cannot be used.

L33THAK0R 12-10-2022 19:24

I'm not quite sure how it would work since I'm aware the current system orders the current lists of components/tasks using the integer value, but would it be possible to use a separate value to dictate the order that components/tasks appear, and instead attaching a string label to the component/task? I'm definitely interested in trying to implement this myself, since its definitely a niche use-case, given I'm sure the majority of users don't have extensive component/task lists that regularly differ and need to be re-ordered. If anyone could give me some guidance on what a possible solution would require I'd greatly appreciate it.

I'm not great at describing what I'm attempting in a succinct manner, so heres a brief mockup:

Records.ini entry
Code:

[Record10]
Type=Freearc_Original
Source={src}\l33t-data-1.bin
Output={app}\
Disk=10
Component=MAINDATA

Settings.ini entry
Code:

ComponentMAINDATA.Name=Main Files
ComponentMAINDATA.ItemType=CHECK
ComponentMAINDATA.Size=2.42 GB
ComponentMAINDATA.Level=0
ComponentMAINDATA.Checked=1
ComponentMAINDATA.Enabled=0
ComponentMAINDATA.Order=1

ADDITIONAL EDIT:
I had a quick thought that it might even be easier at a glance to order items if there was a separate Settings.ini entry solely for the order of items, so for example:

Settings.ini entry
Code:

[ComponentOrder]
1=MAINDATA
2=placeholder
3=placeholder

[TaskOrder]
1=placeholder
2=placeholder
3=placeholder


KaktoR 16-10-2022 04:59

Sorry for late response, was out of the house for a few days.

Sure it is possible but it requires extensive editing. I'm pretty sure no one will ever do that.

L33THAK0R 16-10-2022 09:49

Quote:

Originally Posted by KaktoR (Post 498725)
Sorry for late response, was out of the house for a few days.

Sure it is possible but it requires extensive editing. I'm pretty sure no one will ever do that.

No worries, thanks for the response! I'm definitely feeling confident I could probably get it working (I've had some pretty decent success with overwriting existing infrastructure to introduce my own, to better suit my needs), I'm just trying to figure out where to start looking, I can easily find the logic for existing component/tasks attributes (eg. .Name, .ItemType, .Size, .Level), but I can't find the logic for the order of component/task items, would you by any chance remember where abouts this was implemented?

Cesar82 16-10-2022 11:01

Quote:

Originally Posted by L33THAK0R (Post 498726)
No worries, thanks for the response! I'm definitely feeling confident I could probably get it working (I've had some pretty decent success with overwriting existing infrastructure to introduce my own, to better suit my needs), I'm just trying to figure out where to start looking, I can easily find the logic for existing component/tasks attributes (eg. .Name, .ItemType, .Size, .Level), but I can't find the logic for the order of component/task items, would you by any chance remember where abouts this was implemented?

You should be aware that the Component=, Task= and Language= keys of records.ini also support multiple comma-separated values.

Code:

[Record10]
Type=Freearc_Original
Source={src}\l33t-data-1.bin
Output={app}\
Disk=10
Component=1,2,6
Task=3,7
Language=EN,DE,FR


L33THAK0R 16-10-2022 20:30

Quote:

Originally Posted by Cesar82 (Post 498727)
You should be aware that the Component=, Task= and Language= keys of records.ini also support multiple comma-separated values.

Code:

[Record10]
Type=Freearc_Original
Source={src}\l33t-data-1.bin
Output={app}\
Disk=10
Component=1,2,6
Task=3,7
Language=EN,DE,FR


Ah thanks for the heads up, this'll definitely be useful in the future!

ROKA1969 29-10-2022 20:23

what could this error mean?

*Running instaler with selected language failed. Code 5*

I will add that after creating the installer, the installation is successful for me

Masquerade 30-10-2022 00:32

Quote:

Originally Posted by ROKA1969 (Post 498932)
what could this error mean?

*Running instaler with selected language failed. Code 5*

I will add that after creating the installer, the installation is successful for me

You need to unblock the setup in it's properties. Windows security is going nuts

KaktoR 30-11-2022 13:10

Code:

v7.4.2
_____________________________________________________
- Made some additions to CLS.ini settings
- Updated XHashEx library
- Compatible with DiskSpan_GUI v2.0.1.4+
- Fixed some window color issues, especially with checkboxes

First post

fabrieunko 30-11-2022 22:17

hello, I downloaded version 7.4.2 I launched the script.bat compile file without modifying the settings.ini file and it worked well. but when I modify the settings.ini file for my game. I got an error message.

With version 7.4.1 I have no error when compiling

https://zupimages.net/up/22/48/psgb.png

My ini

Code:

[Settings]
Name=From Space
Size=2.30 GB
Creator=UnK
DefaultInstallDir={sd}\Games
UnInstallFolder=_UnInstall
ShowLanguageBox=0
CompactMode=0
UWPGame=0
Savegamefolder={userdocs}\From Space
Win11Warning=0


[UpdateSettings]
UpdateMode=0
FileCheck=Hk_project\Binaries\Win64\Stray-Win64-Shipping.exe


[Executable1]
ShortcutName=From Space
Exe=FromSpace.exe
ExeParam=
IconFileName=UnK.ico
Component=


[INISettings]
Enable=0
INIFile={app}\steam_emu.ini
Section=Settings
Key=UserName
Value={username}


[Text]
WelcomeLabel1Top=235
WelcomeLabel2Top=295
FinishLabel1Top=235
FinishLabel2Top=295
WelcomeLabel1FontSize=14
WelcomeLabel2FontSize=10
FinishLabel1FontSize=14
FinishLabel2FontSize=10
Font=Alegreya Sans
FontColor=$ffffff


[Button]
PlaySound=1

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

;; requires at least two components to enable page.
;; if components is used the global size will be ignored.
Component1.Name=Component 1
Component1.ItemType=CHECK
Component1.Size=4.15 GB
Component1.Level=0
Component1.Checked=1
Component1.Enabled=1

Component2.Name=Component 2
Component2.ItemType=CHECK
Component2.Size=8.75 GB
Component2.Level=0
Component2.Checked=1
Component2.Enabled=1

Component3.Name=Component 3
Component3.ItemType=CHECK
Component3.Size=18.00 GB
Component3.Level=0
Component3.Checked=1
Component3.Enabled=1

Component4.Name=Component 4
Component4.ItemType=CHECK
Component4.Size=18.00 GB
Component4.Level=0
Component4.Checked=1
Component4.Enabled=1


[TasksSettings]
Enable=0
FlatPageMode=0
ShowTaskSize=1

Task1.Name=Soundtrack Game 1
Task1.ItemType=CHECK
Task1.Size=100 Mb
Task1.Level=0
Task1.Checked=1
Task1.Enabled=1

Task2.Name=Soundtrack Game 2
Task2.ItemType=CHECK
Task2.Size=210 Mb
Task2.Level=0
Task2.Checked=1
Task2.Enabled=1


[Background]
//----------------------------------------------- Setup\Background\#.jpg
Enable=0
BackgroundDuration=5000
BackgroundAnimation=1
BGAfterInstall=1


[SystemRequirement]
Enable=0
Processor=32
VideoRAM=2048
RAM=4096
OS=1000
DirectX=11
HWSectionLabelColor=$ea00ff
HWOkLabelColor=$357EC7
HWNotOkLabelColor=$ff0000
HWGoodLabelColor=$36ff00
HWPartiallyGoodLabelColor=$ff8400
HWNotGoodLabelColor=$ff0000


[CRCCheck]
//----------------------------------------------- Setup\Filename.sfv \ Filename.md5 \ .sha1 \ .sha256 \ .sha512
Enable=1
StartCheck=1
QuickSFV=0
QuickSFVFile=Stray.md5
QuickSFVDeleteHashFile=0


[Website]
Enable=1
WebsiteButtonText=Repack
URL=https://www.reddit.com/r/Gamepc_Repack/


[Splash]
//----------------------------------------------- Setup\Filename.png
Enable=1
SplashFile=Splash.png
SplashFadeIn=500
SplashShow=1000
SplashFadeOut=500


[Music]
//----------------------------------------------- Setup\Filename.mp3
Enable=1
MusicFile=Music.mp3
MusicVolume=70


[License]
//----------------------------------------------- Setup\EULA\English.rtf \ French.rtf \ German.rtf \ Italian.rtf \ Spanish.rtf \ Polish.rtf \ Russian.rtf \ PortugueseBrazil.rtf
Enable=0


[InfoBefore]
//----------------------------------------------- Setup\InfoBefore.rtf \ InfoBefore.txt
Enable=1


[Skin]
//----------------------------------------------- Setup\Filename.cjstyles \ Filename.vsf
EnableCjstyles=0
CjstylesFile=Concave.cjstyles
CjstylesParam=

EnableVCL=1
VCLFile=Amakrits.vsf


[Redists]
Enable=0

Redist1.Enable=1
Redist1.Name=Microsoft DirectX
Redist1.Level=0
Redist1.ItemType=CHECK
Redist1.Checked=0
Redist1.Enabled=1
//Redist1.Exe32={src}\_CommonRedist\DirectX\Juin2010\DXSETUP.exe
Redist1.Exe64={src}\_CommonRedist\DirectX\dxwebsetup.exe
Redist1.Param=

Redist2.Enable=1
Redist2.Name=Microsoft Visual C++ 2022
Redist2.Level=0
Redist2.ItemType=CHECK
Redist2.Checked=0
Redist2.Enabled=1
//Redist2.Exe32={src}\_CommonRedist\vcredist\2019\VC_redist.x86.exe
Redist2.Exe64={src}\_CommonRedist\vcredist\2022\VC_redist.x64.exe
Redist2.Param=


[Batch]
Enable=0
BatchFile=Patch.bat

//////////////////////////////////////////////////////////////////////


KaktoR 01-12-2022 01:57

Thanks for the report.

The error comes from crc check if you don't use quicksfv. I will fix it later.

KaktoR 01-12-2022 10:04

1 Attachment(s)
Here is a fix

Gehrman 01-12-2022 15:25

How can you add a label in ASIS: Advanced Simple Installer Script like the image below?
https://upload.cc/i1/2022/12/02/pwj4BU.jpg


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

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