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)

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.


All times are GMT -7. The time now is 19:29.

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