FileForums

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

Cesar82 05-04-2023 14:34

Light Installer Script 1.0.1.4
 
Added Light Installer Script 1.0.1.4 in first post.
Code:

- 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

Quote:

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

Quote:

Originally Posted by Lord.Freddy (Post 501935)
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

Quote:

Originally Posted by ravikant (Post 501881)
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

Quote:

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

Light Installer Ultimate (Beta 1)
 
1 Attachment(s)
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

Light Installer Script 1.0.1.5
 
Added Light Installer Script 1.0.1.5 in first post.
Code:

- 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

FadeEffect
 
1 Attachment(s)
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

1 Attachment(s)
Quote:

Originally Posted by Lord.Freddy (Post 504651)
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

1 Attachment(s)
Quote:

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

4 Attachment(s)
Quote:

Originally Posted by Lord.Freddy (Post 504693)
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

1 Attachment(s)
Quote:

Originally Posted by Cesar82 (Post 504694)
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.

Quote:

Originally Posted by Cesar82 (Post 504694)
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.

Quote:

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

2 Attachment(s)
Quote:

Originally Posted by Lord.Freddy (Post 504699)
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:
Code:

+ '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

3 Attachment(s)
Quote:

Originally Posted by Cesar82 (Post 504707)
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:
Code:

+ '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

Quote:

Originally Posted by demon964 (Post 504831)
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:
Code:

#define public GameSizeMB ????
Or you may have deleted the lines:
Code:

#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

Quote:

Originally Posted by demon964 (Post 504848)
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

Quote:

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

1 Attachment(s)
Quote:

Originally Posted by demon964 (Post 504853)
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

Quote:

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

Quote:

Originally Posted by demon964 (Post 505054)
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

Quote:

Originally Posted by demon964 (Post 505169)
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:
Code:

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.
Code:

#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:
Code:

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

Quote:

Originally Posted by demon964 (Post 505174)
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

Quote:

Originally Posted by demon964 (Post 505174)
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

Quote:

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

Quote:

Originally Posted by demon964 (Post 505298)
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

Light Installer Script 1.0.1.6
 
Added Light Installer Script 1.0.1.6 in first post.
Code:

- Added compatibility with DiskSpan GUI 2.0.2.1+.
- Fixed some minor bugs.


Lord.Freddy 17-08-2024 23:35

2 Attachment(s)
The following issue will occur when applying a 125%+ scale.


All times are GMT -7. The time now is 01:27.

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