About DiskSliceSize

343 views
Skip to first unread message

Bruni

unread,
Mar 13, 2022, 9:40:46 PM3/13/22
to innosetup
Is there a thecnical reason for the limit being 2100000000 bytes? Any way to raise this limit somehow?

Laurent Combémorel

unread,
Mar 14, 2022, 5:18:06 AM3/14/22
to innosetup
FAT16 volume size limit...

Bruni

unread,
Mar 14, 2022, 9:52:06 AM3/14/22
to innosetup
Oh, that's all? I mean, Since DiskSpanning is always required for "big" installers, limiting the DiskSliceSize to 2100000000 means you can end up with dozens of bin files. In my case, I'm creating an installer for a game texture pack that weighs about 30 gb, and no one would ever try to install that on FAT16 volumes, yet I'm still held by this limit. Would be nice to have an option to increase it.

I've tried recompiling Inno Setup from source to change the limit, but the compiler from Delphi Community Edition complains about not being able to compile files from the command line. Meh.

Jernej Simončič

unread,
Mar 14, 2022, 3:39:21 PM3/14/22
to Bruni on [innosetup]

On Monday, March 14, 2022, 02:40:46, Bruni wrote:


Is there a thecnical reason for the limit being 2100000000 bytes?

Likely 2^31 (signed integer) limit somewhere in the code.

 

-- 
< Jernej Simončič ><><><><>< https://eternallybored.org/ >


Celibacy is not hereditary.
       -- First Law of Socio-Genetics

cesar.za...@gmail.com

unread,
May 7, 2022, 6:35:52 PM5/7/22
to innosetup
I know that Inno Setup is intended for software compression, but as the files take up more space every day, I have a question.

I wonder if there is a way to split a compression to BD100 (Blu-Ray Media 100 GB)?

The SlicesPerDisk limit is 26 and the maximum DiskSliceSize limit is 2100000000, so I will have a maximum of 54600000000 (~50.85 GB) per disk.

How do I split for example 150GB of compression into 2 BD100's so that it asks for the correct disk 2 after installing the contents of the first BD100?

Thanks!

Gavin Lambert

unread,
May 9, 2022, 8:04:39 PM5/9/22
to inno...@googlegroups.com
On 8/05/2022 10:35, cesar.za...@gmail.com wrote:
> I know that Inno Setup is intended for software compression, but as the
> files take up more space every day, I have a question.
>
> I wonder if there is a way to split a compression to BD100 (Blu-Ray
> Media 100 GB)?
>
> The SlicesPerDisk limit is 26 and the maximum DiskSliceSize limit is
> 2100000000, so I will have a maximum of 54600000000 (~50.85 GB) per disk.

You can, of course, put as many as will fit onto the physical disk; you
don't have to stop at 51GB.

> How do I split for example 150GB of compression into 2 BD100's so that
> it asks for the correct disk 2 after installing the contents of the
> first BD100?

It's not possible to make slices larger than 2GB, as previously noted.

However you can put these slices onto disk however you like, so you can
for example put as many as will fit onto the physical disc 1 and then
put the rest onto the physical disc 2. When Inno wants the next file
and can't find it, it will prompt to swap discs.

(If you really wanted, you could put all the odd files one one disk and
the even files on another, and it'd prompt to swap for each file. Don't
actually do that though.)

By default it will prompt for "disk 43" or whatever the first file on
the other disc is. If you don't like this, you can use the [Messages]
section to edit the SelectDiskLabel2 message. This is fairly
straightforward when you only have two physical discs.

You can use SlicesPerDisk to reduce the disk number in the message
somewhat; but as you noted, not that far. It's probably simplest to
just leave it at 1.

Luís César Zanetti

unread,
May 13, 2022, 12:11:54 PM5/13/22
to inno...@googlegroups.com
I understand that this is possible.
But the message displayed will not be .
Please insert Disk 2 and ...


SelectDiskLabel2=Please insert Disk %1 and click OK.%n%nIf the files on this disk can be found in a folder other than the one displayed below, enter the correct path or click Browse.

One thing I noticed is that the smallest value for slice is now incorrect in the documentation. Possibly with the DELPHI update that the executable is compiled, the install.exe executable has become bigger so the min slice can no longer be 262144 (256 Kb), now the minimum value is approximately 2.5 MB.

Thanks!

--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/innosetup/f8bb3489-a7c4-b076-4138-72a0671df6e2%40mirality.co.nz.
Reply all
Reply to author
Forward
0 new messages