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)

Masquerade 21-06-2021 12:18

Quote:

Originally Posted by L33THAK0R (Post 492962)
Darn, might be the version of pzlib I'm using then! I've been using the stock standard cls-srep that ASIS v7.2.0 ships with, time to test out some older versions of pzlib me thinks.

Why are you not using xtool?

L33THAK0R 21-06-2021 16:18

Quote:

Originally Posted by Masquerade (Post 492964)
Why are you not using xtool?

Best I can get with xtool (zlib codec, version 0.3.20), with srep and lolz, is ~9gb output (I forgot if thats with preflate or reflate, but I tried both), pzlib v3 is able to squash the input down to ~3gb, I know it's possible (and likely at this point) that the outputs from pzlib v3 may be corrupt, however they're in-line with results claimed by other users on this forum.

KaktoR 06-07-2021 03:17

2 Attachment(s)
The Cesar update

Code:

v7.3.1
_____________________________________________________
- ASIS is now fully compatible with DiskSpan GUI v2.0+ (thanks to Cesar82)
  > Old DiskSpan GUI versions aren't compatible anymore
  > You can still use your own archives with ASIS (make Setup.dll manually!)
  > ASIS is now x64 ONLY!
- Remade the Redists code part (thanks to Cesar82)
  > You can now use theoretical unlimited items for your Redists
- Added options for InternalDLL and PasswordDLL inside Script.iss (thanks to Cesar82)
  > Putting Setup.dll next to the script will compress the DLL file into the Setup.exe file
  > Same password used in DiskSpan_GUI to extract decompressors from Setup.dll files
- Changed components (thanks to Cesar82)
  > The components are now exclusive for game collections
- Added Tasks (thanks to Cesar82)
  > With tasks you can define optional content to install for your installation, such
    as languages, soundtrack, wallpapers, ... (this was the former components)
- It is now possible to use TXT and RTF files for EULA (thanks to Cesar82)
- Changed the time remaining label (thanks to Cesar82)
  > It will now be visible with more then one archive.
    Progress is now calculated according to the size of the arc generated by DiskSpan GUI.
    Example: If DiskSpan GUI generates 2 archives, the first 400 mb and the second 100 mb means
    that the first archive will occupy 80% and the second 20%.
    So when extracting arc1, 0.80 will be passed in the second parameter (PctOfTotal) of IsDone's
    IsArcExtract function. For the second file 0.20 will be sent.
    If you don't have the sizes in Records.ini, it will be divided by the number of files, which is 0.50/0.50.
    If you don't use DiskSpan GUI for generating records.ini, you can do it manually (like with records.inf)
- Updated BASS.dll library (thanks to Cesar82)
- Updated some other things (thanks to Cesar82)

I did many tests with this, but maybe I didn't test all 100%. If you encounter any bugs, let us know.

First post updated with new images.

Cesar82 06-07-2021 17:31

Fix ASIS error on disable task page:
Change text in script line 4063.
Code:

#ifdef UseTasks

change to:

#if UseTasks


L33THAK0R 06-07-2021 19:05

Would it be possible to add some of the changes to the CheckCRC section of ASIS v7.3.1 to v7.2.0? Specifically line 5527 under the [Custom Messages] section:
Code:

english.label2={#if CompactMode}Overall progress:{#else}Total files: %1  Files processed: %2    Ok: %3  Missing: %4  Bad: %5{#endif}
I attempted to do so myself but was met unsucessful.

KaktoR 07-07-2021 11:14

Quote:

Originally Posted by L33THAK0R (Post 493120)
Would it be possible to add some of the changes to the CheckCRC section of ASIS v7.3.1 to v7.2.0? Specifically line 5527 under the [Custom Messages] section:
Code:

english.label2={#if CompactMode}Overall progress:{#else}Total files: %1  Files processed: %2    Ok: %3  Missing: %4  Bad: %5{#endif}
I attempted to do so myself but was met unsucessful.

Send me the source code of v7.2.0 (I don't have it anymore) and I will look into it.

L33THAK0R 07-07-2021 17:39

2 Attachment(s)
Quote:

Originally Posted by KaktoR (Post 493137)
Send me the source code of v7.2.0 (I don't have it anymore) and I will look into it.

Thank you so much for offering to help! Attached is ASIS v7.2.0 (for anyone else unable to find it) as well as just the script for v7.2.0.

KaktoR 08-07-2021 02:37

1 Attachment(s)
Like this?

L33THAK0R 08-07-2021 05:13

Quote:

Originally Posted by KaktoR (Post 493149)
Like this?

Argh, yeah, completely forgot v7.2.0 would have a "custom messages.iss", sorry for bothering you with such a trivial issue, thanks so much, this is a massive help!

BKR-TN 11-07-2021 00:03

Make first letter uppercase for languages in Tasks page for v7.3.1
 
To make first letter uppercase for languages in Tasks page when choosing English as the setup language, go to line (5541) in "Script.iss" and change:
Code:

{#if UseComponents}english.Compenglish=english{#endif}
{#if UseComponents}english.Compfrench=french{#endif}
{#if UseComponents}english.Compgerman=german{#endif}
{#if UseComponents}english.Compitalian=italian{#endif}
{#if UseComponents}english.Compspanish=spanish{#endif}
{#if UseComponents}english.CompMexican=Mexican{#endif}
{#if UseComponents}english.Comppolish=polish{#endif}
{#if UseComponents}english.Comprussian=russian{#endif}
{#if UseComponents}english.Compportuguesebrazil=Portuguese (Brazil){#endif}
{#if UseComponents}english.Compczech=czech{#endif}

to:
Code:

{#if UseComponents}english.Compenglish=English{#endif}
{#if UseComponents}english.Compfrench=French{#endif}
{#if UseComponents}english.Compgerman=German{#endif}
{#if UseComponents}english.Compitalian=Italian{#endif}
{#if UseComponents}english.Compspanish=Spanish{#endif}
{#if UseComponents}english.CompMexican=Mexican{#endif}
{#if UseComponents}english.Comppolish=Polish{#endif}
{#if UseComponents}english.Comprussian=Russian{#endif}
{#if UseComponents}english.Compportuguesebrazil=Portuguese (Brazil){#endif}
{#if UseComponents}english.Compczech=Czech{#endif}

Edit:
If I disable Components or removed Component2 from settings.ini I get this error after choosing setup language:
https://i.imgur.com/Qixgzpum.jpg

KaktoR 11-07-2021 02:18

Thanks for reporting.

The problem comes somewhere from the tasks

I will look at it.

Cesar82 11-07-2021 05:25

Quote:

Originally Posted by KaktoR (Post 493201)
Thanks for reporting.

The problem comes somewhere from the tasks

I will look at it.

Change in all lines that refer to components in the [CustomMessages] section from:
Code:

{#if UseComponents}
To:
Code:

{#if UseComponents || UseTasks}
These custom messages are also used for tasks.
I've been out of town, cell phone only(notepad) for a couple of weeks, so I can't change the script and post a fix.

KaktoR 11-07-2021 09:19

This fixed the issue, but there are a new one :D

If you disable components, the WizardForm.NextButton is disabled and you can't proceed.

I spend the half day to find the error but all of this doesn't make any sense to me.

Cesar82 11-07-2021 10:04

Quote:

Originally Posted by KaktoR (Post 493204)
This fixed the issue, but there are a new one :D

If you disable components, the WizardForm.NextButton is disabled and you can't proceed.

I spend the half day to find the error but all of this doesn't make any sense to me.

Run Asis in inno setup Debug mode, and after the nextbutton is disabled, search for "wizardForm.NextButton.Enabled" and see which line has a dot to the left of the line indicating that the line was executed. let me know the line number.

KaktoR 12-07-2021 02:27

Delete Line 4817

Code:

if CurPageID = wpWelcome then
  begin
...
GetFreeSpaceCaption(nil);

Hotfix added

I guess this was just a false copy&paste by accident ;)


All times are GMT -7. The time now is 15:26.

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