Archive: NSIS slow


NSIS slow
My app requires a lot of components to be installed which results in an NSIS installer of approx 200MB. This all works fine except the problem I have is that it can be very slow to just view the file in windows explorer or other programs. The problem is that it seems to search the entire file for the icon to display. On CDs this can be extremely slow and give the impression that the PC has frozen for the first minute and the CD is faulty. The first time I encountered it I removed the CD several times before waiting long enough. Is there any solution to this?

Thanks,
Michael


I have experience similar problems with big installers. And indeed, it feels like it's searching the icon. I don't recall problems like this in older (2.0x) versions.


Interesting problem, any link where we can download the 200MB installer? Then I can test on one of my slow test machines see where the problem is.

And have you tried to build without HAVE_UPX?

And try various option below:

CRCCheck off
SetCompress off
; SetCompressor lzma
; SetCompressor zlib


Originally posted by onad
Interesting problem, any link where we can download the 200MB installer? Then I can test on one of my slow test machines see where the problem is.

And have you tried to build without HAVE_UPX?

And try various option below:

CRCCheck off
SetCompress off
; SetCompressor lzma
; SetCompressor zlib
Thanks for the reply onad. I have tried the different compressions but not with compression off and not with the CRC check off. What is HAVE_UPX? I'll organise a link, it will take a while to upload the file.

Is it possible this is just a windows thing and it will happen on any large file?

Originally posted by onad
And have you tried to build without HAVE_UPX?

And try various option below:

CRCCheck off
SetCompress off
; SetCompressor lzma
; SetCompressor zlib
No UPX or any other exe packers. And I will try those options when I have more time.

Is this something that ReserveFiles would help with?


Here's the link to the file if anyone is interested

http://www.mikesdriveway.com/Misc/SmileSetup.exe


The icon is located at the very beginning of the installer, so that's probably not the problem. I'd guess you have an anti-virus software installed which scans the file when you view it in Explorer. Try disabling any automatic scanners.

ReserveFile can't help here as the installer isn't even executed.


I downloaded the installer and I will test the Icon issue on an old regualr 300MHZ P3 with XP EN. This is a "Clean" XP with no additional software installed.

I'll and post the outcome asap.


I had NO issue of icon appearing on this slower XP machine. It must be some other software on your Windows machine.

Notes:
Or maybe a corrupt icon cache. There are free tools to clean the cashe e.g. MS powertoys.

If you use the software from a CD, note that if you have an autorun.inf ,assign an *ICON=* AND having a *LABEL* line in there will result in an Icon NOT displayed in the explorer. This is an Windows OS defect.

OK ---
[autorun]
OPEN=\SmileSetup.exe
ICON=CDIMG.ICO

NOT OK ---
[autorun]
OPEN=\SmileSetup.exe
ICON=CDIMG.ICO
LABEL=MyTestLabel


BTW your installer does not install everything correctly. E.g. there is no main application istalled thus the Shortcut Icon is empty.

Also, if I have my main Windows on E: some things get installed on wrong location e.g.
C:\Program Files\Microsoft SQL Server\80\Tools\Binn

I have a C partition where the is no "Program Files" etc.

I think you have to review your own installer code a little more ;) and make it more robust.


Originally posted by onad
BTW your installer does not install everything correctly. E.g. there is no main application istalled thus the Shortcut Icon is empty.

Also, if I have my main Windows on E: some things get installed on wrong location e.g.
C:\Program Files\Microsoft SQL Server\80\Tools\Binn

I have a C partition where the is no "Program Files" etc.

I think you have to review your own installer code a little more ;) and make it more robust.
Thanks for the info. I took my app files out of this install as I didn't want to release it as a freebie but I will look at the C drive issue.

BTW, whoever said it was anti-virus software was absolutely right, I disabled mcafee and the problem went away. Thanks everyone who looked at this.