Bansaw
11th June 2013 18:28 UTC
COPYFILES - is there any alternative ?
I've got an install with a huge amount of small .jpg files to copy from the install disc to the hard drive.
This takes a lot of time obviously.
Is there anything better than "CopyFiles" ? Its just too slow.
I could zip up all the jpgs and then unzip them I suppose but I am trying to avoid this.
Any ideas?
Anders
11th June 2013 21:42 UTC
You could try the Find instructions + CopyFile, might not be faster though...
DO_Visser
12th June 2013 08:54 UTC
You could try to place all the small jpg's in a single archive before embedding it in your installer. Then extract the archive once installed on the target machine. Copying one large file instead of bunch of small files is usually much faster. A quick google search turned up the following: How to really speed up file copying in Windows
T.Slappy
13th June 2013 08:55 UTC
Pack all files into .zip archive and include this archive in the installer.
During installation:
1) Copy .zip into $INSTDIR
2) Call Zip unpacker (e.g. unzip.exe) and unpack all files.
Many times unzipping files is faster then copying them.
Bansaw
13th June 2013 21:04 UTC
thanks
thanks, I went with 7ZIP.
I am using 7ZG and just calling it with an ExecWait from my installer.
Now it takes MUCH shorter time to copy.