PDA

View Full Version : Light Installer Script (LIS) - DiskSpan_GUI


Cesar82
02-04-2020, 15:22
https://i.imgur.com/CGcwxDK.pnghttps://i.imgur.com/frcl8Jh.png
I read some user comments here on the forum looking for the simplest installer possible, but with the features present in CIU and ASIS.
Light Installer Script (LIS) has the same compressors as CIU/ASIS, but with the simplicity of a basic Inno Setup installer, ideal for beginners.
Remove ";" from the beginning of the ;#define Is64BitOnly line in the InstallerScript file if the game is only compatible with 64-bit systems.
Others settings and also the language definition are made within the *.iss script through ISPP definitions.
Special thanks to all the developers of the compressors and librarys used in this installer.
I hope it will be useful to users looking for compression only, not design.
Changelog:

VERSION: 1.0.1.8 - Release based on CIU version 3.0.0.2 (final)
- Added compatibility with DiskSpan GUI 2.0.2.4+.
- Added data hash page to check integrity of compressed files.
- Fixed some minor bugs.

VERSION: 1.0.1.7 - Release based on CIU version 3.0.0.1 (final)
- Added compatibility with DiskSpan GUI 2.0.2.3+.
- Fixed some minor bugs.

VERSION: 1.0.1.6 - Release based on CIU version 3.0.0.1 (final)
- Added compatibility with DiskSpan GUI 2.0.2.1+.
- Fixed some minor bugs.

VERSION: 1.0.1.5 - Release based on CIU version 3.0.0.1 (final)
- Updated XHashEx.dll library to v1.0.0.0 build 230729 no UPX version.
- Updated SplitLib.dll library to v1.0.0.5 build 240330 (UPX).
- Added support to splash image (IsGsg.dll by South.Tver).
- Added watter efects in all installer images (WaterCtrl.dll by RESTOOL).
- Added suport to skinsharp (SkinH.dll library by Shegorat) with Inno Setup 5.
- Added support to include compressor inside "Setup.exe" file.
>> Add the compressors to a "DECOMPRESSOR" folder next to the script before compiling to include the desired compressors within "Setup.exe" file.
>> It also supports using folder structure with desired compressors.
- Added support to new hash algorithms using key Size= of the "Records.ini" file to set algorithm type.
>> If key Size= exists, LIU will use the "VerifyHashesFromFileEx" function from "XHashEx.dll", otherwise it will use the "VerifyHashesAutoFromFileEx" function.
>> If you enter the type of algorithm you have 21 algorithm options, otherwise only 5 algorithm options.
>> If you prefer, you can also enter just the algorithm number from "0" to "21' in the parameter value.
** crc32, md5, sha1, sha256, sha512 (These 5 algorithm are supported in auto mode).
** sha512_256, sha3_256, sha3_512, blake2_128, Blake2_256, blake3_256, haval3_128, haval3_256,
** ripemd_128, ripemd_256, tiger_128, tiger_192, tiger2_128, tiger2_192, murmurhash_32, xxhash_32
- Fixed some minor bugs.

VERSION: 1.0.1.4 - Release based on CIU version 3.0.0.1.b9.u5
- Updated XHashEx.dll library to v1.0.0.0 build 2300303 no UPX version (Thanks to BLACKFIRE69).
- Added compatibility with DiskSpan GUI 2.0.1.7+.
- Added fade effect on move installer window.
- Added example of using components and tasks.
- Fixed some minor bugs.

VERSION: 1.0.1.3 - Release based on CIU version 3.0.0.1.b9.u4
- Updated support to DiskSpan GUI 2.0.1.4+
- Updated SplitLib.dll library to v1.0.0.1 build 221204.
- Updated XHashEx.dll library to v1.0.0.0 build 221120 (Thanks to BLACKFIRE69).

VERSION: 1.0.1.2 - Release based on CIU version 3.0.0.1.b9.u3
- Updated support to DiskSpan GUI 2.0.1.3+
- Updated XHashEx.dll library (Thanks to BLACKFIRE69).
- Added extraction progress and hash checking progress in taskbar.
- Fixed some minor bugs.

VERSION: 1.0.1.1 - Release based on CIU version 3.0.0.1.b9.u3
- Fixed ISSP condition to work cjstyles skin parammeter.
- Added support to DiskSpan GUI 2.0.1.2+
>> Added page to do file integrity check (Thanks to BLACKFIRE69 for XHashEx.dll library).
>> Added support for running external executables or command lines via cmd from pre-settings in DiskSpan GUI.

VERSION: 1.0.1.0 - Release based on CIU version 3.0.0.1.b9
- Added support for Persian (Farsi) language to Light Installer Script (Thanks to Gehrman for collaboration).
- Added support for skinsharp skins (SkinH.dll library by Shegorat) to Light Installer Script.
>> The library of the skinsharp does not support special characters like cyrillic characters.
>> So languages like Russian and Japanese and Persian should get broken using skinsharp.
- Fixed some minor bugs.

VERSION: 1.0.0.9 - Release based on CIU version 3.0.0.1.b9
- Updated support to DiskSpan_GUI 2.0.0.0
- Added optional second ProgressBar.
- Added polish language support.

VERSION: 1.0.0.8 - Release based on CIU version 3.0.0.1.b8.u2
- Removed COMPRESSOR_GUI/DiskSpan.bat support (Only DiskSpan_GUI is supported).
- Removed support for internal extraction data settings (Removed internal and external Setup.ini)
- Removed CreateDLL function (Only needed for DiskSpan.bat/UltraARC.exe).
- Fixed some minor bugs.

VERSION: 1.0.0.7 - Release based on CIU version 3.0.0.1.b7.u5
- Added support for XTool 2020 to LIS.
- Added LIS compatibility with DiskSpan_GUI tool.
>> Now an external DLL with the compressor files is needed to perform the extraction.
>> When compressing the game using the DiskSpan_GUI tool, the DLL will be created automatically with only the compressors needed to perform the extraction.
>> If you compress using another tool such as UltraArc or DiskSpan.bat, you will need to create the DLL manually, selecting in the COMPRESSOR_GUI.exe the compressors you want to include.
>> Then click on the button "Create DLL" or enable the line ";#define CreateDLL" at the beginning of the CIU script (The compressors defined in COMPRESSOR_GUI.exe will be used).
- Fixed some minor bugs.

VERSION: 1.0.0.6 - Release based on CIU version 3.0.0.1.b7.u3
- Updated compressor/decompressor "ZStandard" (ZSTD) from v1.4.4 to v1.4.5 (x64 + x86).
- Fixed an error that did not include compressors/decompressors when selecting RazorTools tools that are specific to one of the games.

VERSION: 1.0.0.5 - Release based on CIU version 3.0.0.1.b7.u2
- Fixed CRC error when performing the extraction.
>> Does not match checksum! (ERROR: <FileName> CRC Check) (FreeArc error code -12)
>> The error was in the "COMPRESSOR_GUI.exe" file that displayed errors when using compressors XTool or ZTool.
- Added functionality to use the "CLS-DISKSPAN.dll" original build by Razor12911 just replacing the DLL in the folder.

VERSION: 1.0.0.4 - Release based on CIU version 3.0.0.1.b7.u1
- Updated UltraARC to version 2900 R9.
- Fixed the "LabelCurrFileName" label to display the correct path of the file being extracted.
- Fixed progress bar to display the bar by the amount of file "Data#.bin.001" when not using the key Size=.
>> The Size= key used in the "Records.ini" file or in the [ExtractSettings] section of the "Setup.ini" file.

- Removed "PMT" from LIS (Reason: "MTX" has the same functionality).
- Removed "PrecompX" from LIS (Reason: "MTX" has the same functionality).
- Added "MTX" v5.0 to LIS compression methods like: precomp, mpzapi, razor, lolz.
>> Use in DiskSpan.bat: precomp_mtx, mpzapi_mtx, razor_mtx, lolz_mtx.
>> More information about MTX at: https://fileforums.com/showthread.php?t=103664

- Added new RazorTools decompression method ue4dt/UE4DT "Unreal Engine 4 Decryption Tool".
>> More information about ue4dt.exe at: https://www.fileforums.com/showthread.php?t=103145
>> DiskSpan.bat defined method like using:
>> set GAME[1].METH[1]=ue4dt:m2:k0x5DD20432F2AD810071033FC3F925FFDFD6475 14524D0A0D222E17D76BAF57BFD+lzma:ultra
>> ue4dt.exe e|d -m# -c# -b# -k# <stdin> <stdout>
>> -m = method (1 = games that use borderlands3, street figher v... format, 2 = games that use rune ii format)
>> -c = chunk size
>> -b = block count
>> -k = key in hexadecimal.

- Added new "RazorTools" decompression method "Metro Exodus", "Project CARS 3", "Saints Row 3 Remastered", "Death Stranding"
>> Currently LIS supports all these Razor12911 tools.
>> FIFA 19 Cas Decryption Tool + Precompressor https://fileforums.com/showthread.php?t=102461
>> Project CARS 2|3 Bff Decryption Tool https://fileforums.com/showthread.php?t=102524
>> Death Stranding Decryption Tool https://fileforums.com/showthread.php?t=103699
>> Metro Exodus Precompression Tool https://fileforums.com/showthread.php?t=103563
>> SRTTR Precompression Tool https://fileforums.com/showthread.php?t=103546
>> LZO Precompressor (Side project) https://fileforums.com/showthread.php?t=102615
>> LZX Precompressor (Side project) https://fileforums.com/showthread.php?t=102675
>> ZSTD Precompressor (Side project) https://fileforums.com/showthread.php?t=102599
>> Unreal Engine 4 Decryption Tool https://fileforums.com/showthread.php?t=103145

VERSION: 1.0.0.3 - Release based on CIU version 3.0.0.0.u9/3.0.0.1.b6
- Added Hungarian language to Light Installer Script.
- Added checking if executable exists to create shortcuts.
- Added language checking for files to be extracted depending on the installer's chosen language.
- Added support for ISSKin and VCLStyles on installation and uninstallation.
- Added custom SelectFolder form to fix errors in some skins.
- Updated DiskSpan library to version R3 (Modifyed version).
- Fixed PMT for RAZOR and MPZ compressors.
- Fixed errors related to the size parameter for correct percentage of the progress bar during the extraction.
- Added an option to make it possible to use the internal DiskSpan RequestDisk (Optional) if extraction errors occur.
>> If errors happen you can remove the ";" line ";#define INTERNAL_DiskSpan_RequestDisk" to use the internal RequestDisk of DiskSpan library.
>> This makes it possible to check if the error is due to using RequestDisk in the script.
- Added ZSTDRec precompressor option separately in "COMPRESSOR_GUI.exe".

VERSION: 1.0.0.2 - Release based on CIU version 3.0.0.0.u8/3.0.0.1.b5 (like the previous version)
- Fixed size of the game that did not work above 4 GB (Include Calc.exe).
- Added option Rezizable to set resizable style (Supported only with Inno Setup 6).
- Fixed errors when compiling with Inno Setup 5.
- Fixed Transparency of the logo when compiled with Inno Setup 5.
- Fixed the use of PMT for RAZOR and MPZ that was not working before.
- Fixed Inno Setup 6 messages DiskSpaceGBLabel, DiskSpaceMBLabel in Portuguese (Brasil) language.

VERSION: 1.0.0.1 - Release based on CIU version 3.0.0.0.u8/3.0.0.1.b5
- Updated decompressor RAR (UnRAR.dll) from v5.80 to v5.90

- Added support for "PMT - Parallel Multithreaded Encoder/Decoder" for "RAZOR" and "MPZ" compressor.
>> PMT is a 4x4 like algorithm to make everything run parallelly.
>> You can run any compressor/encoder that supports stdio/stdin/stdout or even nothing.
>> The program can make a single threaded compressor multithreaded by using blocks, just like 4x4.
>> For more information visit: https://fileforums.com/showthread.php?t=103230

VERSION: 1.0.0.0 - Release based on CIU version 3.0.0.0.u7/3.0.0.1.b4

https://i.imgur.com/zvZzisW.png
https://i.imgur.com/7gkIBn6.png
https://i.imgur.com/T2dsWUX.png
https://i.imgur.com/htvHIIN.png
https://i.imgur.com/MRAWagS.png

P.S: The current version of the "Light Installer Script" must be used together with the "DiskSpan_GUI 2.0.2.4+" (by Cesar82) that comes with the source code.

INFO: Download DiskSpan_GUI (https://www.fileforums.com/showthread.php?t=104507) (Last Version) and extract the "COMPRESSOR" folder to the Light Installer Script SRC folder (Along with InstallerScript.iss).

Cesar82
02-04-2020, 15:23
Light Installer script can be compiled with Inno Setup 5.57 or newer.
I recommend using Inno Setup 6 repack (https://fileforums.com/showpost.php?p=492988&postcount=4) (Updated to v6.05).
To compress the game files use the "UltraArc/DiskSpan" compressor in the attachment to this post.
Others tools can use the same tools available on the CIU thread.
https://www.fileforums.com/showthread.php?t=102510

Cesar82
02-04-2020, 15:23
Previous version of Light Installer.
Light Installer version 1.0.0.1/1.0.0.2 is compatible with the UltraArc/DiskSpan tools from the file "_Tools (2020-04-24) .7z" (Removed)
Light Installer version 1.0.0.3 is compatible with the UltraArc/DiskSpan files from post #2.
UltraARC 2900 R7 FULL (DISK SPAN R3) [2020-06-11].7z

P.S:
- Light Installer version 1.0.0.4 has a "CRC check" error when performing the extraction when using XTool or ZTool.
- Light Installer version 1.0.0.5 there are errors when using RazorTools tools (only for specific ones for a game).
- Light Installer version 1.0.0.8 compatible with DiskSpan_GUI 1.0.0.5 in post #2.
- Light Installer version 1.0.1.1 compatible with DiskSpan_GUI 2.0.1.2 (only).
- Light Installer version 1.0.1.2 compatible with DiskSpan GUI 2.0.1.3+.
- Light Installer version 1.0.1.3 compatible with DiskSpan GUI 2.0.1.4+.
- Light Installer version 1.0.1.4 compatible with DiskSpan GUI 2.0.1.7+.

Files moved from the main post:

Light Installer Script 1.0.0.0 (296 views)
Light Installer Script 1.0.0.1 (194 views)
Light Installer Script 1.0.0.2 (200 views)
Light Installer Script 1.0.0.3 (825 views)
Light Installer Script 1.0.0.4 (128 views)
Light Installer Script 1.0.0.5 (201 views)
Light Installer Script 1.0.0.6 (268 views)
Light Installer Script 1.0.0.7 (247 views)
Light Installer Script 1.0.0.8 (1004 views)
Light Installer Script 1.0.0.9 (501 views)
Light Installer Script 1.0.1.0 (702 views)
Light Installer Script 1.0.1.1 (43 views)
Light Installer Script 1.0.1.2 (177 views)
Light Installer Script 1.0.1.3 (238 views)
Light Installer Script 1.0.1.4 (701 views)
Light Installer Script 1.0.1.5 (225 views)

ff20
03-04-2020, 02:47
Thanks, Cesar82

This might be the toolset I was looking for ^^

btw, what could be the cause of all this false-positives?

https://www.virustotal.com/gui/file/94036a5b57bcfd06da9d129781aec5b022f579a976b306ec46 47f2dd32cbec8d/detection

Cesar82
03-04-2020, 09:40
Thanks, Cesar82

This might be the toolset I was looking for ^^

btw, what could be the cause of all this false-positives?

https://www.virustotal.com/gui/file/94036a5b57bcfd06da9d129781aec5b022f579a976b306ec46 47f2dd32cbec8d/detection
This TOTAL VIRUS (no good) returns many false positives.
I use Kasperky Internet Security (Shareware) here.
The file "Light Installer 1.0.0.0 SRC.7z" has no type of virus.
https://i.imgur.com/yq4QKvz.jpg
Maybe it is because some of the internal libraries have UPX compression (To reduce the size).
If you want, after extracting the .7z file, individually test each file or the folder with the file and let me know which of the internal files is returning a false positive.
You may be able to remove UPX compression if this is the case.

pincoball
22-05-2020, 08:45
I've been trying to use Light Installer on a set of archives splitted by DiskSpan (total packed = 12GB, unpacked = 35GB) when it comes to extract them during installation it remains stuck at "Extracting temporary files..."

Then I compared it with ASIS (and the version of DiskSpan dll it comes with) and it works flawlessly.

What I strangely noticed in Light Script (and your modificed DiskSpan dll) while remaining stuck at the caption said before, it just copy the archives slices (data.bin.001, etc.) in the temp folder %TEMP%\is-[random code].tmp while ASIS doesn't. Moreover I wasn't be able to reproduce the problem with smaller archives compressed with same method

So what I ask is if it is some sort of bug and also if I can revert to the original DiskSpan that comes with ASIS (simply changing the declarations of functions didn't seems to work)

KaktoR
22-05-2020, 08:57
I also get this freeze. Seems like the installer is freeze for a few seconds/minutes. Just wait, it will work.

Cesar82
22-05-2020, 19:19
I also get this freeze. Seems like the installer is freeze for a few seconds/minutes. Just wait, it will work.

Updated Light Installer to v1.0.0.2 (REUPLOADED)
I updated the file in the first post. I think it's working now.

Cesar82
22-05-2020, 20:18
I've been trying to use Light Installer on a set of archives splitted by DiskSpan (total packed = 12GB, unpacked = 35GB) when it comes to extract them during installation it remains stuck at "Extracting temporary files..."

Then I compared it with ASIS (and the version of DiskSpan dll it comes with) and it works flawlessly.

What I strangely noticed in Light Script (and your modificed DiskSpan dll) while remaining stuck at the caption said before, it just copy the archives slices (data.bin.001, etc.) in the temp folder %TEMP%\is-[random code].tmp while ASIS doesn't. Moreover I wasn't be able to reproduce the problem with smaller archives compressed with same method

So what I ask is if it is some sort of bug and also if I can revert to the original DiskSpan that comes with ASIS (simply changing the declarations of functions didn't seems to work)
If possible, let me know which game you compressed and which method you used.
Did you assume that you are copying Data1.001 data files, etc. to the temporary folder? This should not happen.
Remember that version 1.0.0.1 and 1.0.0.2 is necessary to use CIU Tools 3.0.0.0.u8 (The previous tools may not work).
It is not possible to use the ASIS DiskSpan without redoing much of the code and would also not support the Pause button (While unpacking is paused, time is paused as well).

I updated a new file in the first post...
Try now.

pincoball
23-05-2020, 01:57
Thank you! Now it seems to be working
FYI the method I used was pzlib+srep:m1f:l512+4x4:b128mb:lzma:a1:mfbt4:64m:f b273:mc1000000:lc8 (Battlefield 3)
I didn't test it but I thought it was due to a couple of calling of CopyCompressorsEx function (that indeed you fixed) after extracting in temp folder of other files and thus not due to DiskSpan itself, but I am not pretty sure

Cesar82
23-05-2020, 02:28
Thank you! Now it seems to be working
FYI the method I used was pzlib+srep:m1f:l512+4x4:b128mb:lzma:a1:mfbt4:64m:f b273:mc1000000:lc8 (Battlefield 3)
I didn't test it but I thought it was due to a couple of calling of CopyCompressorsEx function (that indeed you fixed) after extracting in temp folder of other files and thus not due to DiskSpan itself, but I am not pretty sure
Yes the problem was in the CopyCompressorsEx lines.
This function is to include external compressors only needing to include an external folder and inform it in Records.ini or Setup.ini (If you don't use records.ini).
Before I was copying everything that was in the same folder as Setup.exe to a temporary folder (Now I fixed it).
Just remove the lines that would have corrected.
Thank you for reporting the error.

I will soon share a new version of the Light installer with the new Cls-DiskSpan.dll library by Razor12911.

Emorian
25-05-2020, 18:44
Hi,

How do I incorporate the Records.ini file so that it is not next to it?

Cesar82
25-05-2020, 19:13
Hi,

How do I incorporate the Records.ini file so that it is not next to it?
This is not necessary, you can use the [ExtractSettings] section of Setup.ini instead of Records.ini

Example of how to convert sections from Records.ini to [ExtractSettings] from Setup.ini (Note the colors).

[Record1]
Type=Freearc_Original
Source={src}\Data1.bin.001
Output={app}
Disk=1

[ExtractSettings]
ArcFile1={src}\Data1.bin.001;DestDir:{app};Type:AR C;Disk:1

Emorian
25-05-2020, 19:33
UltraArc: MSC+SREP+LZMA, Result = Data-1.bin in OutPutDir..
How do I add this to the Setup.ini file?
(Or even a file created with Diskspan?)

Cesar82
25-05-2020, 19:45
UltraArc: MSC+SREP+LZMA, Result = Data-1.bin in OutPutDir..
How do I add this to the Setup.ini file?
(Or even a file created with Diskspan?)
ArcFile1=Data-1.bin;DestDir:{app};Type:ARC;Disk:1
This is good?
Yes, that's it.
Just specify the first file in Setup.ini when using DiskSpan (Data.bin.001).
DiskSpan used in current version v1.0.0.2 is still the old version of DiskSpan.dll and only supports naming .001, .002, etc.
ArcFile1=Data1.bin.001;DestDir:{app};Type:ARC;Disk :1

Emorian
25-05-2020, 20:20
The following files are available (UltraArc):
ArcFile1=Data-1a.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:1;Size:208.666.624;Flags: splitfile;
ArcFile2=Data-1b.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:2;Size:209.715.200;Flags: splitfile;
ArcFile3=Data-1c.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:3;Size:209.715.200;Flags: splitfile;
ArcFile4=Data-1d.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:4;Size:98.508.322;Flags: splitfile;
ArcFile4=Data-1.bin;DestDir:{app};Type:ARC;Disk:4;Flags: joinedfile;

Runtime error: Line 1503 (Out of range)

Line: 1503:

if (Y > I) and ((CompareText(Data[I].Arc[1], Data[Y].Arc[0]) = 0) or (Pos('joinedfile', Data[Y].Arc[9]) > 0)) then
Data[I].Arc[11] := SizeMBToBytes(Data[Y].Arc[8]);
end;


This is Records.ini in Ultraarc:

[Record1]
Type=Split
Source={src}\Data-1a.bin
Output={app}\Data-1.bin
Disk=1
[Record2]
Type=Split
Source={src}\Data-1b.bin
Output={app}\Data-1.bin
Disk=2
[Record3]
Type=Split
Source={src}\Data-1c.bin
Output={app}\Data-1.bin
Disk=3
[Record4]
Type=Split
Source={src}\Data-1d.bin
Output={app}\Data-1.bin
Disk=4
[Record5]
Type=Freearc_Split
Source={app}\Data-1.bin
Output={app}
Disk=4


occasionally says the following as an error: unknow identifier (Line 1281: OptimalCheck)


And now please ?!

Cesar82
26-05-2020, 02:14
The following files are available (UltraArc):
ArcFile1=Data-1a.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:1;Size:208.666.624;Flags: splitfile;
ArcFile2=Data-1b.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:2;Size:209.715.200;Flags: splitfile;
ArcFile3=Data-1c.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:3;Size:209.715.200;Flags: splitfile;
ArcFile4=Data-1d.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:4;Size:98.508.322;Flags: splitfile;
ArcFile4=Data-1.bin;DestDir:{app};Type:ARC;Disk:4;Flags: joinedfile;

Runtime error: Line 1503 (Out of range)

This runtime error is because you have not increased the number of ArcFile on the last line.
If you specify size, you must also inform the Size of the joined file.
ArcFile1=Data-1a.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:1;Size:208.666.624;Flags: splitfile;
ArcFile2=Data-1b.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:2;Size:209.715.200;Flags: splitfile;
ArcFile3=Data-1c.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:3;Size:209.715.200;Flags: splitfile;
ArcFile4=Data-1d.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:4;Size:98.508.322;Flags: splitfile;
ArcFile5=Data-1.bin;DestDir:{app};Type:ARC;Disk:4;Size:726.605.3 46;Flags: joinedfile;


occasionally says the following as an error: unknow identifier (Line 1281: OptimalCheck)

And now please ?!
That was my mistake. I forgot to delete this from the code.
As I compiled this part of the CIU beta5 code, I forgot to remove it. Just remove the 3 lines in script (Remove from "if" until after "else".).
if OptimalCheck.Checked then
SetIniString('External compressor:mpz,mpzapi', 'unpackcmd', ' pmt d {compressor} -t100p - - <stdin> <stdout>', ExpandConstant('{tmp}\Arc.ini'))
else
Here is a hotfix for source code 1.0.0.2
Replace the script in the source code 1.0.0.2 (Delete the previous script).

Changes:
- Fixed to hide the pause button on the finish page.
- Fixed to set to finish the "Timer" that updates the labels after completing the installation.
- Removed unnecessary part of the code that displayed an error related to "OptimalCheck" when using PMT + MPZ method.
- Fixed not to display an error when the size is entered incorrectly in the extraction parameters.

Emorian
26-05-2020, 11:28
Remove the red? (I was confused :))


if OptimalCheck.Checked then
SetIniString('External compressor:mpz,mpzapi', 'unpackcmd', ' pmt d {compressor} -t100p - - <stdin> <stdout>', ExpandConstant('{tmp}\Arc.ini'))
else
SetIniString('External compressor:mpz,mpzapi', 'unpackcmd', ' pmt d {compressor} -t75p - - <stdin> <stdout>', ExpandConstant('{tmp}\Arc.ini'));
end;


This runtime error is because you have not increased the number of ArcFile on the last line.
If you specify size, you must also inform the Size of the joined file.


Thanks, I set it up as you wrote and it happened:
Error: Unarc.dll code -2 Unsupported compression .... method
msc+srep+lzma:a1:mfbt4:d256m:fb273:mc:1000000000:l c8 (UltraArc 2900 R7 = MSC+SREP+LZMA in setting)

msc+srep+lzma:a1:mfbt4:d256m:fb128:mc:1000000000:l c8+diskspan500mb:500mb (DiskSpan by Razor12911)

Cesar82
26-05-2020, 22:09
[Thanks, I set it up as you wrote and it happened:
Error: Unarc.dll code -2 Unsupported compression .... method
msc+srep+lzma:a1:mfbt4:d256m:fb273:mc:1000000000:l c8 (UltraArc 2900 R7 = MSC+SREP+LZMA in setting)

msc+srep+lzma:a1:mfbt4:d256m:fb128:mc:1000000000:l c8+diskspan500mb:500mb (DiskSpan by Razor12911)
Check if you checked the SREP and MSC compressors in the "Compressor GUI" before compiling Setup.exe?

Emorian
27-05-2020, 10:55
You said it’s great for beginners and because it works.
i use it, i didn't set anything in the settings.
I thought I would succeed too.
It doesn't go for the "Diskspan", it really doesn't go. He does not want it.


I tried the diskspant and the Ultra Arc, I didn't get into the settings!
(_Tools (2020-04-24).7z (https://www.fileforums.com/attachment.php?attachmentid=26717&d=1587805985))
I don't even know what to do


The ultraArc MSC + SREP + LZMA works!
crashes at LoLz.
It doesn't work at the splitter. That would be Diskspan. but. it doesn't work well


Other:
If the package name is Setup.bin, or Setup-x.bin, (no Data.xxx or Data-x.xxx) it will be deleted at runtime.
Thank you so much for your help !!

Cesar82
27-05-2020, 13:31
You said it’s great for beginners and because it works.
i use it, i didn't set anything in the settings.
I thought I would succeed too.
It doesn't go for the "Diskspan", it really doesn't go. He does not want it.


I tried the diskspant and the Ultra Arc, I didn't get into the settings!
(_Tools (2020-04-24).7z (https://www.fileforums.com/attachment.php?attachmentid=26717&d=1587805985))
I don't even know what to do


The ultraArc MSC + SREP + LZMA works!
crashes at LoLz.
It doesn't work at the splitter. That would be Diskspan. but. it doesn't work well


Other:
If the package name is Setup.bin, or Setup-x.bin, (no Data.xxx or Data-x.xxx) it will be deleted at runtime.
Thank you so much for your help !!
Create some data files with few MB, the way errors happen and send me.
Send all files along with the source code that I will analyze.

This only happens when recompiling, not when running Setup.exe.
Inno setup natively excludes all Setup- * bin and Setup.bin files when setup.exe is compiled.
If you have already created the data files named Setup - *. Bin, move them to another folder before recompiling setup.exe.

The executable "COMPRESSOR_GUI (Light).exe" that is inside the source code folder must be configured before compiling setup.exe
The methods that the conversion will support must be defined.
Like the example in the image.
Configure the tool and close it to later compile setup.exe
https://i.imgur.com/dwhDnon.png

Emorian
27-05-2020, 14:55
All right, thank you, I'll send you what you asked for.

In turn ..

I really don't understand that anymore.
There are two files:
Data1.bin
and
Data2.bin

It unpacks the first, the second as if it is not there, and the installer finishes running without error
it is in the Setup.ini file:

ArcFile1=Data1.bin;DestDir:{app};Type:ARC;Disk:1;S ize:444.388.900;
ArcFile1=Data2.bin;DestDir:{app};Type:ARC;Disk:2;S ize:284.987.682;(it didn't go without specifying a size!) Using UltraArc: MSC + SREP + LZMA


I'm done.....
i don't use virus protection and no defender either!

Emorian
27-05-2020, 19:29
Cesar82 (https://fileforums.com/member.php?u=178707)
Private message sent, check your Inbox!

Cesar82
28-05-2020, 06:41
All right, thank you, I'll send you what you asked for.

In turn ..

I really don't understand that anymore.
There are two files:
Data1.bin
and
Data2.bin

It unpacks the first, the second as if it is not there, and the installer finishes running without error
it is in the Setup.ini file:

ArcFile1=Data1.bin;DestDir:{app};Type:ARC;Disk:1;S ize:444.388.900;
ArcFile1=Data2.bin;DestDir:{app};Type:ARC;Disk:2;S ize:284.987.682;(it didn't go without specifying a size!) Using UltraArc: MSC + SREP + LZMA


I'm done.....
i don't use virus protection and no defender either!

ArcFile1=Data1.bin;DestDir:{app};Type:ARC;Disk:1;S ize:444.388.900;
ArcFile2=Data2.bin;DestDir:{app};Type:ARC;Disk:2;S ize:284.987.682;

Addeed hotfix in previou post (current in post #17)

Emorian
28-05-2020, 16:19
This runtime error is because you have not increased the number of ArcFile on the last line.
If you specify size, you must also inform the Size of the joined file.
ArcFile1=Data-1a.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:1;Size:208.666.624;Flags: splitfile;
ArcFile2=Data-1b.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:2;Size:209.715.200;Flags: splitfile;
ArcFile3=Data-1c.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:3;Size:209.715.200;Flags: splitfile;
ArcFile4=Data-1d.bin;DestDir:{app}\Data-1.bin;Type:ARC;Disk:4;Size:98.508.322;Flags: splitfile;
ArcFile5=Data-1.bin;DestDir:{app};Type:ARC;Disk:4;Size:726.605.3 46;Flags: joinedfile;That was my mistake. I forgot to delete this from the code.
As I compiled this part of the CIU beta5 code, I forgot to remove it. Just remove the 3 lines in script (Remove from "if" until after "else".).
if OptimalCheck.Checked then
SetIniString('External compressor:mpz,mpzapi', 'unpackcmd', ' pmt d {compressor} -t100p - - <stdin> <stdout>', ExpandConstant('{tmp}\Arc.ini'))
elseHere is a hotfix for source code 1.0.0.2
Replace the script in the source code 1.0.0.2 (Delete the previous script).



Works great with the new script, thank you very much !!!!! :):):)

BLACKFIRE69
14-06-2020, 01:17
is coming Light Installer new update? :D

Cesar82
14-06-2020, 08:27
is coming Light Installer new update? :D
I was waiting for some changes that Kaktor and I are making for CIU to later use similar functionality in the Light installer.
I'll see if I can post an update as soon as possible.
If you want I can send you the src that still needs some changes.

parnexcodes
20-06-2020, 21:30
https://i.imgur.com/VlGcW8U.png
What could be the issue ? i used srep and lolz while compressing it using ultra arc . I copied record.ini and data1.bin . Selected those methods in compressor.exe too.

Masquerade
21-06-2020, 00:34
Hey parnex, you sure you don't have any active anti malware blocking the install? That would make sense eith the other error you were having.

parnexcodes
21-06-2020, 01:59
Hey parnex, you sure you don't have any active anti malware blocking the install? That would make sense eith the other error you were having.
I dont use any anti virus , i used the sfx from ultra arc and its working fine . I'll try the setup on some other pc , maybe its from my side.

Cesar82
21-06-2020, 05:45
Updated Light Installer to v1.0.0.3.

parnexcodes
23-06-2020, 19:42
Thank you for updating

parnexcodes
29-06-2020, 17:59
Sorry
Edit : error was from my side.

pincoball
03-07-2020, 02:43
Found this bug when selecting the installation folder

https://i.imgur.com/EnB01ln.jpg

Trying to comment this line of code seems to fix since I think it uses the default dialog from Windows API
Can I ask you what the function ShowSFForm() is used for? Since it's not present in LI 1.0.0.2 and seems to work normally

procedure InitializeWizard();
begin
//WizardForm.DirBrowseButton.OnClick := @ShowSFForm;
...

Edit: if it is something related to desktop resolution, I tell you that I have 1920x1080 + 125% scaling
Edit 2: Tried to change the scaling factor and the problem does not occour, it seems to be related to that

Cesar82
03-07-2020, 06:53
@pincoball
I haven't tested using a scale other than 100%.
The custom form is to correct the positioning of the buttons when using skins cjstyles that bugs the form of the API.
You can comment out this line except when using certain cjstyles styles.

I attached the HF script with the bug fixed.

lolaya
21-07-2020, 12:51
@cesar82 Private message sent, check your Inbox!

Cesar82
17-10-2020, 21:06
Updated to version 1.0.0.4.

@Moderators, if possible change the title to:
Light Installer Script (LIS) - Compatible with UltraArc/DiskSpan

Grumpy
17-10-2020, 22:14
@Moderators, 'if possible' change the title to:
Light Installer Script (LIS) - Compatible with UltraArc/DiskSpan

Anything is possible ;)

Cesar82
22-10-2020, 19:11
Updated "Light Installer Script" to version 1.0.0.5.

y_thelastknight
08-11-2020, 01:39
i used this method and used Light Installer v1.0.0.5 script, still got error.
what mistake did i made.

KaktoR
08-11-2020, 07:59
Did you include srep + lolz inside installer? Use Compressor_GUI.exe, then compile the script.

y_thelastknight
08-11-2020, 09:15
Did you include srep + lolz inside installer? Use Compressor_GUI.exe, then compile the script.

i did that

Cesar82
08-11-2020, 19:40
i used this method and used Light Installer v1.0.0.5 script, still got error.
what mistake did i made.
It's working normally here.
https://i.imgur.com/ZnZGsWg.png
Remembering that it is necessary to use UltraArc/DiskSpan from the folder that is the source code.
Compressions created with a previous version of the compressors are not supported.

Cesar82
08-11-2020, 19:56
Updated "Light Installer Script" to version 1.0.0.6 (Based on CIU version 3.0.0.1.b7.u3).

y_thelastknight
09-11-2020, 00:57
It's working normally here.
Remembering that it is necessary to use UltraArc/DiskSpan from the folder that is the source code.
Compressions created with a previous version of the compressors are not supported.

I did everything correctly. I compressed Darksiders 2 and got 1.6gb from 5.4gb. that is first game I tried to compress and it failed. just now I compressed black ops and it installed correctly. I'm going to compress Race on game. will tell you the result.

also with your permission, can i implement this method of UltraARC to my project?

Cesar82
09-11-2020, 01:49
I did everything correctly. I compressed Darksiders 2 and got 1.6gb from 5.4gb. that is first game I tried to compress and it failed. just now I compressed black ops and it installed correctly. I'm going to compress Race on game. will tell you the result.

also with your permission, can i implement this method of UltraARC to my project?

For my part, yes.
UltraArc is developed by Razor12911 (https://www.fileforums.com/member.php?u=196265) and the credits are his (But someone keeps editing it, as this last version has removed certain features that I thought should be kept).
Only the script code (including ISPP code for the compressors included) that I created.
You may still have small parts of the original code Yener90 (https://fileforums.com/member.php?u=122513) (CIU) and FreeArc example (Razor12911 (https://www.fileforums.com/member.php?u=196265)) in the Light Installer Script.
So even the script code is not entirely mine.
I just fully developed "COMPRESSOR_GUI.exe" and redid almost the entire "DiskSpan.bat" file.
For my part, you can use it, without problems, but I would recommend at least commenting some reference to the developers of the included software, such as UltraArc....

y_thelastknight
09-11-2020, 02:33
I would recommend at least commenting some reference to the developers of the included software, such as UltraArc....

as you can see my other project, I always mention them. you can see them.

Rabbit67
11-11-2020, 22:29
Hi,

I have compress the archives with SPREP and LZMA, with UltraARC that comes with the Light Installer but I always get this error when trying to run:

ISDone.dll
And error occurred while decompressing: Archiver header is corrupt!
Unharc.dll returned an error code: -14
ERROR: this is not FreeArc archive or this archie is corrupt

What i am doing wrong?

Cesar82
12-11-2020, 04:50
Hi,

I have compress the archives with SPREP and LZMA, with UltraARC that comes with the Light Installer but I always get this error when trying to run:

ISDone.dll
And error occurred while decompressing: Archiver header is corrupt!
Unharc.dll returned an error code: -14
ERROR: this is not FreeArc archive or this archie is corrupt

What i am doing wrong?

It seems to work normally here (using UltraArc method SREP+LZMA).
See on VIDEO (https://mega.nz/file/1FQFkaDI#exrTf9bMEgxwrRPc8XqTLYJJmK3ywe5oTqyRgjGya _c) if that's how you used it.
It is necessary to activate SREP in COMPRESSOR_GUI before compiling Setup.exe.

Rabbit67
12-11-2020, 06:41
Ah, thx, i did not know that the record.ini should be in Light Installer folder. But it makes sense now. Btw great job on this :)

Cesar82
24-12-2020, 13:56
Added new Light Installer Script 1.0.0.7.
P.S: Now LIS is compatibility with DiskSpan_GUI tool.

bolek932
03-02-2021, 15:04
I have a problem. I want to pack sims4 ... standard: srep + xtool + lzma2 or 4x4 ... whatever ... but for each reserve it stands at 1.2%. I kept all night, nothing moved, disckspan "goes to sleep".

I have compressed a lot of games this way, with different methods and never had this problem.
Do you know any solution?

Cesar82
03-02-2021, 15:09
I have a problem. I want to pack sims4 ... standard: srep + xtool + lzma2 or 4x4 ... whatever ... but for each reserve it stands at 1.2%. I kept all night, nothing moved, disckspan "goes to sleep".

I have compressed a lot of games this way, with different methods and never had this problem.
Do you know any solution?

Are you using DiskSpan_GUI that comes with LIS 1.0.0.7?

bolek932
03-02-2021, 15:13
yes, last diskspan_gui from you

Cesar82
03-02-2021, 15:24
yes, last diskspan_gui from you

The version DiskSpan_GUI that is with Light Instaleler 1.0.0.7 is a little old.
You can download the latest DiskSpan_GUI together with the CIU source code HERE (https://www.fileforums.com/showpost.php?p=490158&postcount=736).
Download the CIU source code and extract the COMPRESSOR folder and place your setup.exe and setup.ico (created by Light Installer) in the "COMPRESSOR\Setup_Files" folder.

If it is another version you were using, test it with the current version informed, and let me know if it worked.

bolek932
03-02-2021, 15:48
the same problem. diskspan_giu in CIU folder freezes at the same stage: 1.2%

I copied setup.exe and ico form light installer before

Cesar82
03-02-2021, 15:56
What method are you using?

bolek932
03-02-2021, 16:01
xzlib+srep_new+4x4:b128mb:lzma:ultra:128m:bt4:fb27 3:lc8:mc1000000

srep xtool + lzma 4x4

always this same

I packed other games with this method without any problems

Cesar82
03-02-2021, 16:21
xzlib+srep_new+4x4:b128mb:lzma:ultra:128m:bt4:fb27 3:lc8:mc1000000

srep xtool + lzma 4x4

always this same

I packed other games with this method without any problems

What game are you trying to compress?

I did a test here with a file folder is the method that you informed me is compressing and decompressing normally.
Perhaps some file, or file extension contained in the folder you are compressing is stalling the conversion.
Non-ASCII characters such as cyrillic in file names can cause errors (perhaps even crashes).

You can test using the XTool 2020 ZLIb.
xtool_zlib+srep_new+4x4:b64mb:lzma:ultra:64m:bt4:f b273:lc8:mc1000000

bolek932
03-02-2021, 16:25
other games are compressing.
The sims 4 is not compressed.
I always use the same method.

bolek932
03-02-2021, 16:28
i used this tool with same method and it has passed 1.2%.
Do you understand any of this?

Cesar82
03-02-2021, 16:51
@bolek932, This other tool does not use CLS-DiskSpan.dll.
Try running DiskSpan_GUI in configuration mode and checking the option "UltraARC Mode" (for testing only) and click on the SAVE and then CLOSE buttons.
Try to compress and see if the progress will pass the percentage that previously froze.

bolek932
03-02-2021, 16:52
now I tried your tip.
i used xtool2020, 1.2% passed.

Why does xtool work with the tool I showed above and not with yours?

Cesar82
03-02-2021, 16:59
now I tried your tip.
i used xtool2020, 1.2% passed.

Why does xtool work with the tool I showed above and not with yours?

The UltraARC tool does not use the CLS-DiskSpan.dll library (maybe that's why).
If you do the above test and it works it is really that.
If so, I don't know why it is only in this game.

What version of The Sims 4 are you trying to compress? The last version?

bolek932
03-02-2021, 17:07
i marked:

28903

result:

28904


The UltraARC tool does not use the CLS-DiskSpan.dll library (maybe that's why).
If you do the above test and it works it is really that.
If so, I don't know why it is only in this game.

What version of The Sims 4 are you trying to compress? The last version?

last version from fitgirl

---------------------
your tools run with xtol2020 instead xtool, passed magic 1.2%
Are you wondering why?

KaktoR
04-02-2021, 01:56
Old Xtool get stuck with the new game version (I don't know why, maybe they changes files a bit), that's why you have to use new version with xtool_reflate codec.

I tested it just yesterday.

bolek932
04-02-2021, 08:07
I changed xtool on xtool2020 and it works. I have a repack.
------------
Lolz is a better method than lzma But slower?

KaktoR
04-02-2021, 08:09
In most cases yes.

bolek932
04-02-2021, 09:50
what is the best final compressor? Fast but strong. ?

KaktoR
04-02-2021, 10:04
In my tests it was always 4x4:lzma, but depends much in input data of course (same for lolz or any other compressor).

bolek932
04-02-2021, 11:04
In my tests it was always 4x4:lzma, but depends much in input data of course (same for lolz or any other compressor).

This is the final compressor method I used for the sims four?

KaktoR
04-02-2021, 14:35
Yes you can use 4x4:lzma. But you can also use lolz or some other.

Make a simple test with a sample file from that game (a file with about 500mb should do it).

First go with xtool+srep+4x4:lzma
Second go with xtool+srep+lolz

Both methods with the same file. Then look at ratio and speed and you can do a bit math more or less (extrapolation).

bolek932
04-02-2021, 16:53
Yes you can use 4x4:lzma. But you can also use lolz or some other.

Make a simple test with a sample file from that game (a file with about 500mb should do it).

First go with xtool+srep+4x4:lzma
Second go with xtool+srep+lolz

Both methods with the same file. Then look at ratio and speed and you can do a bit math more or less (extrapolation).

I did that for another game. but I assumed that it is not profitable. lolz is slow and the size wasn't much smaller. I prefer a 2gb larger repack but an hour faster.

hydefromt70s
06-02-2021, 11:47
First of all thank you Cesar82 for integrating this installer with DiskSpan_GUI!

But looks like there's a bug in installer. Installer freezes when trying to cancel installation. Used method xzlib+srep_new+4x4:b128mb:lzma:ultra:128m:bt4:fb27 3:lc8:mc1000000
Check the video I made.

https://mega.nz/file/vo0xlK5b#frpV_qMdgeanW1La0bLRmZaZixl7WQxmvyomU4yMC 1E

Cesar82
06-02-2021, 12:58
First of all thank you Cesar82 for integrating this installer with DiskSpan_GUI!

But looks like there's a bug in installer. Installer freezes when trying to cancel installation. Used method xzlib+srep_new+4x4:b128mb:lzma:ultra:128m:bt4:fb27 3:lc8:mc1000000
Check the video I made.

https://mega.nz/file/vo0xlK5b#frpV_qMdgeanW1La0bLRmZaZixl7WQxmvyomU4yMC 1E

Thanks for the info.
XTool is still running, so the installation does not cancel.
I'm going to run tests here and fix this.
I will soon share an updated version.

Cesar82
06-02-2021, 23:39
Updated Light Installer Script to v1.0.0.8
See the changelog for more details.

@mods, if possible, change the Light Installer Script thread title (Title that appears in "Conversion Tutorials") to the same title at the top of the thread.
Thanks!

Grumpy
07-02-2021, 03:45
@mods, if possible, change the Light Installer Script thread title (Title that appears in "Conversion Tutorials") to the same title at the top of the thread.
Thanks!

Just to be sure, you would like the Title to be:

Light Installer Script (LIS) | DiskSpan_GUI

Cesar82
07-02-2021, 07:37
Just to be sure, you would like the Title to be:

Light Installer Script (LIS) | DiskSpan_GUI
Yes. Also change the character "|" for "-".
Light Installer Script (LIS) - DiskSpan_GUI
Thanks!

Grumpy
08-02-2021, 06:10
if possible ...

As all you regulars have shown many times with what you all do ... anything is possible. ;)

Title Changed. :)

Stor31
11-02-2021, 07:18
how to modify LightInstallerLogoOrange.bmp (Light Installer) to another name ???
thx

Cesar82
11-02-2021, 17:12
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).
#define Theme "ORANGE"

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

#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}\LightIns tallerLogo.bmp'));
#if VER >= 0x06000000
Anchors := [akLeft, akBottom];
#endif
if '{#AppURL}' <> '' then begin
OnClick := @LogoOnClick;
Cursor := crHand;
end;
end;
#endif

#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
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
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
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
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).
#define Theme "ORANGE"

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

#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}\LightIns tallerLogo.bmp'));
#if VER >= 0x06000000
Anchors := [akLeft, akBottom];
#endif
if '{#AppURL}' <> '' then begin
OnClick := @LogoOnClick;
Cursor := crHand;
end;
end;
#endif

#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/02/13/210213014601524528.jpg

mausschieber
13-02-2021, 05:46
I changed everything
but the result
https://nsa40.casimages.com/img/2021/02/13/210213014601524528.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
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
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.
#define Theme ""

bolek932
13-02-2021, 13:46
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
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
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
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/6c3cbab891a37d7624a1b490d05f05e991083fd02ab4af3983 23550eec33ef51/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
even responds to standard setup exe
InstallerScript [2021.02.07]_original.iss

here is my script (setup.exe)
https://www.virustotal.com/gui/file/6c3cbab891a37d7624a1b490d05f05e991083fd02ab4af3983 23550eec33ef51/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
Hi, I wanted to ask a few noob questions.

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.

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

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
Hi, I wanted to ask a few noob questions.

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.

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

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:

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
Cesar82 Dear
Please add the archive test option (arc t data.bin) after compression and create MD5 hash (https://www.exactfile.com/exf/exf-command-line-usage/).
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
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
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
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
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.

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?

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
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?p=482064&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
Hi, thanks for the response, the link to the plugin is here:
https://fileforums.com/showpost.php?p=482064&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
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
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
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
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
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
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
see video

Try with attached script.
Inform if it works.

Gehrman
29-08-2021, 04:14
Thanks Cesar82

Another request:o

Please add Persian language in later versions
https://s18.picofile.com/file/8440040418/FA_LI.jpg
#ifdef Farsi
Farsi.ButtonPause=تعلیق کردن
Farsi.ButtonResume=ادامه یافتن
Farsi.Extracting=‫استخراج کردن... %1
Farsi.Merging=‫ادغام فایل %1 (%3%) به %2 (%4%)...
Farsi.ChangeDiskLabel=‫لطفاً دیسک %1 را با فایل %2 وارد کنید.%n فایل مورد نیاز را جستجو کنید؟
Farsi.ExtractingTempFiles=‫استخراج فایل های موقت. لطفا صبر کنید!
#endif

oo7
01-09-2021, 00:01
TPI(3 page Installer) Theme

Instruction:
Just extract the archive contents to Light Installer Script 1.0.0.9 Folder and compile TPI THEME [2021.06.30].iss

Credits:
LIS By Cesar82

alley_u2
28-09-2021, 05:11
Hi Cesar82 and thanks for providing such a simple and easy to use installer that suits my style.

I am facing just one issue. When I change the logo using the .psd file provided (I just changed the name from "light installer" to "allen installer" using photoshop) and the save the file to LightInstallerLogoOrange.bmp, the setup file still displays the original .bmp file. Please note that I am using Charcoal Dark Slate.vsf style file

Setup File:
https://i.ibb.co/BTLYgYJ/Screenshot-2021-09-28-173413.png (https://imgbb.com/)

BMP File.
https://i.ibb.co/5vVnMd6/Light-Installer-Logo-Orange.png (https://imgbb.com/)

Cesar82
28-09-2021, 08:53
Hi Cesar82 and thanks for providing such a simple and easy to use installer that suits my style.

I am facing just one issue. When I change the logo using the .psd file provided (I just changed the name from "light installer" to "allen installer" using photoshop) and the save the file to LightInstallerLogoOrange.bmp, the setup file still displays the original .bmp file. Please note that I am using Charcoal Dark Slate.vsf style file
You must also recreate the alpha channel layer for the new text.
Attached is a video tutorial on how to change the logo text.
Also includes logo image and psd.

P.S: As I changed the name of the theme to allen then it would be necessary to put the images WizardSmallImageAllen.bmp and WizardImageAllen.bmp so that the bitmaps image stayed with the default bitmap images from Inno Setup during the video.

alley_u2
28-09-2021, 10:18
Thanks for the help mate ! Genius

I did what you asked and it worked. Thanks again !

alley_u2
29-09-2021, 02:20
I must be doing something wrong. I am getting the following error. Sorry for the trouble. I have been out of this game for long.

https://i.ibb.co/s9MwpYm/Screenshot-2021-09-29-144637.png (https://imgbb.com/)

I am using the following settings for compression.

GENERAL INFO:
- Clear output folder before conversion: YES
- Create ISO images after finish: NO
- Shutdown system after finish: NO
- Test files after compression: NO

OUTPUT INFO:
- Selected media type: UNLIMITED
- Output directory: Conversion_Output

GAME DIRECTORY:
- Directory to Unknown 1: C:\Users\HOME\Desktop\jperf-2.0.0

SELECTED METHOD:
- Method ARC/DS to Data1a-01.bin file: FA-STORE

Cesar82
29-09-2021, 08:15
I must be doing something wrong. I am getting the following error. Sorry for the trouble. I have been out of this game for long.


Are you using the latest versions of LIS (1.0.0.9) and DSG (2.0.0.2)?
You must replace U1 in the Light Installer source.

alley_u2
29-09-2021, 08:21
I am using the latest versions and I have also replaced the U1 file in the folder

Cesar82
29-09-2021, 08:41
Added Light Installer Script 1.0.0.9.u2 in first post.
Download u2 file, extract replace in your LIS source code. :)

alley_u2
29-09-2021, 09:35
I will try this tomorrow and let you know. Thanks in advance.

alley_u2
29-09-2021, 22:08
Added Light Installer Script 1.0.0.9.u2 in first post.
Download u2 file, extract replace in your LIS source code. :)

The new update (U2) works flawlessly thanks !

Cesar82
24-10-2021, 01:38
@sakhjack, Inno Setup does not allow skins to be included
The skin file is loaded when calling the initialize setup function, however the language selection box is displayed before calling this function, not allowing to display the form already with skin.

If you find it interesting I can create a custom form for language selection that will be displayed when calling initialize setup (as is done in ASIS).

Cesar82
25-10-2021, 11:15
sure if that wouldn't be too bothersome to integrate, but what about windows during the installation (the bottom half is white except buttons)?
The white part is from the skin itself.
Use another skin that won't have this white part.

Added Light Installer Script 1.0.0.9 update 4 in the first post (replace files).
Changes:
- Added custom language dialog with skin support.
- Updated support for DiskSpan_GUI 2.0.0.4 and newer.

giruthanders
30-10-2021, 22:07
Sorry if this is a stupid question but how do I fix this error when trying to launch the game in the installer?

This happens when I check "Launch [game]" after the install is finished. The desktop shortcut works though

"Internal error: CallSpawnServer: Unexpected response: $0"

Cesar82
31-10-2021, 06:50
Sorry if this is a stupid question but how do I fix this error when trying to launch the game in the installer?

This happens when I check "Launch [game]" after the install is finished. The desktop shortcut works though

"Internal error: CallSpawnServer: Unexpected response: $0"
See if the line given below does not contain ";" before the line, or if you correctly set the path to the game's executable relative to the {app} installation folder.
#define GameExec "bin\game.exe"

Cesar82
31-10-2021, 14:15
Language selection has skin, but now if some are not defined there is blank space in it's place
https://i.imgur.com/2El2qc1.png
Sorry about that.

In the [Languages] section of the script, simply enter the text highlighted in red color below (on script line 294 here).


#sub CreateLangList
#if defined(LangSection) && (FileLine != "") && (Pos(";", FileLine) != 1) && (Pos("[", FileLine) != 1)
#expr LangList[Count] = FileLine
#expr Count++
#elif Pos(LowerCase("[Languages]"), LowerCase(FileLine)) > 0
#define public LangSection
#endif
#endsub

giruthanders
01-11-2021, 04:10
See if the line given below does not contain ";" before the line, or if you correctly set the path to the game's executable relative to the {app} installation folder.
#define GameExec "bin\game.exe"

Thank you for responding! Yes, it does not contain a ; before the line but still didn't work. In the end I found that adding "runascurrentuser" to the flags made it work. Hope this helps anyone who had the same problem I did.

Cesar82
01-11-2021, 07:52
Added Light Installer Script 1.0.1.0 in first post. :)
- Added support for Persian (Farsi) language to Light Installer Script (Thanks to Gehrman for collaboration).
- Added support for skinsharp skins (SkinH.dll library by Shegorat) to Light Installer Script.
>> The library of the skinsharp does not support special characters like cyrillic characters.
>> So languages like Russian and Japanese and Persian should get broken using skinsharp.
- Fixed some minor bugs.
PS: SkinSharp skins only work if compiling with Inno Setup 6.0 or higher.

giruthanders
01-11-2021, 09:31
Hello, I would like to ask how I could make the setup remember the folder I install my games in, like FitGirl's?

The default is C:\Program Files, but for example I change it to D:\Games. I want the installer to remember so that the next game I install, it will default to that directory instead of going back to C.

Cesar82
02-11-2021, 09:12
Hello, I would like to ask how I could make the setup remember the folder I install my games in, like FitGirl's?

The default is C:\Program Files, but for example I change it to D:\Games. I want the installer to remember so that the next game I install, it will default to that directory instead of going back to C.

FitGirl installers look for the next drive other than the drive the system is installed on and always install the game in a "Games" subfolder.
It doesn't memorize your last choice, it always installs in a "Games" folder and on the same drive.
Even if you choose "E:\My Games", assuming the system is installed on the "C:" drive in the next install it will suggest "D:\Games" as in the first install (Correct me if I'm wrong).

If you want similar behavior change the line in the [Setup] section of the script.
from:
DefaultDirName={#DefaultDir}\{#GameName}

to:
DefaultDirName={code:NoSD}\Games\{#GameName}


Then paste this code below into the [ Code] section of the script.
const
DRIVE_FIXED = 3;

function GetLogicalDriveStrings(nLenDrives: DWORD; lpDrives: String): DWORD;
external '[email protected] stdcall delayload';

function GetDriveType(lpDisk: String): DWORD;
external '[email protected] stdcall delayload';

function NoSD(Param: String): String;
var
Drive: String;
Buffer: String;
begin
SetLength(Buffer, 255);
SetLength(Buffer, GetLogicalDriveStrings(254, Buffer));
Result := ExpandConstant('{sd}');
while Pos(#0, Buffer) > 0 do
begin
Drive := Copy(Buffer, 1, Pos(#0, Buffer) - 1);
if (GetDriveType(Drive) = DRIVE_FIXED) and (CompareText(Drive, ExpandConstant('{sd}\')) <> 0) then
begin
Result := RemoveBackslash(Drive);
Break;
end;
Delete(Buffer, 1, Pos(#0, Buffer));
end;
end;


I hope that's what you need.

Cesar82
23-05-2022, 14:47
is it possible to create master switch to disable all functions relevant to Uninstaller? (similar to #ifdef AppURL)
I could comment it out manually, but I might not get everything
I don't understand what exactly you need?
You mean a preprocessor parameter that disabling it disables the creation of uninstall files and uninstall registry entries?

also people report installer trying to access Internet at the end even with AppURL not defined
It makes no sense that the installer is trying to access the internet.
The AppPublisherURL= AppSupportURL= AppUpdatesURL= keys are descriptive used only in shortcut of the control panel.
READ: AppPublisherURL (https://jrsoftware.org/ishelp/index.php?topic=setup_apppublisherurl), AppSupportURL (https://jrsoftware.org/ishelp/index.php?topic=setup_apppublisherurl), AppUpdatesURL (https://jrsoftware.org/ishelp/index.php?topic=setup_apppublisherurl).

Cesar82
23-05-2022, 21:42
yes, I'd like script to not execute anything related to Uninstalling if a variable is not defined
---------
my own system never caught installer trying to access network, so I have no idea either
Attached script 1.0.1.0 (U2):
- Added ISPP directive (#define Uninstallable), if you disable this directive line:
>> It won't create the uninstall files.
>> Will not create uninstall registry keys.
>> It will not create the shortcuts in the start menu.

Cesar82
29-05-2022, 13:41
.bin and .style (unnamed) files created in folder System32 after installation
I assume it's from CurStepChanged (ssPostInstall section)
----
Other minor issues:

LogoOnClick is missing #ifdef AppURL condition
ShowWindow has a typo in argument

function ShowWindow(hWnd: v; ...)
---
I guess it's supposed to be
---
function ShowWindow(hWnd: HWND; ...)

Thanks for reporting the bugs.
If you find other bugs let me know.
I have attached the script with the reported bugs fixed.

Cesar82
12-06-2022, 22:54
LIU Preview (Starting project)
If you have any suggestions, they are welcome.

macut18
15-06-2022, 17:33
LIU Preview (Starting project)
If you have any suggestions, they are welcome.

It's awesome. I'm waiting. :)

fabrieunko
15-06-2022, 22:46
LIU Preview (Starting project)
If you have any suggestions, they are welcome.

gorgeous.

-tara
19-06-2022, 09:36
After getting the diskspan output of 2 files (data1.bin,data-optional.bin) and adding both to the records.ini like so:
[Record1]
Type=FreeArc_Original
Source={src}\data1.bin
Output={app}\
Disk=1
Size=1.924.677.867 bytes

[Record2]
Type=FreeArc_Original
Source={src}\data-optional.bin
Output={app}\
Disk=2
Size=78.614.874 bytes

i merge the records.ini into the setup.dll and include the setup.dll in innosetup, although im not sure how to "tag" the optional file as such, therefore when i try installing without the optional file the setup asks for it.
How do i make the installer skip the optional file if its not there?
Thanks in advance. :)

Cesar82
20-06-2022, 02:54
After getting the diskspan output of 2 files (data1.bin,data-optional.bin) and adding both to the records.ini like so:
[Record1]
Type=FreeArc_Original
Source={src}\data1.bin
Output={app}\
Disk=1
Size=1.924.677.867 bytes

[Record2]
Type=FreeArc_Original
Source={src}\data-optional.bin
Output={app}\
Disk=2
Size=78.614.874 bytes

i merge the records.ini into the setup.dll and include the setup.dll in innosetup, although im not sure how to "tag" the optional file as such, therefore when i try installing without the optional file the setup asks for it.
How do i make the installer skip the optional file if its not there?
Thanks in advance. :)
you can include the additional file as a task and leave it unchecked. but if the task is checked the installer will always ask for the file.

Gehrman
13-07-2022, 09:08
Hi Cesar82
Is it possible to add ISExec like the example below?

[Record1]
Type=ISExec
Source={tmp}\SHH_Patch_HI-VU.exe
Param=/Dir={app}
Disk=1
Task=1

Cesar82
13-07-2022, 11:34
Hi Cesar82
Is it possible to add ISExec like the example below?

[Record1]
Type=ISExec
Source={tmp}\SHH_Patch_HI-VU.exe
Param=/Dir={app}
Disk=1
Task=1

Using the records section I think it would be difficult as the DiskSpan GUI creates the file using the [record#] sections in consecutive order, used in many other installers.

Perhaps something unique to the Light Installer could be implemented in a different section like [Exec#] by manually adding it to the Records.ini itself.

Lord.Freddy
17-08-2022, 01:34
Hi Cesar82, Thank you for the script you made, but i have a problem when adding the skin(cjstyles) with INI code, the skin is not added, So i made some changes:

#if !defined(StyleFile)
#define StyleFile "NULL"
#else
#define StyleParam ""
#if Pos("|", StyleFile) > 0
#define StyleParam Trim(Copy(StyleFile, Pos("|", StyleFile + "|") + 1, Len(StyleFile)))
#expr StyleParam = StyleParam + ".ini"
#if (StyleParam != "") && (LowerCase(ExtractFileExt(StyleFile)) == "cjstyles")
#expr StyleParam = StyleParam + ".ini"
#endif
#define StyleFile Trim(Copy(StyleFile, 0, Pos("|", StyleFile) - 1))
#endif
#if (LowerCase(ExtractFileExt(StyleFile)) != "vsf") && (LowerCase(ExtractFileExt(StyleFile)) != "cjstyles") && (LowerCase(ExtractFileExt(StyleFile)) != "she")
#define StyleFile "NULL"
#endif
#endif

if you like, add these changes to your Script :)

Cesar82
06-09-2022, 18:50
Hi Cesar82, Thank you for the script you made, but i have a problem when adding the skin(cjstyles) with INI code, the skin is not added, So i made some changes:

#if !defined(StyleFile)
#define StyleFile "NULL"
#else
#define StyleParam ""
#if Pos("|", StyleFile) > 0
#define StyleParam Trim(Copy(StyleFile, Pos("|", StyleFile + "|") + 1, Len(StyleFile)))
#expr StyleParam = StyleParam + ".ini"
#if (StyleParam != "") && (LowerCase(ExtractFileExt(StyleFile)) == "cjstyles")
#expr StyleParam = StyleParam + ".ini"
#endif
#define StyleFile Trim(Copy(StyleFile, 0, Pos("|", StyleFile) - 1))
#endif
#if (LowerCase(ExtractFileExt(StyleFile)) != "vsf") && (LowerCase(ExtractFileExt(StyleFile)) != "cjstyles") && (LowerCase(ExtractFileExt(StyleFile)) != "she")
#define StyleFile "NULL"
#endif
#endif

if you like, add these changes to your Script :)

FIX:
#if !defined(StyleFile)
#define StyleFile "NULL"
#else
#define StyleParam ""
#if Pos("|", StyleFile) > 0
#define StyleParam Trim(Copy(StyleFile, Pos("|", StyleFile + "|") + 1, Len(StyleFile)))
#define StyleFile Trim(Copy(StyleFile, 0, Pos("|", StyleFile) - 1))
#if (StyleParam != "") && (LowerCase(ExtractFileExt(StyleFile)) == "cjstyles")
#expr StyleParam = StyleParam + ".ini"
#else
#define StyleParam ""
#endif
#endif
#if (LowerCase(ExtractFileExt(StyleFile)) != "vsf") && (LowerCase(ExtractFileExt(StyleFile)) != "cjstyles") && (LowerCase(ExtractFileExt(StyleFile)) != "she")
#define StyleFile "NULL"
#endif
#endif

Cesar82
15-09-2022, 21:43
I need help with translations of Light Installer Script messages to make it compatible with the new DiskSpan GUI...

I translated it in google translator, it must not have been correct, so if it is wrong for your language, please share the translation.
Translations can be made from the English language below

Supported languages are: "Dutch", "English", "Farsi", "French", "German", "Hungarian", "Italian", "Japanese", "Polish", "Portuguese", "Russian", "Spanish".
#ifdef Dutch
dutch.HashPageTitle=Integriteitscontrole
dutch.HashPageDescription=De integriteit van geďnstalleerde bestanden controleren?
dutch.HashStatusLabel=Verwerkt %1 van %2 bestanden (%3%)
dutch.HashResultLabel=Ok: %1 Ontbreekt: %2 Slecht: %3
dutch.HashWaitingLabel=Het installatieprogramma is klaar om de integriteitscontrole van de bestanden uit te voeren
dutch.HashOk=Hasj_OK
dutch.HashNotFound=Bestand niet gevonden!
dutch.HashAbort=Controle van bestanden is onderbroken!
dutch.HashBadParam=Ongeldig hash-algoritme!
dutch.HashBadHash=Bestandshash komt niet overeen!
dutch.HashGeneralError=Algemene fout!
dutch.HashPause=Pa&uze
dutch.HashResume=H&ervat
dutch.HashVerify=&Verifiëren
dutch.HashStop=S&toppen
dutch.HashCancel=&Annuleren
dutch.HashNext=&Volgende
dutch.HashLog=L&ogboek
dutch.HashInfo=In&formatie
dutch.HashFileHash=BestandHash
dutch.HashCalcHash=CalcHash
dutch.HashHashStatus=HashStatus
dutch.HashNoFile=GeenBestand
dutch.HashNotMatched=Niet-overeenkomend
dutch.HashMatched=Overeenkomend
dutch.HashNull=Null
#endif
#ifdef English
english.HashPageTitle=Integrity Check
english.HashPageDescription=Check the integrity of installed files?
english.HashStatusLabel=Verifyed %1 of %2 files (%3%)
english.HashResultLabel=Ok: %1 Missing: %2 Bad: %3
english.HashWaitingLabel=The installer is ready to do the files integrity check
english.HashOk=Hash_OK
english.HashNotFound=File not found!
english.HashAbort=Check of files has been interrupted!
english.HashBadParam=Invalid hash algorithm!
english.HashBadHash=File hash does not match!
english.HashGeneralError=General error!
english.HashPause=Pa&use
english.HashResume=R&esume
english.HashVerify=&Verify
english.HashStop=S&top
english.HashCancel=C&ancel
english.HashNext=&Next
english.HashLog=L&og
english.HashInfo=Inf&o
english.HashFileHash=FileHash
english.HashCalcHash=CalcHash
english.HashHashStatus=HashStatus
english.HashNoFile=NoFile
english.HashNotMatched=NotMatched
english.HashMatched=Matched
english.HashNull=Null
#endif
#ifdef Farsi
farsi.HashPageTitle=بررسی یکپارچگی
farsi.HashPageDescription=یکپارچگی فایل های نصب شده را بررسی کنید؟
farsi.HashStatusLabel=روند کار %1 از %2 (%3%)
farsi.HashResultLabel=سالم: %1 یافت نشد: %2 ناصحیح: %3
farsi.HashWaitingLabel=برنامه آماده بررسی رمزگذاری هش فایل ها می باشد
farsi.HashOk=هش_سالم
farsi.HashNotFound=!فایل یافت نشد
farsi.HashAbort=!انجام پروسه بررسی هش فایل ها متوقف شد
farsi.HashBadParam=!الگوریتم هش نامعتبر است
farsi.HashBadHash=!هش فایل ها مطابقت ندارد
farsi.HashGeneralError=!خطای کلی
farsi.HashPause=&توقف موقت
farsi.HashResume=&ادامه دادن
farsi.HashVerify=&بازبینی
farsi.HashStop=&توقف
farsi.HashCancel=&انصراف
farsi.HashNext=&صفحه بعد
farsi.HashLog=&گزارش وضعیت
farsi.HashInfo=&اطلاعات
farsi.HashFileHash=هش فایل
farsi.HashCalcHash=کالک هش
farsi.HashHashStatus=وضعیت هش
farsi.HashNoFile=هیچ فایل
farsi.HashNotMatched=مطابقت ندارد
farsi.HashMatched=تطبیق
farsi.HashNull=خالی
#endif
#ifdef French
french.HashPageTitle=Vérification de l'Intégrité
french.HashPageDescription=Vérifier l'intégrité des fichiers installés?
french.HashStatusLabel=Analyse %1 des %2 fichiers (%3%)
french.HashResultLabel=Ok: %1 Manquant: %2 Mauvais: %3
french.HashWaitingLabel=Le programme d'installation est pręt ŕ effectuer la vérification du hachage des fichiers
french.HashOk=Hachage_OK
french.HashNotFound=Fichier non trouvé!
french.HashAbort=La vérification des fichiers a été interrompue!
french.HashBadParam=Algorithme de hachage non valide!
french.HashBadHash=Le hachage du fichier ne correspond pas!
french.HashGeneralError=Erreur générale!
french.HashPause=&Suspendre
french.HashResume=Résu&mé
french.HashVerify=&Vérifie
french.HashStop=S&top
french.HashCancel=&Annuler
french.HashNext=&Suivant
french.HashLog=&Journal
french.HashInfo=In&fo
french.HashFileHash=FichierHachage
french.HashCalcHash=CalculerHachage
french.HashHashStatus=HachageÉtat
french.HashNoFile=PasFichier
french.HashNotMatched=PasAdapté
french.HashMatched=Assorti
french.HashNull=Nul
#endif
#ifdef German
german.HashPageTitle=Integritätsprüfung
german.HashPageDescription=Überprüfen Sie die Integrität der installierten dateien?
german.HashStatusLabel=Geprüft %1 von %2 dateien (%3%)
german.HashResultLabel=Ok: %1 Fehlend: %2 Fehlerhaft: %3
german.HashWaitingLabel=Das Setup ist nun bereit die dateien zu überprüfen
german.HashOk=Hash_OK
german.HashNotFound=Datei nicht gefunden!
german.HashAbort=Dateiüberprüfung wurde unterbrochen!
german.HashBadParam=Ungültiger Hash-Algorithmus!
german.HashBadHash=Datei-Hash stimmt nicht überein!
german.HashGeneralError=Allgemeiner Fehler!
german.HashPause=Pa&use
german.HashResume=Forts&etzen
german.HashVerify=&Prüfen
german.HashStop=&Abbrechen
german.HashCancel=A&bbrechen
german.HashNext=&Weiter
german.HashLog=L&og
german.HashInfo=Inf&o
german.HashFileHash=Datei-Hash
german.HashCalcHash=CalcHash
german.HashHashStatus=HashStatus
german.HashNoFile=KeineDatei
german.HashNotMatched=NichtAbgeglichen
german.HashMatched=Passende
german.HashNull=Null
#endif
#ifdef Hungarian
hungarian.HashPageTitle=Integritás Ellenőrzése
hungarian.HashPageDescription=Ellenőrizze a telepített fájlok integritását?
hungarian.HashStatusLabel=Megerősítve %1/%2 fájl (% 3%)
hungarian.HashResultLabel=Rendben: %1 Hiányzik: %2 Hibás: %3
hungarian.HashWaitingLabel=A telepítő készen áll a fájlok integritásának ellenőrzésére
hungarian.HashOk=Hash_OK
hungarian.HashNotFound=Fájl nem található!
hungarian.HashAbort=A fájlok ellenőrzése megszakadt!
hungarian.HashBadParam=Érvénytelen hash algoritmus!
hungarian.HashBadHash=A fájl hash nem egyezik!
hungarian.HashGeneralError=Általános hiba!
hungarian.HashPause=&Szünet
hungarian.HashResume=Öné&letrajz
hungarian.HashVerify=&Ellenőrizni
hungarian.HashStop=&Állj Meg
hungarian.HashCancel=&Megszüntetie
hungarian.HashNext=&Tovább
hungarian.HashLog=L&og
hungarian.HashInfo=Inf&o
hungarian.HashFileHash=FájlHash
hungarian.HashCalcHash=CalcHash
hungarian.HashHashStatus=HashStatus
hungarian.HashNoFile=NincsFájl
hungarian.HashNotMatched=NemEgyező
hungarian.HashMatched=Egyező
hungarian.HashNull=Nulla
#endif
#ifdef Italian
italian.HashPageTitle=Controllo di Integritŕ
italian.HashPageDescription=Verificare l'integritŕ dei file installati?
italian.HashStatusLabel=Verificato %1 di %2 file (%3%)
italian.HashResultLabel=Ok: %1 Mancante: %2 Non valido: %3
italian.HashWaitingLabel=Il programma di installazione č pronto per eseguire il controllo
italian.HashOk=Hash_OK
italian.HashNotFound=File non trovato!
italian.HashAbort=Il controllo dei file č stato interrotto!
italian.HashBadParam=Algoritmo hash non valido!
italian.HashBadHash=L'hash del file non corrisponde!
italian.HashGeneralError=Errore generale!
italian.HashPause=Pa&usa
italian.HashResume=R&iprendere
italian.HashVerify=&Verificare
italian.HashStop=&Fermare
italian.HashCancel=&Annulla
italian.HashNext=&Prossimo
italian.HashLog=L&og
italian.HashInfo=Inf&o
italian.HashFileHash=FileHash
italian.HashCalcHash=CalcHash
italian.HashHashStatus=HashStato
italian.HashNoFile=NessunFile
italian.HashNotMatched=NonAbbinato
italian.HashMatched=Abbinato
italian.HashNull=Nullo
#endif
#ifdef Japanese
japanese.HashPageTitle=完全性チェック
japanese.HashPageDescription=インストールされたファイルの整合性をチェッ クしますか?
japanese.HashStatusLabel=確認済み %2 ファイル中 %1 (%3%)
japanese.HashResultLabel=正常: %1 欠落: %2 不良: %3
japanese.HashWaitingLabel=インストーラーはファイルの整合性チェックを行う準 備ができています
japanese.HashOk=ハッシュ_OK
japanese.HashNotFound=ファイルが見つかりません!
japanese.HashAbort=ファイルのチェックが中断されました!
japanese.HashBadParam=無効なハッシュ アルゴリズムです!
japanese.HashBadHash=ファイル ハッシュが一致しません。
japanese.HashGeneralError=一般エラー!
japanese.HashPause=一時停止 (&U)
japanese.HashResume=履歴書 (&E)
japanese.HashVerify=確認 (&V)
japanese.HashStop=止まる (&T)
japanese.HashCancel=キャンセル(&A)
japanese.HashNext=次へ(&N)
japanese.HashLog=ログ (&O)
japanese.HashInfo=情報 (&O)
japanese.HashFileHash=ファイルハッシュ
japanese.HashCalcHash=計算されたハッシュ
japanese.HashHashStatus=ハッシュステータス
japanese.HashNoFile=ファイルがない
japanese.HashNotMatched=一致しません
japanese.HashMatched=一致した
japanese.HashNull=ヌル
#endif
#ifdef Polish
polish.HashPageTitle=Sprawdzanie Integralności
polish.HashPageDescription=Sprawdź integralność zainstalowanych plików?
polish.HashStatusLabel=Zweryfikowano %1 z %2 plików (%3%)
polish.HashResultLabel=Ok: %1 Brakuje: %2 ŹUszkodzonele: %3
polish.HashWaitingLabel=Instalator jest gotowy do sprawdzenia integralności plików
polish.HashOk=Hash_OK
polish.HashNotFound=Nie znaleziono pliku!
polish.HashAbort=Sprawdzanie plików zostało przerwane!
polish.HashBadParam=Nieprawidłowy algorytm hash!
polish.HashBadHash=Niezgodny hash plików!
polish.HashGeneralError=Błąd ogólny!
polish.HashPause=Wstr&zymaj
polish.HashResume=W&znów
polish.HashVerify=Zw&eryfikuj
polish.HashStop=Zat&rzymaj
polish.HashCancel=&Anuluj
polish.HashNext=&Dalej
polish.HashLog=L&og
polish.HashInfo=Inf&o
polish.HashFileHash=PlikuHash
polish.HashCalcHash=ObliczonyHash
polish.HashHashStatus=HashStatus
polish.HashNoFile=BrakPliku
polish.HashNotMatched=Niedopasowane
polish.HashMatched=Dopasowane
polish.HashNull=Null
#endif
#ifdef Portuguese
portuguese.HashPageTitle=Verificaçăo de Integridade
portuguese.HashPageDescription=Verificar a integridade dos arquivos instalados?
portuguese.HashStatusLabel=Verificados %1 de %2 arquivos (%3%)
portuguese.HashResultLabel=Ok: %1 Ausentes: %2 Falhas: %3
portuguese.HashWaitingLabel=O instalador está pronto para verificar o integridade dos arquivos
portuguese.HashOk=Hash_OK
portuguese.HashNotFound=Arquivo năo encontrado!
portuguese.HashAbort=A verificaçăo de hash dos arquivos foi interrompida!
portuguese.HashBadParam=Algoritmo de hash inválido!
portuguese.HashBadHash=O hash do arquivo năo corresponde!
portuguese.HashGeneralError=Erro geral!
portuguese.HashPause=Pa&usar
portuguese.HashResume=Contin&uar
portuguese.HashVerify=&Verificar
portuguese.HashStop=&Parar
portuguese.HashCancel=&Cancelar
portuguese.HashNext=&Avançar
portuguese.HashLog=L&og
portuguese.HashInfo=Inf&o
portuguese.HashFileHash=ArquivoHash
portuguese.HashCalcHash=CalculadoHash
portuguese.HashHashStatus=HashStatus
portuguese.HashNoFile=ArquivoAusente
portuguese.HashNotMatched=NăoCorresponde
portuguese.HashMatched=Corresponde
portuguese.HashNull=Nulo
#endif
#ifdef Russian
russian.HashPageTitle=Проверка Челостности
russian.HashPageDescription=Проверить целостность установленных файлов?
russian.HashStatusLabel=Выполнено %1 из %2 файлов (%3%)
russian.HashResultLabel=Ок: %1 Отсутствуют: %2 Испорченные: %3
russian.HashWaitingLabel=Установщик готов выполнить проверку целостности файлов
russian.HashOk=Хеш_Ок
russian.HashNotFound=Файл не найден!
russian.HashAbort=Проверка файлов была прервана!
russian.HashBadParam=Недействителен алгоритм хеша!
russian.HashBadHash=Хеш файла не совпадает!
russian.HashGeneralError=Общая ошибка!
russian.HashPause=Приостановить
russian.HashResume=Продолжить
russian.HashVerify=&Проверить
russian.HashStop=&Остановить
russian.HashCancel=О&тмена
russian.HashNext=&Далее
russian.HashLog=&Журнал
russian.HashInfo=&Информация
russian.HashFileHash=ХэшФайл
russian.HashCalcHash=РасчXэш
russian.HashHashStatus=ХэшCтатус
russian.HashNoFile=НетФайл
russian.HashNotMatched=Несовпадение
russian.HashMatched=Соответствует
russian.HashNull=Нулевой
#endif
#ifdef Spanish
spanish.HashPageTitle=Comprobación de Integridad
spanish.HashPageDescription=żCheck the integrity of installed files?
spanish.HashStatusLabel=Verificado %1 de %2 archivos (%3%)
spanish.HashResultLabel=Ok: %1 Falta: %2 Malo: %3
spanish.HashWaitingLabel=El instalador está listo para hacer la comprobación de hash de los archivos
spanish.HashOk=Hash_OK
spanish.HashNotFound=ˇArchivo no encontrado!
spanish.HashAbort=ˇLa verificación del hash de archivos ha sido interrumpida!
spanish.HashBadParam=ˇAlgoritmo de hash inválido!
spanish.HashBadHash=ˇEl hash de archivo no coincide!
spanish.HashGeneralError=ˇError general!
spanish.HashPause=Pa&usa
spanish.HashResume=Contin&uar
spanish.HashVerify=&Verify
spanish.HashStop=De&tener
spanish.HashCancel=C&ancelar
spanish.HashNext=&Siguiente
spanish.HashLog=&Log
spanish.HashInfo=In&formación
spanish.HashFileHash=ArchivoHash
spanish.HashCalcHash=CalculadoHash
spanish.HashHashStatus=HashEstado
spanish.HashNoFile=NingúnArchivo
spanish.HashNotMatched=NoCoinciden
spanish.HashMatched=Coincidió
spanish.HashNull=Nulo
#endif

EDIT: Forgot to comment.

The HashPageTitle= message should always start the main words with capital letters.

Some messages cannot contain spaces like:
english.HashFileHash=FileHash
english.HashCalcHash=CalcHash
english.HashHashStatus=HashStatus
english.HashNoFile=NoFile
english.HashNotMatched=NotMatched
english.HashMatched=Matched
english.HashNull=Null

It should be treated as having ":" after Verifyed, but not including ":" so that it doesn't start the message with a number (%1, %2 or %3).
english.HashStatusLabel=Verifyed: %1 of %2 files (%3%)

Gehrman
16-09-2022, 04:55
!
english.HashNoFile=File not found!
english.HashNoFile=NoFile


_________________________________
#ifdef Farsi
farsi.HashPageTitle=بررسی یکپارچگی
farsi.HashPageDescription=یکپارچگی فایل های نصب شده را بررسی کنید؟
farsi.HashStatusLabel=روند کار %1 از %2 (%3%)
farsi.HashResultLabel=سالم: %1 یافت نشد: %2 ناصحیح: %3
farsi.HashWaitingLabel=نصب کننده آماده انجام بررسی یکپارچگی فایل هاست
farsi.HashOk=هش_سالم
farsi.HashNoFile=!فایل یافت نشد
farsi.HashAbort=!انجام پروسه بررسی هش فایل ها متوقف شد
farsi.HashBadParam=!الگوریتم هش نامعتبر است
farsi.HashBadHash=!هش فایل ها مطابقت ندارد
farsi.HashGeneralError=!خطای کلی
farsi.HashPause=&توقف موقت
farsi.HashResume=&ادامه دادن
farsi.HashVerify=&بازبینی
farsi.HashStop=&توقف
farsi.HashCancel=&انصراف
farsi.HashNext=&ادامه
farsi.HashLog=&گزارش وضعیت
farsi.HashInfo=&اطلاعات
farsi.HashFileHash=هش فایل
farsi.HashCalcHash=محاسبه هش
farsi.HashHashStatus=وضعیت هش
farsi.HashNotMatched=مطابقت ندارد
farsi.HashMatched=تطبیق
farsi.HashNull=خالی

fabrieunko
16-09-2022, 07:13
french.HashNoFile=Fichier non trouvé!
french.HashNoFile=PasFichier

there are two entrances


french.HashFileHash=FichierHachage
french.HashFileHash=Fichier de Hachage

french.HashCalcHash=CalculerHachage
french.HashCalcHash=Calculer le Hachage

french.HashHashStatus=HachageÉtat
french.HashHashStatus=Statut de hachage


french.HashNoFile=PasFichier
french.HashNotMatched=PasAdapté
french.HashMatched=Assorti
french.HashNull=Nul

french.HashNoFile=Aucun fichier
french.HashNotMatched=Pas de correspondance
french.HashMatched=Le Hash correspond
french.HashNull=Nul

Cesar82
16-09-2022, 08:29
...

[CODE]french.HashNoFile=PasFichier
french.HashNotMatched=PasAdapté
french.HashMatched=Assorti
french.HashNull=Nul

french.HashNoFile=Aucun fichier
french.HashNotMatched=Pas de correspondance
french.HashMatched=Le Hash correspond
french.HashNull=Nul

If possible let me know which one I should use (Are you providing me with 2 translations?).
Just specify the lines I should use like @Gehrman did.

Forgot to comment.
Some messages cannot contain spaces like:
english.HashFileHash=FileHash
english.HashCalcHash=CalcHash
english.HashHashStatus=HashStatus
english.HashNoFile=NoFile
english.HashNotMatched=NotMatched
english.HashMatched=Matched
english.HashNull=Null

Cesar82
16-09-2022, 08:50
!
english.HashNoFile=File not found!
english.HashNoFile=NoFile


Thanks!
I'll change it to HashNotFound= the first message.

fabrieunko
16-09-2022, 11:33
[CODE]french.HashNoFile=Aucunfichier
french.HashNotMatched=Pasdecorrespondance
french.HashMatched=LeHashcorrespond
french.HashNull=Nul


this one is the right one without the spaces yes I did like @Gehrman

Cesar82
17-09-2022, 18:32
Added Light Installer Script 1.0.1.1 in first post. :)
- Fixed ISSP condition to work cjstyles skin parammeter.
- Added support to DiskSpan GUI 2.0.1.2 only.
>> Added page to do file integrity check (Thanks to BLACKFIRE69 for XHashEx.dll library).
>> Added support for running external executables or command lines via cmd from pre-settings in DiskSpan GUI.

Cesar82
25-09-2022, 17:54
Added Light Installer Script 1.0.1.2 in first post. :)
- Updated support to DiskSpan GUI 2.0.1.3+
- Updated XHashEx.dll library (Thanks to BLACKFIRE69).
- Added extraction progress and hash checking progress in taskbar.
- Fixed some minor bugs.

Cesar82
04-12-2022, 09:43
Added Light Installer Script 1.0.1.3 in first post.
- Updated support to DiskSpan GUI 2.0.1.4+
- Updated SplitLib.dll library to v1.0.0.1 build 221207.
- Updated XHashEx.dll library to v1.0.0.0 build 221207 (Thanks to BLACKFIRE69).


EDIT:
- Source code reuploaded (Fixed bugs).

Cesar82
05-04-2023, 14:34
Added Light Installer Script 1.0.1.4 in first post.
- Updated XHashEx.dll library to v1.0.0.0 build 2300303 no UPX version (Thanks to BLACKFIRE69).
- Added compatibility with DiskSpan GUI 2.0.1.7+.
- Added fade effect on move installer window.
- Added example of using components and tasks.
- Fixed some minor bugs.

Furjack
07-05-2023, 21:42
i have created setup and compressed file now what to do next and how plz help me with this where to place the records.ini and how it should be and yeah if anyone can plz teach from first to last of creating archives and using light installer to unpack a video tut

ravikant
07-08-2023, 00:29
I am making a repack of an emulated trilogy, one data file for each game and one data file for emulator i want to enable checkbox(which will be disabled for files which are not placed next to the setup) so that even if one game and emulator is present the setup does not look for other game data files and raise an error.

Lord.Freddy
10-08-2023, 07:57
LIU Preview (Starting project)
If you have any suggestions, they are welcome.

Are there any updates for this project?:)

Cesar82
10-08-2023, 08:46
Are there any updates for this project?:)

Perhaps after the next DSG update I will share a new version of the LIS.

Cesar82
10-08-2023, 08:49
I am making a repack of an emulated trilogy, one data file for each game and one data file for emulator i want to enable checkbox(which will be disabled for files which are not placed next to the setup) so that even if one game and emulator is present the setup does not look for other game data files and raise an error.
if i have time maybe in the next version i will add this feature. But you will need to use the UNLIMITED tab of the DiskSpan GUI.

ravikant
12-08-2023, 04:05
if i have time maybe in the next version i will add this feature. But you will need to use the UNLIMITED tab of the DiskSpan GUI.

I have been using unlimited tab since day one

Also can you explain me how to use components and tasks which is disabled by default in the script

Cesar82
23-09-2023, 12:18
After a long time I am sharing the beta version of L.I.U.
I ask those interested in the project to test it and inform me of any bugs they find.
The project was developed to have a simple interface and allow all the features of the DiskSpan GUI tool.

nachitoponce1419
20-03-2024, 04:45
The uninstallers you create do not uninstall, delete the games when uninstalling it

nachitoponce1419
20-03-2024, 10:48
Light Installer Script 1.0.1.4

nachitoponce1419
20-03-2024, 15:20
I'm sorry, I'm a newbie, I don't know how to do it.

nachitoponce1419
20-03-2024, 15:30
You cannot get an update that has already been corrected

nachitoponce1419
20-03-2024, 16:26
Thank you very much, in the end I was able to make the correction and it works.

Cesar82
21-04-2024, 13:21
Added Light Installer Script 1.0.1.5 in first post.
- Updated XHashEx.dll library to v1.0.0.0 build 230729 no UPX version.
- Updated SplitLib.dll library to v1.0.0.5 build 240330 (UPX).
- Added support to splash image (IsGsg.dll by South.Tver).
- Added watter efects in all installer images (WaterCtrl.dll by RESTOOL).
- Added suport to skinsharp (SkinH.dll library by Shegorat) with Inno Setup 5.
- Added support to include compressor inside "Setup.exe" file.
>> Add the compressors to a "DECOMPRESSOR" folder next to the script before compiling to include the desired compressors within "Setup.exe" file.
>> It also supports using folder structure with desired compressors.
- Added support to new hash algorithms using key Size= of the "Records.ini" file to set algorithm type.
>> If key Size= exists, LIU will use the "VerifyHashesFromFileEx" function from "XHashEx.dll", otherwise it will use the "VerifyHashesAutoFromFileEx" function.
>> If you enter the type of algorithm you have 21 algorithm options, otherwise only 5 algorithm options.
>> If you prefer, you can also enter just the algorithm number from "0" to "21' in the parameter value.
** crc32, md5, sha1, sha256, sha512 (These 5 algorithm are supported in auto mode).
** sha512_256, sha3_256, sha3_512, blake2_128, Blake2_256, blake3_256, haval3_128, haval3_256,
** ripemd_128, ripemd_256, tiger_128, tiger_192, tiger2_128, tiger2_192, murmurhash_32, xxhash_32
- Fixed some minor bugs.

Lord.Freddy
27-05-2024, 03:38
Hi Cesar82,

A few days ago, I embarked on creating a custom function for the "FadeEffect" feature in my installer script. While I successfully implemented the function, I encountered an issue when attempting to close the installer using the newly added functionality. Specifically, I received an error message. To troubleshoot, I meticulously reviewed my code and made adjustments based on your original script.

The modified version now resides in the file below, and I'm pleased to report that it works seamlessly without requiring any additional lines of code such as WizardForm.Free. However, there are only one remaining challenges:

Minimizing and Maximizing Animation Not Displayed: Despite the improvements, minimizing and maximizing animation doesn't appear as expected.

I kindly request your assistance in resolving these issues. Your expertise would be greatly appreciated.

Cesar82
27-05-2024, 11:18
Hi Cesar82,

A few days ago, I embarked on creating a custom function for the "FadeEffect" feature in my installer script. While I successfully implemented the function, I encountered an issue when attempting to close the installer using the newly added functionality. Specifically, I received an error message. To troubleshoot, I meticulously reviewed my code and made adjustments based on your original script.

The modified version now resides in the file below, and I'm pleased to report that it works seamlessly without requiring any additional lines of code such as WizardForm.Free. However, there are only one remaining challenges:

Minimizing and Maximizing Animation Not Displayed: Despite the improvements, minimizing and maximizing animation doesn't appear as expected.

I kindly request your assistance in resolving these issues. Your expertise would be greatly appreciated.
I think combining AnimateWindow will not work together with this code.
You could throw AnimateWindow into the WizardForm.OnShow event.
I modified the code a little and added timers for FadeIn/FadeOut (see attachment).

Lord.Freddy
04-06-2024, 12:23
I think combining AnimateWindow will not work together with this code.
You could throw AnimateWindow into the WizardForm.OnShow event.
I modified the code a little and added timers for FadeIn/FadeOut (see attachment).

Thank you. It took some time, but it's finally done. This is a gift for you, as a token of my appreciation for your help with the previous post. :)

Cesar82
04-06-2024, 14:59
Thank you. It took some time, but it's finally done. This is a gift for you, as a token of my appreciation for your help with the previous post. :)

Thanks for sharing.

But I would like to inform you that the VRAM is not reading correctly...
Reading is limited to 32-bit integers.
Should have returned 12 GB of VRAM here (see first image).
Also the windows identification is not being displayed correctly. It is labeled as "Windows 10 Interprise" and is "Windows 10 Pro" (see second image)
I attached a code that detects VRAM above 4 GB in case you want to use part of it for your module (see third image).

EDIT: I think you should use the "Extended" type (not Int64) to make it compatible with previous versions of Inno Setup such as the IS Enhanced 5.51 version that many use due to the excellent programming/debugging interface and extra classes offered in this version.

Lord.Freddy
05-06-2024, 00:24
Thanks for sharing.

But I would like to inform you that the VRAM is not reading correctly...
Reading is limited to 32-bit integers.
Should have returned 12 GB of VRAM here (see first image).
alright thanks.

Also the windows identification is not being displayed correctly. It is labeled as "Windows 10 Interprise" and is "Windows 10 Pro" (see second image)
well i modified the GetOSName function to work with GetVersionEx api, should work correctly now.

EDIT: I think you should use the "Extended" type (not Int64) to make it compatible with previous versions of Inno Setup such as the IS Enhanced 5.51 version that many use due to the excellent programming/debugging interface and extra classes offered in this version.
that`s not possible because the GetPhysicallyInstalledSystemMemory api function will only one work with Int64 type.


well done, i hope this release should work as expected, and also if you have windows 11, please test this release on that machine to see if every things work`s well or no.

Edit: i also modified the GetCPUArchitecture function to work with GetNativeSystemInfo and IsWow64Process api function.

Cesar82
06-06-2024, 00:28
alright thanks.


well i modified the GetOSName function to work with GetVersionEx api, should work correctly now.


that`s not possible because the GetPhysicallyInstalledSystemMemory api function will only one work with Int64 type.


well done, i hope this release should work as expected, and also if you have windows 11, please test this release on that machine to see if every things work`s well or no.

Edit: i also modified the GetCPUArchitecture function to work with GetNativeSystemInfo and IsWow64Process api function.
INFO:
- Contains a MsgBox in the module's GetCPUArchitecture function.
- Keeps returning "Windows Interprise".
- You cannot use "RoundUp(Round(GetGPUVRAM))" in the example.
You can use RoundUp only after converting to MB.
RoundUp rounds the values ​​to a multiple of 64, because for example if you get 493 MB it would return 512 MB (Which would be a multiple of 64).
You can change the example script to:
+ 'GPU VRAM: ' + ConvertUnitFormat(GetGPUVRAM, In_Bytes, In_MegaBytes, 0, False) + #13#10
Attached is a solution for compatibility with Inno Setup 5.51.ee2

Lord.Freddy
06-06-2024, 13:22
INFO:
- Contains a MsgBox in the module's GetCPUArchitecture function.
- Keeps returning "Windows Interprise".
- You cannot use "RoundUp(Round(GetGPUVRAM))" in the example.
You can use RoundUp only after converting to MB.
RoundUp rounds the values ​​to a multiple of 64, because for example if you get 493 MB it would return 512 MB (Which would be a multiple of 64).
You can change the example script to:
+ 'GPU VRAM: ' + ConvertUnitFormat(GetGPUVRAM, In_Bytes, In_MegaBytes, 0, False) + #13#10
Attached is a solution for compatibility with Inno Setup 5.51.ee2

Thank you for helping me improve this module :D

demon964
18-06-2024, 10:51
https://i.imgur.com/LaJUVa7.png

hi.

1) why its opening calculator automatically?

2) why this error?

Cesar82
18-06-2024, 19:07
https://i.imgur.com/LaJUVa7.png

hi.

1) why its opening calculator automatically?

2) why this error?

You must have commented or deleted the line:
#define public GameSizeMB ????

Or you may have deleted the lines:
#define MbToBytes(int Value) \
Local[0] = AddBackSlash(GetEnv("TEMP")) + GetDateTimeString('yyyy/mm/dd-hh:nn:ss', '.', '.') + "_tmp.ISPP", \
Local[1] = """" + AddBackslash(SourcePath) + "Resources\Includes\Calc.exe"" " + Str(Value) + " * 1024 * 1024 > """ + Local[0] + """", \
Exec(GetEnv("ComSpec"), "/C """ + Local[1] + """", "", 1, SW_HIDE), \
Local[2] = FileOpen(Local[0]), FileOpen(Local[0]), \
Local[3] = FileRead(Local[2]), FileClose(Local[2]), \
DeleteFile(Local[0]), Local[3]


Check if this is at the beginning of your script.

demon964
19-06-2024, 09:06
Now i get

Error : Extract Temporary File setup.dll was not found

Cesar82
19-06-2024, 11:09
Now i get

Error : Extract Temporary File setup.dll was not found

For me here the shared script file is working correctly.

But if you change the installer target file which is "Setup" in:
#define OuputFile "Setup"
You must rename the Setup.dll file to the same name as the executable just changing the extension which is ".dll"

NOTES:
I found a small bug in the LIS which is the name of the "DECOMPRESSORS" folder must be "DECOMPRESSOR" (without the "S") so that the decompressors added to the folder are inserted in Setup.exe (You cannot use it together with the DSG_InternalDLL option ).
So rename your folders to "DECOMPRESSOR" if you need to use the resource, or change name in DSG_Module.iss to "DECOMPRESSORS".

demon964
19-06-2024, 12:16
For me here the shared script file is working correctly.

But if you change the installer target file which is "Setup" in:
#define OuputFile "Setup"
You must rename the Setup.dll file to the same name as the executable just changing the extension which is ".dll"

NOTES:
I found a small bug in the LIS which is the name of the "DECOMPRESSORS" folder must be "DECOMPRESSOR" (without the "S") so that the decompressors added to the folder are inserted in Setup.exe (You cannot use it together with the DSG_InternalDLL option ).
So rename your folders to "DECOMPRESSOR" if you need to use the resource, or change name in DSG_Module.iss to "DECOMPRESSORS".


i am not created any file with disk span. opened InstallerScript [2024.04.04] and clicked built and run setup file. then receive setup.dll error still

Cesar82
19-06-2024, 13:09
i am not created any file with disk span. opened InstallerScript [2024.04.04] and clicked built and run setup file. then receive setup.dll error still
Record a video showing what happens...
Show the folder with Setup.exe so I can see its contents.

See the attached video that everything works here for me.

demon964
19-07-2024, 03:13
For me here the shared script file is working correctly.

But if you change the installer target file which is "Setup" in:
#define OuputFile "Setup"
You must rename the Setup.dll file to the same name as the executable just changing the extension which is ".dll"

NOTES:
I found a small bug in the LIS which is the name of the "DECOMPRESSORS" folder must be "DECOMPRESSOR" (without the "S") so that the decompressors added to the folder are inserted in Setup.exe (You cannot use it together with the DSG_InternalDLL option ).
So rename your folders to "DECOMPRESSOR" if you need to use the resource, or change name in DSG_Module.iss to "DECOMPRESSORS".




I cant find setup.dll in your script. DO i need first use compressor for create this file?

mausschieber
19-07-2024, 06:18
I cant find setup.dll in your script. DO i need first use compressor for create this file?

yes first compress your installed game

demon964
22-07-2024, 06:16
When i run setup (DIsk spn gui used) after 20-30 % cant unpack files. I think fitgirl added maximum 2gb ram usage for this error. its same problem. Can you add maximum 2gb usage to this script?

demon964
28-07-2024, 12:08
i need create additional new data file or component file with diskspan and install to Documents folder. How i can do this ?

solution: {userdocs} & {commondocs}

demon964
02-08-2024, 03:25
1)how include and exclude folders, not files?

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

2) i selected "custom destination to unpack files" for data2.bin to documents folder. When i start uninstall.exe, uninstaller not deleting data2.bin extracted files (documents folder)

Cesar82
02-08-2024, 08:27
1)how include and exclude folders, not files?

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

2) i selected "custom destination to unpack files" for data2.bin to documents folder. When i start uninstall.exe, uninstaller not deleting data2.bin extracted files (documents folder)

1) The folder must be within the selected folder where the game is installed.
then you can use type:
Bin\*
Texture\*

2) Try using the generate file list option in the DiskSpan GUI. In developer mode select "Create Single List" in the combobox corresponding to "Uninstall files list:" and save.
When compressing, an additional ini file will be generated within setup.dll that will contain information about the files stored in each data#.bin file.

In the LIS installer remove ";" from the beginning of the line below to use the uninstall list option before compile setup.exe.
#define CreateUninstallList
P.S: If the game has a very large number of files, it may take a while to generate the list after compression, and also the uninstallation will go file by file and will take longer.

demon964
02-08-2024, 11:26
[QUOTE=Cesar82;505171]1) The folder must be within the selected folder where the game is installed.
then you can use type:
Bin\*
Texture\*

Thanks worked now. It's not a major issue, but even when I add folder exclude list to the first `data.bin` file , it still creates an empty folder after installation.




Can you add maximum 2gb ram usage function from this script? https://www.fileforums.com/showthread.php?t=103201

Cesar82
02-08-2024, 15:00
Can you add maximum 2gb ram usage function from this script? https://www.fileforums.com/showthread.php?t=103201

I don't have the time or the energy for that. Ask the script developer.

KaktoR
03-08-2024, 05:18
It's not a major issue, but even when I add folder exclude list to the first `data.bin` file , it still creates an empty folder after installation.

This is a freearc issue.

demon964
15-08-2024, 04:59
Please add this functions when you update this script with disk span gui

1) Delete selected game save folder when uninstalling game

2) check regedit for reg files and check C:\\ some files, if found show message that game already installed. You need remove files

Example from audiofeel

function CheckFiles(): Boolean;
begin
Result:= True;
if FileExists(ExpandConstant('{app}\BIO4\movie\r508s0 1c.sfd')) then
begin
Result:= False;
MsgBox('game already installed' + #13 + 'please delete files manually or select delete all for auto delete', mbError, MB_OK);
Exit;
end;
end;


3) maximum RAM and CPU usage (ASIS installer have this function) like fitgirl. Because low end PC give error during installing

4) create predefined components for better management. I cant find task number and select from diskSpan gui

https://imgur.com/a/Loqv7KQ

5) if setup.exe found components file (data-voice-eng.bin) enable checkbox automatically. If not found disable checkbox

Cesar82
15-08-2024, 08:57
Please add this functions when you update this script with disk span gui

1) Delete selected game save folder when uninstalling game

2) check regedit for reg files and check C:\\ some files, if found show message that game already installed. You need remove files

Example from audiofeel



3) maximum RAM and CPU usage (ASIS installer have this function) like fitgirl. Because low end PC give error during installing

4) create predefined components for better management. I cant find task number and select from diskSpan gui

https://imgur.com/a/Loqv7KQ

5) if setup.exe found components file (data-voice-eng.bin) enable checkbox automatically. If not found disable checkbox
The name is Light Installer to be "light".
So I don't intend to add extra features like delete save games. The option to check if the .bin file is together with setup.exe will be implemented in the next version of LIS.
Tasks and components should be configured directly in the script according to each installation.
There is no checkbox to mark whether you want an installation using LOW config, but you can include a task and replace the TRUE value in Unpack_Process with the state of the checkbox of the task you add for this.

Almost all of these features are supported by LIU beta. I will share an updated version of LIU soon.

Cesar82
16-08-2024, 08:38
Added Light Installer Script 1.0.1.6 in first post.
- Added compatibility with DiskSpan GUI 2.0.2.1+.
- Fixed some minor bugs.

Lord.Freddy
17-08-2024, 23:35
The following issue will occur when applying a 125%+ scale.

Cesar82
23-08-2024, 04:11
The following issue will occur when applying a 125%+ scale.
Hotfix attached.

Dario06
04-10-2024, 03:15
he's stoned!

Cesar82
04-10-2024, 08:56
he's stoned!
Does this happen every time, or was it a random occurrence?
What operating system are you using?

It works fine here, even if you use Windows' display scale above 100% (like 150%).
I tested it by compiling with Inno Setup 5.05 (recommended) and also with Inno Setup 6.32 and this error did not occur even once.
My tests were done on Windows 10 PRO x64

Dario06
04-10-2024, 10:48
Does this happen every time, or was it a random occurrence?
What operating system are you using?

It works fine here, even if you use Windows' display scale above 100% (like 150%).
I tested it by compiling with Inno Setup 5.05 (recommended) and also with Inno Setup 6.32 and this error did not occur even once.
My tests were done on Windows 10 PRO x64

this system bro...

it's not a problem friend, it was just to test your script, but I like to test new things :)

I used your bat to compile.

Cesar82
11-04-2025, 05:28
Added Light Installer Script 1.0.1.7 in first post.
- Added compatibility with DiskSpan GUI 2.0.2.3+.
- Fixed some minor bugs.

Budakgamers9849
11-05-2025, 06:43
https://i.imgur.com/TRWDgBm.png
https://i.imgur.com/VOcSp8W.png

Can I change the text in this section? I thought this was a logo image that was in the recourses, but after I changed it, the text didn't change.

Cesar82
11-05-2025, 10:14
https://i.imgur.com/TRWDgBm.png
https://i.imgur.com/VOcSp8W.png

Can I change the text in this section? I thought this was a logo image that was in the recourses, but after I changed it, the text didn't change.

You need to recreate the alpha layer of the image.
See attached video.

goponfs
25-03-2026, 08:03
You cannot use characters for the GameName
For example you can use
#define GameName "Clive Barkers Undying"
but not #define GameName "Clive Barker's Undying"
Can be possible update the script?

Cesar82
25-03-2026, 17:50
You cannot use characters for the GameName
For example you can use
#define GameName "Clive Barkers Undying"
but not #define GameName "Clive Barker's Undying"
Can be possible update the script?
Open the script and search for {#GameName}
NOTES: Replace only inside the section of the script.
[CODE]{#GameName}
Replace with:{#StringChange(GameName, "'", "''")}

wrathma
25-03-2026, 22:59
You cannot use characters for the GameName
For example you can use
#define GameName "Clive Barkers Undying"
but not #define GameName "Clive Barker's Undying"
Can be possible update the script?

you can put 2x single quote like this
#define GameName "Clive Barker''s Undying"
and it will be rendered as single quote. you dont have to make any changes to the code section for this.:):)

goponfs
26-03-2026, 05:58
Open the script and search for {#GameName}
NOTES: Replace only inside the section of the script.
[CODE]{#GameName}
Replace with:{#StringChange(GameName, "'", "''")}

Thanks! I replaced the code and now is working. I hope that you will take this in consideration and update the script for the next release.

Cesar82
26-03-2026, 16:01
you can put 2x single quote like this
#define GameName "Clive Barker''s Undying"
and it will be rendered as single quote. you dont have to make any changes to the code section for this.:):)
If you duplicate the quotation marks, they will be duplicated in all texts that use this directive outside the code section, such as the installation path, program group, executable description, and desktop shortcut name.
See the image:

wrathma
27-03-2026, 00:02
If you duplicate the quotation marks, they will be duplicated in all texts that use this directive outside the code section, such as the installation path, program group, executable description, and desktop shortcut name.
See the image:

youre right. thats why i use different variables for the title of the installer and install directory. sometimes you get special characters in the name that windows wont allow. Like "Nier:Automata" or "Star Wars Jedi: Survivor".

palievka
01-05-2026, 01:04
Hello. Will this be updated for DiskSpan GUI v2.0.2.4 version. Thank you

Cesar82
03-05-2026, 19:27
Hello. Will this be updated for DiskSpan GUI v2.0.2.4 version. Thank you

Wait until next weekend.

demon964
05-05-2026, 10:07
Wait until next weekend.

hi. can you add this function? for real time delete files when unpacking

https://github.com/auto-Dog/delete_when_unzip

Masquerade
09-05-2026, 12:15
^^
Bad idea, if the installer crashes and the archives are deleted, then what?

Cesar82
10-05-2026, 10:58
Added Light Installer Script 1.0.1.8 in first post.
- Added compatibility with DiskSpan GUI 2.0.2.4+.
- Added data hash page to check integrity of compressed files.
- Fixed some minor bugs.

@demon964, deleting the BIN file during installation is a terrible idea.
However, you can modify your own script by editing "Resources\Includes\DSG\DSG_Module.iss" adding red text part.
But this will only work for BIN files contained on disks such as HDDs/SSDs and for non-splitted BIN files.
if (not ISDoneError) and (not ISArcExtract(0, Arcs[I].Pct, CurrArc, Arcs[I].Output, '', Arcs[I].AType = tmArc, Arcs[I].Password, ExpandConstant('{tmp}\Arc.ini'), Arcs[I].Output, False)) then
ISDoneError := True
else
DeleteFile(CurrArc);

goponfs
14-05-2026, 07:49
Please, consider for the next update to improve ScriptVersion to accept also letters. Currently you can use only numbers. If i put letters, for example "v3" i cannot compile it.

Cesar82
14-05-2026, 18:12
Please, consider for the next update to improve ScriptVersion to accept also letters. Currently you can use only numbers. If i put letters, for example "v3" i cannot compile it.
Done!

goponfs
15-05-2026, 12:23
Done!
Thanks alot! When you hover the mouse over the Setup file instead of showing "v3" on File version it shows 3.0.0.0 and also if i put in the script just letters it shows 0.0.0.
Another example: if you put 1.072 it shows 1.72.0.0
Ps: in uninstall programs it shows correctly

Cesar82
15-05-2026, 17:23
Thanks alot! When you hover the mouse over the Setup file instead of showing "v3" on File version it shows 3.0.0.0 and also if i put in the script just letters it shows 0.0.0.
Another example: if you put 1.072 it shows 1.72.0.0
Ps: in uninstall programs it shows correctly

The Inno Setup keys VersionInfoProductVersion= and VersionInfoVersion= only support numbers in the format 0.0.0.0

There is no way to display text in any Inno Setup installer; it's a limitation of Inno Setup itself.

palievka
17-05-2026, 11:42
When verifying the integrity check and hash, the name of the Verify button changes to Pause and then Resume, and then when I click Resume, the name of the button does not change to Pause anymore. Thanks:)

Cesar82
17-05-2026, 12:31
When verifying the integrity check and hash, the name of the Verify button changes to Pause and then Resume, and then when I click Resume, the name of the button does not change to Pause anymore. Thanks:)
Replace attached "DSG_Checksum.iss" inside "...\Resources\Includes\DSG" folder.

palievka
20-05-2026, 11:09
Is it possible to display installation actions in a list like here, but also with time and installation percentage? Thank you:)

Cesar82
20-05-2026, 17:27
Is it possible to display installation actions in a list like here, but also with time and installation percentage? Thank you:)
Yes, it's possible, but it requires quite a bit of code for those changes, which defeats the purpose of being a simple installer.

But I'll include that in the next update.

goponfs
30-05-2026, 04:25
Can you enable Pause button by default in the next update? I just needed to pause a big setup because i had to do another job which require alot of resources and i observed the button is grey out. Since the button is already there, please consider to enable it. Thank you for your work. I use your script for my personal old games repacks.

palievka
30-05-2026, 05:01
Can you enable Pause button by default in the next update? I just needed to pause a big setup because i had to do another job which require alot of resources and i observed the button is grey out. Since the button is already there, please consider to enable it. Thank you for your work. I use your script for my personal old games repacks.

Find PauseButton.Enabled := False; in the script and change it to PauseButton.Enabled := True;