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


All times are GMT -7. The time now is 12:32.

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