View forum topic
List of forum topicsSubject: Installing folders with thousand of files takes too long
Testing Create Install, I added a folder with about 10k files, obviously needed by the program. But the installer took about 40 minutes to complete installation (creating installer is still faster).
I zipped the folder and unzippep after installation but I don't know if there are any other "smarter" options. Can anyone help me?
What compression algorithm do you use?
DEFAULT has the fast decompression algorithm.
PPMD has the same speed the compression and decompression.
What is the average size of your files (and summary size)?
Thanks for your answer
There are 9486 files in 544 folders, sizing 957Mbs. Most of the files sizes less than 5kb. I'm using DEFAULT decompression. Should I try PPMD?
Silent installation (from comend sile -silent) takes only 7 minutes. May be takes too long displaying into screen every file included?
PPMD is slower than DEFAULT.
What version of CreateInstall do you use?
I'm currently using version 6.3.1
Try to do the following:
Open CreateInstall\cmds\sources\unpackfile.g file.
Find this code there:
if fipack.sizelo > 5000
{
prog2short( cmn_progdir, destdir )
// win_settext( cmn_progdir, destdir )
win_settext( cmn_progfile, geamain.fileinfo[ id ].name )
}
comment it as
/*if fipack.sizelo > 5000
{
prog2short( cmn_progdir, destdir )
// win_settext( cmn_progdir, destdir )
win_settext( cmn_progfile, geamain.fileinfo[ id ].name )
}*/
and save the file. Now rebuild your project.
Also, you can comment this line too:
if geamain.fileinfo[ id ].size < 512 : Sleep( 50 )
It is below.
Thanks! It works properly, and installation takes a short amount of time. App does not displays Directory/file data and is a little ugly, but I can deal with it
Thank you!
I think it is too long because the function tries to calculate the length of the dir and cut it to c:\dir...subdir if it is necessary.
We will try to add an option which can switch off this calculation.
Now you can comment prog2short( cmn_progdir, destdir ) only
// prog2short( cmn_progdir, destdir )
and compare the time.
January 16, 2025 Installer CreateInstall 8.11.1 was released.
June 19, 2024 Installer CreateInstall 8.11.0 was released. read more
November 13, 2022 Installer CreateInstall 8.10.1 was released.
May 21, 2022 Installer CreateInstall 8.10.0 was released.
September 25, 2021 Installer CreateInstall 8.9.0 was released.
July 15, 2021 Installer CreateInstall 8.8.1 was released.