FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   CLS-DiskSpan (UltraARC replacement) (https://fileforums.com/showthread.php?t=99627)

Cesar82 23-05-2020 04:11

Quote:

Originally Posted by Razor12911 (Post 485969)
what bug?

If you use VCLStyle (Style.vsf) together with DiskSpan, when searching for the disk the installer is usually closed without any error message, it simply closes.
Watch the video to see the error.
I went to shoot a video and showed an error message (This time it didn't end directly).
The message box is displayed with a skin totally different from the skin used.

Componets are compressed separately. Each game in your data file as game1 = Data1.bin.001, game2 = Data2.bin.001. In the Tools folder of the CIU thred inside the UltraArc folder there is a modified DiskSpan.bat (if you want to see it).

What is the minimum version of DELPHI to compile cls-diskspan.dll?
I adapted the code and compiled it with DELPHI 2010 (To make it smaller size), but it didn't work(Not show erros, simply closes the installer).
With Seattle or RIO I know it works, but which previous version also works?

Gehrman 23-05-2020 08:51

Quote:

Originally Posted by KaktoR (Post 485971)

Btw, from a technical view, is it possible to add file extension grouping (masks)? Just a question, not a request ;)

CLS-Span

Razor12911 23-05-2020 10:05

Quote:

Originally Posted by KaktoR (Post 485971)
Sometimes installer just closes without any message when asking for next archive if you use vcl styles.

Btw, from a technical view, is it possible to add file extension grouping (masks)? Just a question, not a request ;)

I think so

Quote:

Originally Posted by Cesar82 (Post 485972)
If you use VCLStyle (Style.vsf) together with DiskSpan, when searching for the disk the installer is usually closed without any error message, it simply closes.
Watch the video to see the error.
I went to shoot a video and showed an error message (This time it didn't end directly).
The message box is displayed with a skin totally different from the skin used.

Thanks, I just noticed the bug myself, I'll check to see what causes it.

Quote:

Componets are compressed separately. Each game in your data file as game1 = Data1.bin.001, game2 = Data2.bin.001. In the Tools folder of the CIU thred inside the UltraArc folder there is a modified DiskSpan.bat (if you want to see it).
It is possible to do, maybe next version will have this if you need it so bad


Quote:

What is the minimum version of DELPHI to compile cls-diskspan.dll?
I adapted the code and compiled it with DELPHI 2010 (To make it smaller size), but it didn't work(Not show erros, simply closes the installer).
With Seattle or RIO I know it works, but which previous version also works?
You could just use upx

Cesar82 23-05-2020 16:21

Quote:

Originally Posted by Razor12911 (Post 485980)
I think so
You could just use upx

Yes, I know that, but it's still great.
NORMAL: 1130 Kb (1.10 MB) >> UPX = 288 Kb
if compile with DELPHI 2010 (but not work) = NORMAL: 339 Kb >> UPX 119 Kb.
I will try with other dephi XE versions later.
But it would be useful to know what would be the minimum version of DELPHI that this source works for.
Thank you!

Razor12911 23-05-2020 17:38

Quote:

Originally Posted by Cesar82 (Post 485986)
Yes, I know that, but it's still great.
NORMAL: 1130 Kb (1.10 MB) >> UPX = 288 Kb
if compile with DELPHI 2010 (but not work) = NORMAL: 339 Kb >> UPX 119 Kb.
I will try with other dephi XE versions later.
But it would be useful to know what would be the minimum version of DELPHI that this source works for.
Thank you!

288 - 119 = 169 KB, are you trying to fit the dll in a floppy disk or something? :rolleyes:

ffmla 23-05-2020 21:06

Quote:

Originally Posted by Razor12911 (Post 485988)
288 - 119 = 169 KB, are you trying to fit the dll in a floppy disk or something? :rolleyes:

Hello Guys,
I think, To make the installer in smaller size.:)
We working with compression.,Why dont we use the necessary(small) library to make the installer in below 2 mb size.:p.
And.....thanks for returning to your awesome project.:D

Cesar82 23-05-2020 23:17

Quote:

Originally Posted by Razor12911 (Post 485988)
288 - 119 = 169 KB, are you trying to fit the dll in a floppy disk or something? :rolleyes:

Almost that...:D:D:D

If you only use a few libraries, that's okay with a larger size.
But when using multiple libraries it makes large sizes inconvenient for two reasons.
1. Setup.exe ends up getting bigger.
2. The extraction time of these compressors/libraries is longer.
With smaller sizes it is possible to use compression mode none (whitout compression) in Setup.exe reducing the time of extraction of these compressors/libraries.
To get an idea joining libraries and compression tools in the CIU source code and assuming that the creator of the conversion wants to make the option available to the end user to choose any of the methods supported by the ciu (Including all compressors/libraries) the size of the sum of these files is more than 50 MB (And there is another 6 MB of library files intended for graphics).
Yes, there are only a few Kb, but if each compressor/library has a gain of 150 Kb, it would reduce the final size considerably (in this situation there are more than 100 files). Of course, most of the time it doesn't.
Of course, if it doesn't work well it is preferable that it be bigger and without bugs.
As the friend commented, the idea is to have final sizes as small as possible from the installer + data file set.

felice2011 24-05-2020 01:31

@Cesar82 ... MPress has a faster execution speed than UPX, and a false positive warning factor lower than UPX. I have not tested it on your work but in the ahk language on the conversion into executable. you can try.

Razor12911 24-05-2020 20:50

The VclStyle bug is not related to diskspan. I tried to make DiskSpan create the form in another thread, the problem persisted. I ended up downloading the source of VclStyle to see how it really works and VclStyle just tries to make sure all the forms/dialogs use the same style including the ones created externally, as you can see in the video.

DiskSpan is not involved at all, I just made ISDone produce an error to show a message then I just waited to see what will happen.

https://youtu.be/0j7Lx0nxhLY

Basically, use this VclStyle library in your scripts if you know that the other libraries you import don't create additional forms/dialogs else you'll have this issue whether diskspan was used or not.

Cesar82 24-05-2020 22:59

1 Attachment(s)
Quote:

Originally Posted by Razor12911 (Post 485999)
The VclStyle bug is not related to diskspan. I tried to make DiskSpan create the form in another thread, the problem persisted. I ended up downloading the source of VclStyle to see how it really works and VclStyle just tries to make sure all the forms/dialogs use the same style including the ones created externally, as you can see in the video.

DiskSpan is not involved at all, I just made ISDone produce an error to show a message then I just waited to see what will happen.

https://youtu.be/0j7Lx0nxhLY

Basically, use this VclStyle library in your scripts if you know that the other libraries you import don't create additional forms/dialogs else you'll have this issue whether diskspan was used or not.

Do you mean that any library that displays a dialog box can happen that the installer is closed immediately when displaying the dialog?
So the error happens inside ISDone.dll (VCLStyle.dll does not support ISDone.dll)?
because with a library called directly by the installer the window is displayed correctly.

If this error is internally in VCLStyleInno.dll, and public source code, and someone has enough knowledge to correct it, please try it because it would be very useful.
Thank you.

Cesar82 24-05-2020 23:00

Quote:

Originally Posted by felice2011 (Post 485993)
@Cesar82 ... MPress has a faster execution speed than UPX, and a false positive warning factor lower than UPX. I have not tested it on your work but in the ahk language on the conversion into executable. you can try.

I tried to compress VCLStylesInno.dll using MPress and the library stopped working.

felice2011 25-05-2020 00:44

Cesar you could try Benjamin, but you have to waste some time with the various options to use.

https://i.ibb.co/QDMWxby/img.png

DiCaPrIo 25-05-2020 01:18

I think, it's nothing but wasting of time to compress lib or exe because setup size increases and also decreases some speed while opening the setup generally for dll being used after compiling.
It compresses twice or if twice is being used so better use Flag:nocompression
with compressed one on [Files] sec, it prevents from increasing the size

Razor12911 25-05-2020 20:54

Quote:

Originally Posted by Cesar82 (Post 486001)
Do you mean that any library that displays a dialog box can happen that the installer is closed immediately when displaying the dialog?
So the error happens inside ISDone.dll (VCLStyle.dll does not support ISDone.dll)?
because with a library called directly by the installer the window is displayed correctly.

If this error is internally in VCLStyleInno.dll, and public source code, and someone has enough knowledge to correct it, please try it because it would be very useful.
Thank you.

Use this with ISDone, make a CLS that creates a message dialog.

Cesar82 02-06-2020 20:39

1 Attachment(s)
@Razor12911
Sorry I'm bothering you.
It includes the new diskspan R3 (original Library) in CIU 3.0.0.0.1 beta and when displaying the search message for the disk, Setup.exe is terminated.
I don't know if it is because CIU has many features that require more from the system than a basic script.
I did the same tests using the Light Installer (very basic script) and there is hardly an error.
The request disk code in Light installer and CIU is exactly the same.

I have attached the examples where the installer closes when searching for the disk.
Run as is and search for part 1 and then for part 2 in folders when prompted (Most of the time the error occurs when searching for part 2).

@Razor12911, if you want to do tests I can send you the ciu beta source code.
The error I think is still in the callback, and I don't know if there is a solution for that.


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

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