Archive: NSIS 2.30: Installer startup really slow compared to build with previous versions


NSIS 2.30: Installer startup really slow compared to build with previous versions
Hi,

yesterday I updated my release version of NSIS from 2.24 to 2.30 since I needed SetRegView.
I left the project settings (compressor etc) unchanged.

When starting the built installer (about 900KB) I noticed that it took about 6-10 seconds until the Welcome Dialog appears.
With NSIS 2.24 it took less than a second.

Checked on several test machines (different Windows platforms) and found the same behaviour. Startup is noticeably slower.

I downgraded to 2.29 and everything's fine again.

Bug? Feature? Reason?


Vista ? XP ?
RequestExecutionLevel ?
CRC checking dialog visible ? after/before it ?


Originally posted by Wizou
Vista ? XP ?
RequestExecutionLevel ?
CRC checking dialog visible ? after/before it ?
Seen with W2K, WXP, WXP64.
RequestExecutionLevel always Admin.
CRC checking dialog visible: No.

you might want to activate the CRC checking dialog, so you can diagnose if the slowdown comes before it (might be the OS) or after it (definitively NSIS)


Originally posted by Wizou
you might want to activate the CRC checking dialog, so you can diagnose if the slowdown comes before it (might be the OS) or after it (definitively NSIS)
Settings in .nsi file:
SetCompressor /SOLID lzma
CRCCheck On
(Unchanged)

So the CRC checking dialog seems to be the dialog that appears when I start an NSIS wrapper installer for IS 32 & IS 64 installers with about 20 MByte from a slow USB stick, where I see the unpacking process....10% ...24%....

No. With a 900 KB installer I never SAW that dialog.
And the 5 to 10 seconds delay IS NOT caused by that.

And : The same (unchnanged) project built with NSIS 2.29 runs as fast as before!

oh i thought 900 MB... 900 KB is small so CRC is not visible, right..


If the unpacking dialog shows, you are missing a ReserveFile call and probably have .onInit at the end of the script, extracting files.


Originally posted by kichik
If the unpacking dialog shows, you are missing a ReserveFile call and probably have .onInit at the end of the script, extracting files.
For the installer in question, the unpacking dialog DOES NOT show up. .onInit is near the end of the script, but it does not extract any file.
Versions to compare are fetched via GetDLLVersionLocal.

Can you provide a script that reproduces this?


Originally posted by kichik
Can you provide a script that reproduces this?
I'll try to reproduce it with a smaller NSIS script.