FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Light Installer Script (LIS) - DiskSpan_GUI (https://fileforums.com/showthread.php?t=103408)

Cesar82 11-02-2021 17:12

Quote:

Originally Posted by Stor31 (Post 490381)
how to modify LightInstallerLogoOrange.bmp (Light Installer) to another name ???
thx

Open the script and change the name as needed.
The parts of the code referring to the logo image file are below (Search the script).
Code:

#define Theme "ORANGE"

Code:

#if Theme != "NULL"
Source: "Resources\LightInstallerLogo{#Theme}.bmp"; DestName: "LightInstallerLogo.bmp"; DestDir: "{tmp}"; Flags: dontcopy
#endif

Code:

  #if Theme != "NULL"
 
with TBitmapImage.Create(WizardForm) do
  begin
   
Parent := WizardForm;
    SetBounds(ScaleX(14), WizardForm.NextButton.Top + ScaleY(1), ScaleX(225), ScaleY(20));
    Bitmap.AlphaFormat := afDefined;
    Bitmap.LoadFromFile(ExpandConstant('{tmp}\LightInstallerLogo.bmp'));
    #if VER >= 0x06000000
   
Anchors := [akLeft, akBottom];
    #endif
   
if '{#AppURL}' <> '' then begin
     
OnClick := @LogoOnClick;
      Cursor := crHand;
    end;
  end;
  #endif

Code:

  #if Theme != "NULL"
 
ExtractTemporaryFile('LightInstallerLogo.bmp');
  #endif

P.S: If you just want to change the name of the image file that is in the resources folder, you only need to change it after the word resources in code 2. This way the image inside setup.exe will remain as LightInstaller.bmp, but your external file will have the name you put, but it must be a bitmap image (.bmp).

bolek932 12-02-2021 05:21

what is records.ini for?

I have a problem with him...

Cesar82 12-02-2021 08:28

Quote:

Originally Posted by bolek932 (Post 490390)
what is records.ini for?

I have a problem with him...

What problems?
Records.ini is necessary because it contains all information from the files compressed by DiskSpan_GUI about the compressed files

bolek932 12-02-2021 11:20

Quote:

Originally Posted by Cesar82 (Post 490394)
What problems?
Records.ini is necessary because it contains all information from the files compressed by DiskSpan_GUI about the compressed files

When he wants to install a compressed game, the setup.exe installer "install" in a second. Skips archives and creates only "unistall.exe" in the installation folder and a shortcut on the desktop . If I move or delete the records.ini file, the installer works normally and installs the game. I didn't have it before, only on the last two games.
What am I doing wrong?

Cesar82 12-02-2021 17:53

Quote:

Originally Posted by bolek932 (Post 490395)
When he wants to install a compressed game, the setup.exe installer "install" in a second. Skips archives and creates only "unistall.exe" in the installation folder and a shortcut on the desktop . If I move or delete the records.ini file, the installer works normally and installs the game. I didn't have it before, only on the last two games.
What am I doing wrong?

Information about compressed data files is in the records.ini file.
This can only happen if you merged the Records.ini file at the end of the diskspan_gui compression page and are now placing another Records.ini with incorrect information from the compressed data files.
It is not possible to extract any compressed files without existing records.ii next to setup.exe or inside setup.dll.

Stor31 13-02-2021 04:39

Quote:

Originally Posted by Cesar82 (Post 490384)
Open the script and change the name as needed.
The parts of the code referring to the logo image file are below (Search the script).
Code:

#define Theme "ORANGE"

Code:

#if Theme != "NULL"
Source: "Resources\LightInstallerLogo{#Theme}.bmp"; DestName: "LightInstallerLogo.bmp"; DestDir: "{tmp}"; Flags: dontcopy
#endif

Code:

  #if Theme != "NULL"
 
with TBitmapImage.Create(WizardForm) do
  begin
   
Parent := WizardForm;
    SetBounds(ScaleX(14), WizardForm.NextButton.Top + ScaleY(1), ScaleX(225), ScaleY(20));
    Bitmap.AlphaFormat := afDefined;
    Bitmap.LoadFromFile(ExpandConstant('{tmp}\LightInstallerLogo.bmp'));
    #if VER >= 0x06000000
   
Anchors := [akLeft, akBottom];
    #endif
   
if '{#AppURL}' <> '' then begin
     
OnClick := @LogoOnClick;
      Cursor := crHand;
    end;
  end;
  #endif

Code:

  #if Theme != "NULL"
 
ExtractTemporaryFile('LightInstallerLogo.bmp');
  #endif

P.S: If you just want to change the name of the image file that is in the resources folder, you only need to change it after the word resources in code 2. This way the image inside setup.exe will remain as LightInstaller.bmp, but your external file will have the name you put, but it must be a bitmap image (.bmp).

I changed everything
but the result
https://nsa40.casimages.com/img/2021...4601524528.jpg

mausschieber 13-02-2021 05:46

Quote:

Originally Posted by Stor31 (Post 490402)
I changed everything
but the result
https://nsa40.casimages.com/img/2021...4601524528.jpg

you have to disable this #define Theme "ORANGE" to this ;#define Theme "ORANGE" then the logo will be disabled

Stor31 13-02-2021 07:41

Quote:

Originally Posted by mausschieber (Post 490404)
you have to disable this #define Theme "ORANGE" to this ;#define Theme "ORANGE" then the logo will be disabled

thank you messschieber ;; but I want to change (LightInstaller) not deactivate !!!!!! :confused::)

Cesar82 13-02-2021 12:27

Quote:

Originally Posted by Stor31 (Post 490405)
thank you messschieber ;; but I want to change (LightInstaller) not deactivate !!!!!! :confused::)

I don't understand what you want to do.
The Light Installer logo is an option for you to place any logo image you want, just by editing one of the PSD (Photoshop project) files or creating your own logo as you wish (But the dimensions 225x20 pixels must be kept).
Just create your bitmap image (.bmp) with alpha layer to determine the semi-transparent areas and save it as "LightInstallerLogo.bmp" in the "Resources" folder.
Then open the script and set theme to "" and compile the script.
Code:

#define Theme ""

bolek932 13-02-2021 13:46

Quote:

Originally Posted by Cesar82 (Post 490397)
Information about compressed data files is in the records.ini file.
This can only happen if you merged the Records.ini file at the end of the diskspan_gui compression page and are now placing another Records.ini with incorrect information from the compressed data files.
It is not possible to extract any compressed files without existing records.ii next to setup.exe or inside setup.dll.

No no no. I don't put records.ini at the end of disckspsn_gui because I'm using the old version without this option. records.ini is created automatically by diskspan_gui together From the archive. I packed the games before and didn't even touch the file. Now to install the game I have to remove it ... I don't understand anything ...

Cesar82 13-02-2021 14:29

Quote:

Originally Posted by bolek932 (Post 490407)
No no no. I don't put records.ini at the end of disckspsn_gui because I'm using the old version without this option. records.ini is created automatically by diskspan_gui together From the archive. I packed the games before and didn't even touch the file. Now to install the game I have to remove it ... I don't understand anything ...

If you are going to recompress, use the current version of diskspan_gui together with the current light installer 1.0.0.8 (Replace DiskSpan_GUI fix)

If you are not going to decompress, send me your entire project by PM (except compressed data files). Then I will analyze.

hydefromt70s 26-03-2021 09:42

Recently I found very annoying that you cannot set default "split tab" – how many times I forgot to change it from default DVD5 to unlimited and had to repack from scratch... For those who prefer one big archive instead of splitting would be nice to have an option to set the default "split tab" to Unlimited for instance :)

And is there any chance to change naming convention from "setup.bin.001, .002 ..." to "setup-1.bin, setup-2.bin" etc.? .001 extensions does just look weird to me and it doesn't follow standard naming.

Cesar82 26-03-2021 10:13

Quote:

Originally Posted by hydefromt70s (Post 491117)
Recently I found very annoying that you cannot set default "split tab" – how many times I forgot to change it from default DVD5 to unlimited and had to repack from scratch... For those who prefer one big archive instead of splitting would be nice to have an option to set the default "split tab" to Unlimited for instance :)

And is there any chance to change naming convention from "setup.bin.001, .002 ..." to "setup-1.bin, setup-2.bin" etc.? .001 extensions does just look weird to me and it doesn't follow standard naming.

1) I just didn't leave it as an option, set the UNLIMITED tab as default because the EDIT of OUTPUT directory will not be visible (Manual division components will be displayed).
I'll think of something, but I don't think that will change that for now.

2) Yes, this is not yet possible, but in a future version the names may be used as names as Setup1a-01.bin as standard.
However, the future version will no longer support 32-bit systems (It will only be 64-bit with only 64-bit compressors).
But for now only .001 names.

Edit:
DiskSpan_GUI updated in the first post.
- Functionality has been included to allow leaving the disk UNLIMITED selection tab as default.

mashamiskasalo 15-04-2021 16:37

Hi, thanks for your hard work and great program. I wanted to ask if virustotal reacts very negatively to the setup.exe installers it creates. Interestingly, this problem can be solved?

Cesar82 16-04-2021 09:21

Quote:

Originally Posted by mashamiskasalo (Post 491368)
Hi, thanks for your hard work and great program. I wanted to ask if virustotal reacts very negatively to the setup.exe installers it creates. Interestingly, this problem can be solved?

Check and let me know which file is captured as false positive by the virustotal (Setup.exe or Setup.dll).

If it is Setup.dll, try using different methods (only the decompressors used in Setup.dll will be included), to find out which method is including the false positive.

I did a test here with setup.exe.
Compile Setup.exe with Inno Setup 5.59 which will have less false positives in the analysis of the totalvirus.

mashamiskasalo 16-04-2021 10:41

even responds to standard setup exe
InstallerScript [2021.02.07]_original.iss

here is my script (setup.exe)
https://www.virustotal.com/gui/file/...ef51/detection

nothing but the names of the game has changed

https://www.upload.ee/files/13059926/divinity.iss.html

Cesar82 16-04-2021 12:36

Quote:

Originally Posted by mashamiskasalo (Post 491372)
even responds to standard setup exe
InstallerScript [2021.02.07]_original.iss

here is my script (setup.exe)
https://www.virustotal.com/gui/file/...ef51/detection

nothing but the names of the game has changed

https://www.upload.ee/files/13059926/divinity.iss.html


There is nothing that can be done.
Only a basic installer of Inno Setup is already accused as a virus in some of the analyzes.

pratikpatel8982 28-04-2021 01:02

Help
 
Hi, I wanted to ask a few noob questions.
  1. If I created a data.bin.001 using the DiskSpan_GUI which is included inside the light Installer, then what things do I need to add/change in the included Installer script so that it extracts the data.bin.001 successfuly.
  2. Also one more question, do I need to include compressors in [Files] section of the script? AND WILL THE SETUP WORK IF I INCLUDED THE WHOLE "Resources" folder inside the Compressor folder?? Or do I need to copy each compressor seperately??
  3. Where do I put records.ini after compression? And do I need to include it in script??
Thank you

Cesar82 28-04-2021 10:21

Quote:

Originally Posted by pratikpatel8982 (Post 491613)
Hi, I wanted to ask a few noob questions.
  1. If I created a data.bin.001 using the DiskSpan_GUI which is included inside the light Installer, then what things do I need to add/change in the included Installer script so that it extracts the data.bin.001 successfuly.
  2. Also one more question, do I need to include compressors in [Files] section of the script? AND WILL THE SETUP WORK IF I INCLUDED THE WHOLE "Resources" folder inside the Compressor folder?? Or do I need to copy each compressor seperately??
  3. Where do I put records.ini after compression? And do I need to include it in script??
Thank you

After you extract the "Light Installer" source code, extract and delete the "COMPRESSOR" folder.
Download DiskSpan_GUI 1.0.0.4, extract and place the "COMPRESSOR" folder in "Light Installer" folder where you deleted the previous one.

1. Go to the "COMPRESSOR" folder and run "_DiskSpan_GUI_CONFIG.bat" and change the settings you need and click "Save" and close DiskSpan_GUI.

2. Go back to the main "Light Installer" folder and open the script with Inno Setup to create and compile the script after making the necessary changes to the script. Your Setup.exe will be created in the "COMPRESSOR\Setup_Files" folder.

3. Now you can compress the game. After compressing the game, the compressed files will be in the selected output directory (Default is COMPRESSOR\Conversion_Output).
Subfolders will be created according to the configuration on DiskSpan_GUI (By default it creates DVD_1, DVD_2, etc) during the compression of the game.
Your setup.exe compiled previously will be automatically copied to the DVD_1 folder and the disk space will be calculated according to the settings in DiskSpan_GUI.
All necessary files will be in the DVD_# folder. So do not remove any files from the DVD_# folder.
For example, if you compress an 8 GB game (DiskSpan mode) and the compression is 6 GB, then in the "COMPRESSOR \ Conversion_Output" folder you will have these files:

Code:

COMPRESSOR\Conversion_Output\DVD_1
Autorun.inf          //Disk autoplay information.
Data1a.bin.001      //Compressed file (first split part).
Records.ini          //Information file about compressed filesfiles that setup.exe reads.
Setup.dll            //File of type ".arc" (compressed -m3) containing all external compressors and also CLS and FreeArc configuration files necessary to perform the extraction of the file.
Setup.exe            //Setup created by Light Installer script.
Setup.ico            //Icon of Light Installer to display on the DVD/Blu-Ray drive.

COMPRESSOR\Conversion_Output\DVD_2
Autorun.inf          //Disk autoplay information.
Data1a.bin.002      //Compressed file (second split part).
Setup.ico            //Icon of Light Installer to display on the DVD/Blu-Ray drive.

P.S: You can merge Records.ini in the Setup.dll file on the finish page of DiskSpan_GUI after compression (optional).

Cesar82 28-04-2021 10:23

Quote:

Originally Posted by Gehrman (Post 491616)
Cesar82 Dear
Please add the archive test option (arc t data.bin) after compression and create MD5 hash.

I did not understand your request. If possible, explain further.
If you want you can send a PM with more details of your request.

Gehrman 28-04-2021 13:35

Quote:

Originally Posted by Cesar82 (Post 491619)
I did not understand your request. If possible, explain further.
If you want you can send a PM with more details of your request.

Test archive after operation
Very useful and essential. This option

https://s18.picofile.com/file/8432126392/1.jpg

Cesar82 28-04-2021 18:59

Quote:

Originally Posted by Gehrman (Post 491621)
Test archive after operation
Very useful and essential. This option

https://s18.picofile.com/file/8432126392/1.jpg

I did some tests using the -t parameter on the commandline, and for me to include this functionality it would be necessary to include several files (More than 15 Mb) in the resources folder just for testing.
It would also be necessary to include a checkbox to enable the test.

I may include this in version 2.0 of DiskSpan_GUI, but I don't promise anything (I don't know if it will work for all methods).

Currently it has a button that makes the extraction process simulating the installer. This test is more reliable because if for some reason any decompressor is missing it will fail.
The FreeArc test will test the file, but if any decompressor or config is missing from Setup.dll, even though the FreeArc test is OK, it may happen that the installer fails during installation (If anything is missing from Setup.dll).


About the MD5 check, what was your suggestion?
Generate a hash for the Data.bin.001 files?
If so, I don't think it would work because the files would be in separate folders or on some kind of disk. It would only work if they had all files in one folder.

Mypko 12-05-2021 02:03

Thanks for the program! Wondering if you can use quickbms for Lego games?

Masquerade 12-05-2021 12:24

Quote:

Originally Posted by Mypko (Post 491913)
Thanks for the program! Wondering if you can use quickbms for Lego games?

Well, yeah you need to use quickbms but this has no relation to the script. quickbms is a standalone tool.

kast1450 22-05-2021 19:41

Hello, is there any way to add plugins aside from decompiling and recompiling DiskSpan_GUI?

I like compressing Unity games, and I saw there is a XTool 2019 plugin for Unity Engine which seems nice.
Unity uses LZ4 for compression, and I noticed there's an LZ4 switch already implemented, but it would be nice to be able to add custom plugins anyways.

I also have a question about LOLZ, I noticed that it supports media compression in the documentation, such as raw audio and stuff. Is something such as MSC needed before LOLZ or will LOLZ take care of that entirely?

Thanks in advance

Cesar82 22-05-2021 21:02

Quote:

Originally Posted by kast1450 (Post 492303)
Hello, is there any way to add plugins aside from decompiling and recompiling DiskSpan_GUI?

I did not understand your question.
DiskSpan_GUI is 95% configurable by editing the DS_Methods.ini file in the Resources folder.

Quote:

Originally Posted by kast1450 (Post 492303)
I like compressing Unity games, and I saw there is a XTool 2019 plugin for Unity Engine which seems nice.
Unity uses LZ4 for compression, and I noticed there's an LZ4 switch already implemented, but it would be nice to be able to add custom plugins anyways.

DiskSpan_GUI 1.0.0.4/1.0.0.5 has support for different plugins for XTool. It is in the custom method selection tab in the group referring to XTool 2020.
Could you share the link to this plugin for me to get more information?

Quote:

Originally Posted by kast1450 (Post 492303)
I also have a question about LOLZ, I noticed that it supports media compression in the documentation, such as raw audio and stuff. Is something such as MSC needed before LOLZ or will LOLZ take care of that entirely?

Sorry, I don't know the answer to that question.

kast1450 22-05-2021 21:34

Quote:

Originally Posted by Cesar82 (Post 492304)
I did not understand your question.
DiskSpan_GUI is 95% configurable by editing the DS_Methods.ini file in the Resources folder.



DiskSpan_GUI 1.0.0.4/1.0.0.5 has support for different plugins for XTool. It is in the custom method selection tab in the group referring to XTool 2020.
Could you share the link to this plugin for me to get more information?



Sorry, I don't know the answer to that question.

Hi, thanks for the response, the link to the plugin is here:
https://fileforums.com/showpost.php?...64&postcount=6

After reading it again it just claims to give support for LZ4, so since the LZ4 switch is already implemented I guess it's not needed.

Cesar82 22-05-2021 22:13

Quote:

Originally Posted by kast1450 (Post 492305)
Hi, thanks for the response, the link to the plugin is here:
https://fileforums.com/showpost.php?...64&postcount=6

After reading it again it just claims to give support for LZ4, so since the LZ4 switch is already implemented I guess it's not needed.

I think so.
Using DiskSpan_GUI, for LZ4 it may be necessary to test with different versions of the LZ4 library by replacing the library in the "Resources\PRE\XTool_2020\Libraries\LZ4" folder.

Cesar82 30-06-2021 14:04

Updated Light Installer Script to v1.0.0.9
See the changelog for more details.

Edit:
Attachment file reloaded on first post.
Fixed some bugs (Kept same version).

Beliathal 07-08-2021 06:57

I'm sorry for asking potentially dumb question...

I have a big collection of games, some of them taking a lot of space, so I'm trying to see if I can repack a few of them. I'm doing this for my self, not for the purpose of releasing or posting on any sites/forums.

I usually would just use FreeArc, WinUha, 7z etc. But some of the games I have would not get compressed at all or the compression would not be very efficient. So I've become curious about how people actually "repack" stuff and discovered this site. However, cannot find a clear and simple solution on the subject of how to unpack what's been packed with DiskSpan or UltraArc :(

I've used DiskSpan GUI to repack a game. I used xlib+srep+lzm, which seems to be producing much better compressions results than any other method I've tried.

Now I have these files: Data1a-01.bin -> Data1a-05.bin and a Setup.dll

How do I make the installer script unpack those files? Simply placing the .bin files besides the setup.exe doesn't do anything at all.

I'm at loss here :(

KaktoR 07-08-2021 07:10

You need records.ini file (Diskspan GUI creates this file automatically).

Edit: Oh he deletes his post, so my post seems pointless now :D

Beliathal 07-08-2021 07:55

Quote:

Originally Posted by KaktoR (Post 493592)
You need records.ini file (Diskspan GUI creates this file automatically).

Edit: Oh he deletes his post, so my post seems pointless now :D

I'm so sorry. I wanted to edit this post and delete another, pushed the wrong button... One too many forums opened simultaneously + very tired.

1000 thanks for pointing me to the right direction.

I didn't know that records.ini is missing and is necessary :) Was using DiskSpan GUI on Windows 7, it would compress just fine, then give me an error which I ignored (dumb me), unaware that the records.ini is not being created...

Switched to Windows 10 and it worked flawlessly.

Thank you again

Grumpy 08-08-2021 07:52

Quote:

Originally Posted by KaktoR (Post 493592)

Edit: Oh he deletes his post, so my post seems pointless now :D

Yeh I hate that when it happens to me lol ... so I restored 'his' post ;)

Grumpy 08-08-2021 07:56

Quote:

Originally Posted by Beliathal (Post 493591)
I'm sorry for asking potentially dumb question...

There is no such thing as a dumb question. If you do not know something then you ask and not only will you get an answer you will also learn something new, then you can answer the same question if someone else asks it. ;)

Cesar82 15-08-2021 02:32

Light Installer Script 1.0.0.9.u1
 
Added Light Installer Script 1.0.0.9 update 1 in first post (Fixed some bugs).

Gehrman 28-08-2021 08:06

please
add taskkill for XTool.exe

Cesar82 28-08-2021 08:29

Quote:

Originally Posted by Gehrman (Post 493792)
please
add taskkill for XTool.exe

Why?
Is there any problem?
is Xtool still running?

All executables in the temp folder are checked if they are running and processes are closed when an error occurs or is still running after successfully installing (if this worked correctly).

Gehrman 28-08-2021 09:58

1 Attachment(s)
Quote:

Originally Posted by Cesar82 (Post 493793)
Why?
Is there any problem?
is Xtool still running?

All executables in the temp folder are checked if they are running and processes are closed when an error occurs or is still running after successfully installing (if this worked correctly).

see video

Cesar82 28-08-2021 11:29

1 Attachment(s)
Quote:

Originally Posted by Gehrman (Post 493798)
see video

Try with attached script.
Inform if it works.

Gehrman 29-08-2021 04:14

1 Attachment(s)
Thanks Cesar82

Another request:o

Please add Persian language in later versions
https://s18.picofile.com/file/8440040418/FA_LI.jpg
Code:

#ifdef Farsi
Farsi.ButtonPause=تعلیق کردن
Farsi.ButtonResume=ادامه یافتن
Farsi.Extracting=‫استخراج کردن... %1
Farsi.Merging=‫ادغام فایل %1 (%3%) به %2 (%4%)...
Farsi.ChangeDiskLabel=‫لطفاً دیسک %1 را با فایل %2 وارد کنید.%n فایل مورد نیاز را جستجو کنید؟
Farsi.ExtractingTempFiles=‫استخراج فایل های موقت. لطفا صبر کنید!
#endif



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

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