Buggy CRCCheck?
Hi,
I'm using NSIS 2 Modern UI, and in my installer the CRC Check is configured on. I believe this leads to the initial status dialog "Verifying installer", right? Anyway, I believe the implementation of this CRC check may be flawed, not from a functionality perspective but a performance perspective. If running the installer from a CD, the process may take up to a minute for a 10MB installer, whereas it's instantaneous from the hard disk. This is a showstopper for shrinkwrapped software. I believe the implementation bug probably lies in that file I/O (reading from the file) is done in pathetic little chunks (e.g. 100 bytes each) instead of loading the file in generous chunks of dozens of K in each gulp. This is a typical developer mistake - reading a file byte-by-byte in numerous i/o calls takes many orders of magnitude longer than reading it at once or in a few calls. Please review the implementation of the CRC check and let me know if my suspicions are correct. As it stands now, I unfortunately have to cancel it in my installer because it takes too long when installing from CD.
Regards,
GJ