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)

fabrieunko 20-05-2022 08:47

hello I would like to add the equalizer if someone can give me a track? thank you in advance

L33THAK0R 20-05-2022 09:08

Quote:

Originally Posted by Cesar82 (Post 496921)
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?

Compressor GUI looks great, and honestly its a god send for many, but I just use my own little script to process archives using multiple compressors, since I'm often running at least 10-20 fairly large compression tests at any given moment, and having a simple terminal window is just less resource intensive and more easily readable for me personally.

Sorry if I offended you, DiskSpan GUI is a great tool, just not my personal cup of tea.

KaktoR 20-05-2022 09:35

You don't have to use DiskSpan GUI for ASIS. You can still create your own archive which whatever tool you like. The only thing is you have to create a Setup.dll manualy. All of this is explained in Help folder\Setup.dll.txt

L33THAK0R 20-05-2022 09:57

Quote:

Originally Posted by KaktoR (Post 496925)
You don't have to use DiskSpan GUI for ASIS. You can still create your own archive which whatever tool you like. The only thing is you have to create a Setup.dll manualy. All of this is explained in Help folder\Setup.dll.txt

Ah sick yeah checking out v7.3.3 right now, things seem a lot more streamlined than the last time I checked out a newer revision, think I'll migrate over, the eye-boggling amount of new features/QoL improvements is too good to pass up on, plus being able to aggressively compress all the required compressors into a separate archive is super convenient, very confident this'll save at least a couple GB in space once I've rebuilt all my setup executables that were built using v7.2.0 .

Cesar82 20-05-2022 16:31

2 Attachment(s)
Quote:

Originally Posted by L33THAK0R (Post 496926)
Ah sick yeah checking out v7.3.3 right now, things seem a lot more streamlined than the last time I checked out a newer revision, think I'll migrate over, the eye-boggling amount of new features/QoL improvements is too good to pass up on, plus being able to aggressively compress all the required compressors into a separate archive is super convenient, very confident this'll save at least a couple GB in space once I've rebuilt all my setup executables that were built using v7.2.0 .

I've been looking at my old source codes here and apparently the current ASIS (v7.3.3) works with the COMPRESSOR_ GUI included in ASIS v7.2.2 (also including the compressor files).

I attached the files referring to the old compressors that worked with the COMPRESSOR_GUI (They must be very outdated).
With this GUI compressor you create the Setup.dll file that can be used with current ASIS (I think).
It must be extracted to the ASIS folder.
P.S: Add the 64BitOnly=0 key in the [Settings] section of the ASIS Settings.ini file so that you can use 32-bit compressors.
To work on 32-bit systems, it is also necessary to remove the lines indicated below from the [Setup] section of the Script.iss of the ASIS v7.3.3 :
Code:

ArchitecturesInstallIn64BitMode=x64
ArchitecturesAllowed=x64

EDIT: From what you can see it should also work with DislSpan GUI 1.0.0.5, just copy the COMPRESSOR.ini file from the "DiskSpan_GUI\Resources" folder to the COMPRESSOR\Resources folder of DiskSpan GUI 1.0.0.5 and then delete the DiskSpan GUI folder and rename the "COMPRESSOR" folder (DiskSpan GUI 1.0.0.5) to "DiskSpan_GUI" and move the folder into the ASIS folder.

EDIT: I attached a new file.
Extract the COMPRESSOR (DSG) folder to the ASIS 7.3.3 folder.
- Added a combobox in the COMPRESSOR_GUI interface to select the method used to compress Setup DLL.

L33THAK0R 21-05-2022 04:17

Quote:

Originally Posted by Cesar82 (Post 496929)
I've been looking at my old source codes here and apparently the current ASIS (v7.3.3) works with the COMPRESSOR_ GUI included in ASIS v7.2.2 (also including the compressor files).

I attached the files referring to the old compressors that worked with the COMPRESSOR_GUI (They must be very outdated).
With this GUI compressor you create the Setup.dll file that can be used with current ASIS (I think).
It must be extracted to the ASIS folder.
P.S: Add the 64BitOnly=0 key in the [Settings] section of the ASIS Settings.ini file so that you can use 32-bit compressors.
To work on 32-bit systems, it is also necessary to remove the lines indicated below from the [Setup] section of the Script.iss of the ASIS v7.3.3 :
Code:

ArchitecturesInstallIn64BitMode=x64
ArchitecturesAllowed=x64

EDIT: From what you can see it should also work with DislSpan GUI 1.0.0.5, just copy the COMPRESSOR.ini file from the "DiskSpan_GUI\Resources" folder to the COMPRESSOR\Resources folder of DiskSpan GUI 1.0.0.5 and then delete the DiskSpan GUI folder and rename the "COMPRESSOR" folder (DiskSpan GUI 1.0.0.5) to "DiskSpan_GUI" and move the folder into the ASIS folder.

Oh wow this is better than any gift I could possibly receive, thank you so much mate for going to the effort of doing this, this is honestly a lovely surprise to see after a rather long 14hr shift!

Thank you also for the config batch file, I think you had given me some advice on how to do the same a while back but I never managed to get it working.

Thanks again mate, with this I'll definitely be fully migrating to v7.3.3 :)

L33THAK0R 22-05-2022 06:37

Quick question about specifying a file for a given Task/Component, what value determines what file to use in v7.3.3? Had a look through the help documentation as well as the script but can't find any reference of whether something like "Component1.File=" / "Task1.File=" is still used, as in v7.2.0, or whether its put inside the Settings.ini / Records.ini file.

KaktoR 22-05-2022 08:36

Code:

Component1.Name=Game 1
...
...

Code:

[Record1]
...
Component=1

The same with Tasks

Code:

[Record1]
...
Task=#


abror 26-05-2022 07:05

How to change language
 
I've changed english.isl and default.isl after I saved and compile setup. Still no change..

please help me, and sorry for my english because i use google translate

mausschieber 26-05-2022 13:44

Quote:

Originally Posted by abror (Post 496992)
I've changed english.isl and default.isl after I saved and compile setup. Still no change..

please help me, and sorry for my english because i use google translate

Settings.ini
Code:

[Settings]
ShowLanguageBox=1

that should Help you

abror 26-05-2022 20:31

Quote:

Originally Posted by mausschieber (Post 496993)
Settings.ini
Code:

[Settings]
ShowLanguageBox=1

that should Help you

thank you very much for the help, but I mean changing the text in the language.. I have changed the text in english.isl and default.isl but there is no change in the setup.

For example I have changed WelcomeLabel1 with my own typed text

https://imgur.com/a/vDuEA3d

Cesar82 26-05-2022 22:52

Quote:

Originally Posted by abror (Post 496996)
thank you very much for the help, but I mean changing the text in the language.. I have changed the text in english.isl and default.isl but there is no change in the setup.

For example I have changed WelcomeLabel1 with my own typed text

https://imgur.com/a/vDuEA3d

You must edit the language file in the folder: "Resources\IS_Files\Languages"
or edit "Resources\IS_Files\Default.iss" to english language.
You also need to edit the messages contained in the script.iss, in the sections [Messages] and [CustomMessages] for some labels.
After editing you need to compile using the Compile_Script.bat file.

abror 27-05-2022 02:54

Quote:

Originally Posted by Cesar82 (Post 496997)
You must edit the language file in the folder: "Resources\IS_Files\Languages"
or edit "Resources\IS_Files\Default.iss" to english language.
You also need to edit the messages contained in the script.iss, in the sections [Messages] and [CustomMessages] for some labels.
After editing you need to compile using the Compile_Script.bat file.

thanks a lot for the help.. My mistake because compiling using script.iss after using Compile_Script.bat it worked

abror 27-05-2022 07:10

Quote:

Originally Posted by Cesar82 (Post 496997)
You must edit the language file in the folder: "Resources\IS_Files\Languages"
or edit "Resources\IS_Files\Default.iss" to english language.
You also need to edit the messages contained in the script.iss, in the sections [Messages] and [CustomMessages] for some labels.
After editing you need to compile using the Compile_Script.bat file.

Sorry but I want to ask you again.

I added code [Run] to the script and compile it using Compile_Script.bat an error occurred while I used inno setup no error occurred (my Inno setup version 6.2.1)

Even though with my innosetup there is no error but the text I have changed doesn't work..

I checked Compile_Script.bat and it looks like it's using inno setup which is in Resources\IS_Files\Compil32Ex.exe

Can you provide a solution for me so that the welcome text can be changed and I can add [Run] code without error

KaktoR 27-05-2022 09:21

[Run] section will not work.

The welcome text use "msgWelcomeLabel1" and "msgWelcomeLabel2" which you can't edit inside a isl file because they are "hard coded" somewhat (at least I did not found the strings anywhere), but I think maybe you can change the caption of it with "msgWelcomeLabel1.Caption := abc"

Edit: I talk bullshit. I forgot that "msg" before the label name means something which I forgot in the meantime...

The label name which you are looking for is "WelcomeLabel1" and "WelcomeLabel2" in the *.isl files.

Cesar82 27-05-2022 11:50

Quote:

Originally Posted by abror (Post 497002)
Sorry but I want to ask you again.

I added code [Run] to the script and compile it using Compile_Script.bat an error occurred while I used inno setup no error occurred (my Inno setup version 6.2.1)

Even though with my innosetup there is no error but the text I have changed doesn't work..

I checked Compile_Script.bat and it looks like it's using inno setup which is in Resources\IS_Files\Compil32Ex.exe

Can you provide a solution for me so that the welcome text can be changed and I can add [Run] code without error

Edit script.iss in section [Messages].

Code:

[Messages]
//Example to change all languages:
WelcomeLabel1=Welcome to [name]
WelcomeLabel2=Install [name/ver] in your system.%n%nClose others app before continue.

//Example to change one language (in example is english):
english.WelcomeLabel1=Welcome to [name]
english.WelcomeLabel2=Install [name/ver] in your system.%n%nClose others app before continue.

https://i.imgur.com/2exAuvJ.png

abror 27-05-2022 17:33

thanks to both of you

Is there any difference between the inno setup in Resources\IS_Files\Compil32Ex.exe and the one I installed (version 6.2.1)?

I'm confused which one to use

Will compiling using script.iss and using inno setup version 6.2.1 run smoothly?

Cesar82 27-05-2022 17:47

Quote:

Originally Posted by abror (Post 497010)
thanks to both of you

Is there any difference between the inno setup in Resources\IS_Files\Compil32Ex.exe and the one I installed (version 6.2.1)?

I'm confused which one to use

Will compiling using script.iss and using inno setup version 6.2.1 run smoothly?

Yes.. script requirid inno setup 6.05 or newer.

abror 27-05-2022 18:15

do you know how to open the application/website after the installation is complete and the user has clicked Finish without the checkbox

Cesar82 27-05-2022 23:27

Insert something like this in CurStepChanged.
Quote:

Originally Posted by abror (Post 497012)
do you know how to open the application/website after the installation is complete and the user has clicked Finish without the checkbox

Code:

procedure CurStepChanged(CurStep: TSetupStep);
var
 
ResultCode: Integer;
begin
  if
CurStep = ssDone then
  begin
   
ShellExec('open', 'https://www.fileforums.com', '', '', SW_SHOWNORMAL, ewNoWait, ResultCode);
    ShellExec('open', ExpandConstant('{app}\game.exe'), '', '', SW_SHOWNORMAL, ewNoWait, ResultCode);
  end;
end;


abror 28-05-2022 23:01

Quote:

Originally Posted by Cesar82 (Post 497013)
Insert something like this in CurStepChanged.

Code:

procedure CurStepChanged(CurStep: TSetupStep);
var
 
ResultCode: Integer;
begin
  if
CurStep = ssDone then
  begin
   
ShellExec('open', 'https://www.fileforums.com', '', '', SW_SHOWNORMAL, ewNoWait, ResultCode);
    ShellExec('open', ExpandConstant('{app}\game.exe'), '', '', SW_SHOWNORMAL, ewNoWait, ResultCode);
  end;
end;


Hi Cesar82, thanks for helping me yesterday...

I want to ask again what compression method is the best

So far I'm using [1] Srep + Lzma I'm compressing a 200 mb file to 60 mb but last night I compressed WWE 2K22 with 10 Hours only cut very little from 49.8 GB to 49.3 GB

I read on the internet every game has a different compression method.. Do you know what the difference is?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~

Edit: if you want to know the compression method please open the link https://fileforums.com/showthread.php?t=99554 Thanks @KaktoR for telling

fabrieunko 31-05-2022 10:19

hello, I just realized there is an error in the image below in the red frame, it should indicate a number instead of mb?

but I can't find where it is. can you help me? I am using version 7.3.3

https://zupimages.net/up/22/22/tvwm.jpg

Cesar82 31-05-2022 12:09

1 Attachment(s)
Quote:

Originally Posted by fabrieunko (Post 497071)
hello, I just realized there is an error in the image below in the red frame, it should indicate a number instead of mb?

but I can't find where it is. can you help me? I am using version 7.3.3

https://zupimages.net/up/22/22/tvwm.jpg

Check if you have correctly configured the keys referring to the size of each component in the [ComponentsSettings] section of the Settings.ini file as:
Code:

Component1.Size=4.15 GB
In the ASIS theme configuration it is displaying correctly, so there must be some configuration missing.

fabrieunko 31-05-2022 13:19

Code:

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

Component2.Name=Sniper Ghost Warrior 2
Component2.ItemType=CHECK
Component2.Size=8.66 GB
Component2.Level=0
Component2.Checked=1
Component2.Enabled=1

Component3.Name=Sniper Ghost Warrior 3 Season Pass Edition
Component3.ItemType=CHECK
Component3.Size=53.5 GB
Component3.Level=0
Component3.Checked=1
Component3.Enabled=1

I think so it's good I don't see any error.

Cesar82 31-05-2022 19:04

I really think ASIS needs a little fix in the source code.
The label "MB" in Inno Setup languages is not constant in all languages.
Edit ASIS "Script.iss" and add the lines highlighted in RED (Place the lines in the same order as below).
Code:

function FormatDiskSpaceLabel(Labl: String; Size: Extended): String;
begin
 
Result := Labl;
  StringChangeEx(Result, '[mb] MBs', '[size]', True);
  StringChangeEx(Result, '[mb] Мб', '[size]', True);
  StringChangeEx(Result, '[mb] Mo', '[size]', True);

  StringChangeEx(Result, '[mb] MB', '[size]', True);
  StringChangeEx(Result, '[size]', FormatBytes(Size, 2, False), True);
end;


fabrieunko 31-05-2022 20:48

many thanks this worked

kuyhaa 08-06-2022 00:51

hi, firstly thank you so much for this great script. i have little question for batch setting

how to show info in caption label when batch run after install, show the text in label caption, ex : " wait finishing proses" on compact mode

thanks

KaktoR 08-06-2022 07:58

Code:

procedure CurStepChanged(CurStep: TSetupStep);
...
  if (CurStep = ssPostInstall) then
  begin
    if not IsDoneError then
    begin
      #if UseBatch
        if FileExists(ExpandConstant('{#BatchFileName}')) then
          WizardForm.FilenameLabel.Caption := 'Waiting for batch...';
          Exec2(ExpandConstant('{#BatchFileName}'), '', True);
      #endif

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

Cesar82 08-06-2022 17:15

@KaktoR, I think you forgot the begin end.
Code:

procedure CurStepChanged(CurStep: TSetupStep);
...
  if (CurStep = ssPostInstall) then
  begin
    if not IsDoneError then
    begin
      #if UseBatch
        if FileExists(ExpandConstant('{#BatchFileName}')) then
        begin
          WizardForm.FilenameLabel.Caption := 'Waiting for batch...';
          Exec2(ExpandConstant('{#BatchFileName}'), '', True);
        end;
      #endif


kuyhaa 08-06-2022 18:34

worked thanks @kaktor & @Cesar82

and 1 question again

when the batch running, i want the prosses hidden/silent ( only see on task manager and text 'Waiting for batch prosses...' ) without window cmd,

have setting ?

Cesar82 08-06-2022 20:11

Quote:

Originally Posted by kuyhaa (Post 497159)
worked thanks @kaktor & @Cesar82

and 1 question again

when the batch running, i want the prosses hidden/silent ( only see on task manager and text 'Waiting for batch prosses...' ) without window cmd,

have setting ?

try
Code:

Exec2(ExpandConstant('{#BatchFileName}'), '', False);

kuyhaa 08-06-2022 22:49

Quote:

Originally Posted by Cesar82 (Post 497161)
try
Code:

Exec2(ExpandConstant('{#BatchFileName}'), '', False);

big thanks , :D

KaktoR 09-06-2022 06:04

Quote:

Originally Posted by Cesar82 (Post 497158)
@KaktoR, I think you forgot the begin end.
Code:

procedure CurStepChanged(CurStep: TSetupStep);
...
  if (CurStep = ssPostInstall) then
  begin
    if not IsDoneError then
    begin
      #if UseBatch
        if FileExists(ExpandConstant('{#BatchFileName}')) then
        begin
          WizardForm.FilenameLabel.Caption := 'Waiting for batch...';
          Exec2(ExpandConstant('{#BatchFileName}'), '', True);
        end;
      #endif


Thanks, already fixed it here (I made already extensive changes in the script).

Me be like
https://i.imgur.com/GRych1M.jpg

abror 10-06-2022 02:19

can the pause button be removed?

KaktoR 13-06-2022 05:35

Quote:

Originally Posted by abror (Post 497175)
can the pause button be removed?

Yes

KaktoR 13-06-2022 05:38

2 Attachment(s)
Here is a wip for 7.3.4

Code:

v7.3.4 wip
_____________________________________________________
- You can now change the font on all installer elements (without memos)
  > Only available in normal mode (for now)
- Added UpdateMode
  > If enabled setup will not create uninstall files, icons or {app} folder
  > File check in Settings.ini is required to proceed to installation
  > Only available in compact mode
- Fixed MB label for some languages (thanks to Cesar)
- Added button sounds (not all buttons are covered yet, will be optional in a later update)
- Some other things

If you find any bugs let me know

abror 22-06-2022 19:54

Quote:

Originally Posted by KaktoR (Post 497208)
Here is a wip for 7.3.4

Code:

v7.3.4 wip
_____________________________________________________
- You can now change the font on all installer elements (without memos)
  > Only available in normal mode (for now)
- Added UpdateMode
  > If enabled setup will not create uninstall files, icons or {app} folder
  > File check in Settings.ini is required to proceed to installation
  > Only available in compact mode
- Fixed MB label for some languages (thanks to Cesar)
- Added button sounds (not all buttons are covered yet, will be optional in a later update)
- Some other things

If you find any bugs let me know

thank you very much, i love the sound of the button

I want to ask again, can you tell me how to make the game always run with run as administrator?

abror 24-06-2022 02:39

Game Run As Administrator
 
because some games have to run as administrator so I want to add Flags: runascurrentuser

Can someone tell me where to put the code?

KaktoR 24-06-2022 11:44

@abror
Will be added in next update

KaktoR 25-06-2022 11:10

Do you mean the cutted text on select directory page? Will be fixed in next version.

Edit: Added new script to previous post. Fixed some other things aswell.

PS: As for the "Run as administrator" privileges, open registry.iss and see how it should look like. I will change this in next versions.


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

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