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)

KaktoR 31-12-2020 13:04

Quote:

Originally Posted by velanne (Post 489649)
hi, how to remove create uninstaller?
Thank you
https://nsm09.casimages.com/img/2020...8817193571.png

Comment the UninstallCB in procedure CurPageChanged (add // before). Should be enough.

velanne 31-12-2020 14:42

Quote:

Originally Posted by KaktoR (Post 489650)
Comment the UninstallCB in procedure CurPageChanged (add // before). Should be enough.

thanks for answering, sorry but i don't know how.
what exactly should i put?

Cesar82 01-01-2021 09:03

@velanne , do a search in the script (CTRL + F) and search the script for the lines:
Code:

UnInstallCB.Visible
UninstallCB.Show

Place // before each of the lines you find in the search.
Code:

//UnInstallCB.Visible ...
//UninstallCB.Show;


velanne 01-01-2021 10:34

Quote:

Originally Posted by Cesar82 (Post 489664)
@velanne , do a search in the script (CTRL + F) and search the script for the lines:
Code:

UnInstallCB.Visible
UninstallCB.Show

Place // before each of the lines you find in the search.
Code:

//UnInstallCB.Visible ...
//UninstallCB.Show;


Thank you
did not work create an uninstaller and still visible.
I am using ASIS.v7.2.2 with Hotfix2 which is posted on page 61

Cesar82 01-01-2021 12:46

Quote:

Originally Posted by velanne (Post 489666)
Thank you
did not work create an uninstaller and still visible.
I am using ASIS.v7.2.2 with Hotfix2 which is posted on page 61

After changes of previous post, search this part and add red color line line.

Code:

  UninstallCB := TNewCheckBox.Create(WizardForm);
  with UninstallCB do
  begin
    Parent  := WizardForm.SelectDirPage;
    Left    := ScaleX(270);
    Top      := ScaleY(150);
    Width    := ScaleX(240);
    Height  := ScaleY(17);
    Caption  := ExpandConstant('{cm:CreateUninstall}');
    Checked  := True;
    Visible  := False;
  end;


velanne 01-01-2021 13:10

Quote:

Originally Posted by Cesar82 (Post 489668)
After changes of previous post, search this part and add red color line line.

Code:

  UninstallCB := TNewCheckBox.Create(WizardForm);
  with UninstallCB do
  begin
    Parent  := WizardForm.SelectDirPage;
    Left    := ScaleX(270);
    Top      := ScaleY(150);
    Width    := ScaleX(240);
    Height  := ScaleY(17);
    Caption  := ExpandConstant('{cm:CreateUninstall}');
    Checked  := True;
    Visible  := False;
  end;


Thank you it works now

KaktoR 11-01-2021 15:47

1 Attachment(s)
Updated a new package (you should use this as a new folder instead of overwrite existing files just for leftovers/deleted things).

Code:

v7.2.2
_____________________________________________________
- Updated compressors
- On cancelling installation the {app} folder will now be deleted
- Added XTool 2020 support
- Added DiskSpan_GUI support (thanks to Cesar82)
- Fixed cancel button
- Removed some leftovers from previous versions in script which are not used anymore
- Moved 'DefaultInstallDir=' key to [Settings] section
  > [ExtractSettings] section removed
- Fixed title on ExitSetupMessageBox if special chars were used (no hieroglyphs)
- Updated DiskSpan_GUI to latest version
- Fixed a problem with lower/uppercase "FreeArc_X" in records.ini reading
- Updated COMPRESSOR_GUI.txt help file (this contains some usefull information now instead to be empty)

Note: Setup.exe/Setup.dll will be created inside ".\DiskSpan_GUI\Setup_Files" folder (in case you search for the file and get lost).

Snake288 12-01-2021 08:30

ASIS.v7.2.2 COMPRESSOR_GUI
 
COMPRESSOR_GUI

Compression tools marked with a red box in the image are not active when selected

https://i.imgyukle.com/2021/01/12/afME9G.jpg

Cesar82 12-01-2021 08:48

Quote:

Originally Posted by Snake288 (Post 489856)
COMPRESSOR_GUI

Compression tools marked with a red box in the image are not active when selected

https://i.imgyukle.com/2021/01/12/afME9G.jpg

These methods only have 64-bit compressors.
If the game to be compressed does not work on 32-bit systems (64-bit only), edit the Settings.ini file.
Code:

[Settings]
64BitOnly=1

If the game works on 32/64 bit systems I do not recommend using these methods because it will not be possible to install on 32 bit systems.
If you never need to install on 32-bit systems you can change the key of the Settings.ini file even if the game is compatible with 32/64-bit systems

XxAZAxX 21-01-2021 11:27

Hi everyone :'(
 
Hi, I downloaded the new version 7.2.2 and modifying as usual only the info type name etc. etc. as always done, now the problem is that it does not install anything when I load the game the completion happens in a flash, like compression always used "FreeArc" method -m5 changing extension (as always done) how come now I can't install? how do i make everything work as before? (it seems that InternalRecords is no longer there or am I wrong?) Thanks for all friends :)

KaktoR 21-01-2021 11:58

Use external records.ini (or you can include records.ini inside Setup.dll).

XxAZAxX 21-01-2021 13:21

Hi bro
 
Quote:

Originally Posted by KaktoR (Post 489963)
Use external records.ini (or you can include records.ini inside Setup.dll).

Hi KaktoR, you personally which configuration do you recommend to use? "Setup.dll"? if yes, could you show me how to do it? i have never used it differently from my usual do before, thats why i find myself a bit in trouble.. sorry if i waste your time and thanks in advance for all the work you do bro.

(sorry for my bad english)

Cesar82 21-01-2021 13:31

Quote:

Originally Posted by XxAZAxX (Post 489967)
Hi KaktoR, you personally which configuration do you recommend to use? "Setup.dll"? if yes, could you show me how to do it? i have never used it differently from my usual do before, thats why i find myself a bit in trouble.. sorry if i waste your time and thanks in advance for all the work you do bro.

(sorry for my bad english)

From this latest version of ASIS, it works with decompressors stored externally in a file of the same name as the installer with extension ".dll" (Setup.exe/Setup.dll "or Install.exe/Install.dll, etc.).
This DLL file is nothing more than a freeArc (.arc) file and it is necessary to have all the files necessary to do the decompression inside DLL file (Except ISDone.dll and UnArc.dll).
So the current ASIS is being shared with a decompression tool DiskSpan_GUI, which generates the Setup.dll file (with all necessary decompressors) when performing the compression depending on the method chosen to compress.

XxAZAxX 21-01-2021 13:42

Hi bro
 
Quote:

Originally Posted by Cesar82 (Post 489968)
From this latest version of ASIS, it works with decompressors stored externally in a file of the same name as the installer with extension ".dll" (Setup.exe/Setup.dll "or Install.exe/Install.dll, etc.).
This DLL file is nothing more than a freeArc (.arc) file and it is necessary to have all the files necessary to do the decompression inside DLL file (Except ISDone.dll and UnArc.dll).
So the current ASIS is being shared with a decompression tool DiskSpan_GUI, which generates the Setup.dll file (with all necessary decompressors) when performing the compression depending on the method chosen to compress.

Ah here, I've always used only FreeArc with the simple method -m5 ...

I've never used the "DiskSpan_GUI" and I don't know where to put my hands at the moment .. in practice I would like to compress the files of a game (The Godfather) making it become "Data.AZA" is it possible to make it become this way?

ps: it is possible to translate the DiskSpan_GUI? in other language example Italian?

Thanks to much Cesar82

KaktoR 21-01-2021 14:04

1. Create a folder somewhere
2. Inside this folder copy all your tolls/decompressors that you need + arc.ini
3. Select all files and compress them with freearc
4. Rename the freearc file to "Setup.dll" or whatever your Setup.exe is named

It has to look like this structure
https://i.imgur.com/Je8JKbF.png

XxAZAxX 21-01-2021 14:43

Hi bro
 
Quote:

Originally Posted by KaktoR (Post 489971)
1. Create a folder somewhere
2. Inside this folder copy all your tolls/decompressors that you need + arc.ini
3. Select all files and compress them with freearc
4. Rename the freearc file to "Setup.dll" or whatever your Setup.exe is named

It has to look like this structure
https://i.imgur.com/Je8JKbF.png

Thanks for having answered KaktoR, unfortunately even in this way I could not complete the installation, even if it says complete installation it does not actually install anything ... I will try to rebuild the old versions hoping to return to what worked for me before.

Thanks for the time you have given me, and sorry for the inconvenience. :'(

KaktoR 21-01-2021 14:47

Did you changed the records.ini file properly with your archive name?

Code:

[Record1]
Type=FreeArc_Original
Source={src}\YourArchiveName.xyz
Output={app}\
Disk=1


Cesar82 21-01-2021 14:50

Quote:

Originally Posted by XxAZAxX (Post 489969)
Ah here, I've always used only FreeArc with the simple method -m5 ...

I've never used the "DiskSpan_GUI" and I don't know where to put my hands at the moment .. in practice I would like to compress the files of a game (The Godfather) making it become "Data.AZA" is it possible to make it become this way?

ps: it is possible to translate the DiskSpan_GUI? in other language example Italian?

Thanks to much Cesar82

If you use the m5 method you can use it from DiskSpan_GUI to compress your game (see the image below).
You can also just enter "5" in the method Memo.
https://i.imgur.com/V7hKeI4.png
This way, a Setup.dll file will be generated in the output folder.
So if you always use "-m5", you can use this same DLL (In all next projects) together with Setup.exe and you will no longer need DikskSpan_GUI.
You can choose to disable DiskSpan just by entering the GUI config mode and checking the "UltraARC MODE" checkbox, so CLS-DiskSpan.dll will not be included in Setup.dll.

Edit:
The last 3 methods are not working because after adding quotation marks to the methods they no longer work. I'll fix it in the next version of DiskSpan_GUI.

XxAZAxX 21-01-2021 15:41

Hi bro
 
2 Attachment(s)
Quote:

Originally Posted by KaktoR (Post 489973)
Did you changed the records.ini file properly with your archive name?

Code:

[Record1]
Type=FreeArc_Original
Source={src}\YourArchiveName.xyz
Output={app}\
Disk=1


Yes I had already tried to edit here but it didn't work.

__________________________________________________ ____________________________

Quote:

Originally Posted by Cesar82 (Post 489974)
If you use the m5 method you can use it from DiskSpan_GUI to compress your game (see the image below).
You can also just enter "5" in the method Memo.
https://i.imgur.com/V7hKeI4.png
This way, a Setup.dll file will be generated in the output folder.
So if you always use "-m5", you can use this same DLL (In all next projects) together with Setup.exe and you will no longer need DikskSpan_GUI.
You can choose to disable DiskSpan just by entering the GUI config mode and checking the "UltraARC MODE" checkbox, so CLS-DiskSpan.dll will not be included in Setup.dll.

Edit:
The last 3 methods are not working because after adding quotation marks to the methods they no longer work. I'll fix it in the next version of DiskSpan_GUI.

I had already removed the "mask" mode and inserted only that of "UltraARC MODE" but the files that I compress do not go anyway, (it is clear that I myself make something wrong and I do not realize it)

So in order not to waste a lot of time, I decided to take all versions and rebuild the old "script + options" and it went well... I stopped at version "7.2.0 update 7" and it works very well without any problem nowhere.

Sorry if it took me so long to answer, I was sorting out the ASIS script updates :)

Cesar82 23-01-2021 16:07

The ASIS v7.2.2 has an error in the script (Thanks to XxAZAxX)
It is necessary to insert the part highlighted in "Orange" in the script.
Code:

procedure DeinitializeUninstall();
begin
 
#if VCL == "1"
   
if FileExists(ExpandConstant('{tmp}\VclStylesInno.dll')) and FileExists(ExpandConstant('{tmp}\{#VCLName}')) then
     
UnLoadVCLStyles();
  #elif Cjstyles == "1"
   
if FileExists(ExpandConstant('{tmp}\ISSkin.dll')) and FileExists(ExpandConstant('{tmp}\{#CjstylesName}')) then
    begin
     
ShowWindow(0, SW_HIDE);
      UnloadSkin();
    end;
  #endif
end;


XxAZAxX 23-01-2021 16:56

Hi everyone
 
Quote:

Originally Posted by Cesar82 (Post 490031)
The ASIS v7.2.2 has an error in the script (Thanks to XxAZAxX)
It is necessary to insert the part highlighted in "Orange" in the script.
Code:

procedure DeinitializeUninstall();
begin
 
#if VCL == "1"
   
if FileExists(ExpandConstant('{tmp}\VclStylesInno.dll')) and FileExists(ExpandConstant('{tmp}\{#VCLName}')) then
     
UnLoadVCLStyles();
  #elif Cjstyles == "1"
   
if FileExists(ExpandConstant('{tmp}\ISSkin.dll')) and FileExists(ExpandConstant('{tmp}\{#CjstylesName}')) then
    begin
     
ShowWindow(0, SW_HIDE);
      UnloadSkin();
    end;
  #endif
end;


Thanks go to you Cesar82, I just "found" the problem, but you solved it for me! so thank you very much bro. :)

AWildPotato 23-02-2021 06:50

I got the 7.1.7 Update, and I'm getting an error when running Compile_Script.bat:

Line 1408:
Column 20:
Syntax Error.

Any way to fix this?

Masquerade 23-02-2021 13:37

Quote:

Originally Posted by AWildPotato (Post 490497)
I got the 7.1.7 Update, and I'm getting an error when running Compile_Script.bat:

Line 1408:
Column 20:
Syntax Error.

Any way to fix this?

Install inno setup, open the script and press CTRL+F9. Then you see the error line when it compiles.

KaktoR 24-02-2021 01:14

1 Attachment(s)
Here is the latest version. Have not worked on it for a while and probably never will work again on it.

LordxKinG 12-03-2021 22:50

Hi, is Possible ASIS Installer add video at background Installing? thanks

gen40 30-03-2021 14:48

this is cool epic i will use this when i do my next repack :D

L33THAK0R 31-03-2021 08:33

hey so I'm pretty dumb/simple/touched in the head, how can I get like an optional .bin or whatever working with ASIS? Not looking to have it as a select-able option in the GUI just want to be able to put an "optional.bin" in the root directory for the installer and it to extract it, sorry if this is a silly question.

KaktoR 31-03-2021 10:17

Add a second record to Records.ini

L33THAK0R 12-04-2021 07:29

Quote:

Originally Posted by KaktoR (Post 491183)
Add a second record to Records.ini

Thank you so much for your quick response, got another quick question, how can I select AFR 0.20 in the "COMPRESSOR_GUI.exe"? Using ASIS v7.2.0.0 and can only seem to select 0.19. Sorry if its a bit of a silly question.

KaktoR 12-04-2021 07:34

I think you have to hold CTRL key and click on "default" if I remember right.

L33THAK0R 12-04-2021 19:19

Quote:

Originally Posted by KaktoR (Post 491318)
I think you have to hold CTRL key and click on "default" if I remember right.

sick as, cheers man, works like a charm

L33THAK0R 13-04-2021 20:35

Hey dunno if anyone knows how to or if it's even possible with ASIS, but is there a way to get ASIS to delete a specified file at the end of install? Got this really annoying 40mb junk temp file that isn't getting cleaned up and was wondering if there was a way I can get the installer to remove it.

Masquerade 13-04-2021 23:42

Quote:

Originally Posted by L33THAK0R (Post 491338)
Hey dunno if anyone knows how to or if it's even possible with ASIS, but is there a way to get ASIS to delete a specified file at the end of install? Got this really annoying 40mb junk temp file that isn't getting cleaned up and was wondering if there was a way I can get the installer to remove it.

Code:

if CurStep = ssPostInstall then begin
    DeleteFile(ExpandConstant('{app}\<path to file>'));


L33THAK0R 14-04-2021 16:07

Quote:

Originally Posted by Masquerade (Post 491341)
Code:

if CurStep = ssPostInstall then begin
    DeleteFile(ExpandConstant('{app}\<path to file>'));


fuckkk absolute legend, cheers brother

L33THAK0R 14-04-2021 18:33

Alright got 2 more questions for you lads and then I promise I'll stop spamming 'em.

So I've got a repack with a few optional components and I was wondering if its possible for the setup once launched to have a look to see if the component file is present, and if it comes back false, can the setup disable the user from selecting that component?

like changing
Code:

Component1.Enabled=1
to
Code:

Component1.Enabled=0
My second question kinda builds off this first one, by which I mean can you have multiple CRC check files for different combinations of components selected and tell ASIS which one to select based of the selected components?


(like checksums1.md5 for main files & checksums2.md5 for main files + ost)

L33THAK0R 16-04-2021 20:55

Also a super small question, if I have a compressor that is name differently to how it is named in ASIS, is it possible to change this in ASIS? in this case I'm using "afr_019" but this isn't recognised by ASIS.

KaktoR 17-04-2021 01:10

Quote:

Originally Posted by L33THAK0R (Post 491356)
Alright got 2 more questions for you lads and then I promise I'll stop spamming 'em.

So I've got a repack with a few optional components and I was wondering if its possible for the setup once launched to have a look to see if the component file is present, and if it comes back false, can the setup disable the user from selecting that component?

like changing
Code:

Component1.Enabled=1
to
Code:

Component1.Enabled=0
My second question kinda builds off this first one, by which I mean can you have multiple CRC check files for different combinations of components selected and tell ASIS which one to select based of the selected components?


(like checksums1.md5 for main files & checksums2.md5 for main files + ost)

code change is neccessary for this

Quote:

Originally Posted by L33THAK0R (Post 491375)
Also a super small question, if I have a compressor that is name differently to how it is named in ASIS, is it possible to change this in ASIS? in this case I'm using "afr_019" but this isn't recognised by ASIS.

In latest version asis will use whatever you put inside setup.dll.

asis itself doesn't have any compressor settings anymore.

L33THAK0R 17-04-2021 20:19

Quote:

Originally Posted by KaktoR (Post 491377)
code change is neccessary for this



In latest version asis will use whatever you put inside setup.dll.

asis itself doesn't have any compressor settings anymore.

Hey so this is a bit of a dumb question but where do you put setup.dll when you've generated it

Cesar82 17-04-2021 21:16

Quote:

Originally Posted by L33THAK0R (Post 491393)
Hey so this is a bit of a dumb question but where do you put setup.dll when you've generated it

Setup.dll is a ".arc" file (compressed -m0..-m8 and renamed to .dll) that contains the compressors that must be placed next to Setup.exe.
If you rename the Setup.exe file for example to Install.exe, you must also rename the Setup.dll file to Install.dll.
The Setup.dll file is automatically generated by DiskSpan_GUI when compressing the game, but you can include different compressors as long as you also create the settings in the INI files.

In the COMPRESSOR folder on DiskSpan_GUI you have a ".bat" file called "_Compress Optional DLL (Drop Folder or Setup.dll) .bat" that is especially useful for this situation.
You just create a folder and put compressors, cls libraries and .ini files
After placing all decompressor files in a folder just click on the folder and drop the folder on the .bat file to create Setup.dll file.

The standard INI file names are:
Code:

- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Optimal.ini for when installation is done on 64-bit systems.
- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Standard.ini for when installation is done on 64-bit systems.

and
Code:

- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Optimal.ini for when installation is done on 32-bit systems.
- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Standard.ini for when installation is done on 32-bit systems.

P.S: Arc.ini/CLS.ini is also compatible and will be read if the ones mentioned above do not exist.

L33THAK0R 18-04-2021 02:57

Quote:

Originally Posted by Cesar82 (Post 491395)
Setup.dll is a ".arc" file (compressed -m0..-m8 and renamed to .dll) that contains the compressors that must be placed next to Setup.exe.
If you rename the Setup.exe file for example to Install.exe, you must also rename the Setup.dll file to Install.dll.
The Setup.dll file is automatically generated by DiskSpan_GUI when compressing the game, but you can include different compressors as long as you also create the settings in the INI files.

In the COMPRESSOR folder on DiskSpan_GUI you have a ".bat" file called "_Compress Optional DLL (Drop Folder or Setup.dll) .bat" that is especially useful for this situation.
You just create a folder and put compressors, cls libraries and .ini files
After placing all decompressor files in a folder just click on the folder and drop the folder on the .bat file to create Setup.dll file.

The standard INI file names are:
Code:

- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Optimal.ini for when installation is done on 64-bit systems.
- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Standard.ini for when installation is done on 64-bit systems.

and
Code:

- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Optimal.ini for when installation is done on 32-bit systems.
- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Standard.ini for when installation is done on 32-bit systems.

P.S: Arc.ini/CLS.ini is also compatible and will be read if the ones mentioned above do not exist.

I understand all this but what I mean is where physically should "setup.dll" be present when making the .exe with ASIS, or is it not included inside of the .exe generated by ASIS?


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

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