Archive: No Icon fo Installer >576Mb ?


No Icon fo Installer >576Mb ?
hey... i finally logged in to the forums... my other nick "PaRaDoXide", seemed to have trouble with validation.. anywayz....


why is it that the icon for my 'NSIS Created' Installer disappears when it reaches the 576Mb mark...? i noe that it is 576 Mb because i saw the icon and the size of the executable update itself in my windows window as the "MakeNSIS.exe" program began compiling all the files into the executable and when directly after the 576 Mb mark, the icon disappeared and now it looks like a .com file's icon... :eek: help please? what do i do to get it back?

I suppose you need my script? well it is attached...


The icon is there, Windows just doesn't like to show it for large files. I guess it has some limit so icon loading will be faster or something like that... If you really want the icon you can create a silent wrapper installer that will just call the bug installer and pass along the command line arguments.


k.... thank you... that takes a load of my mind... :) i thought my script had some problems... haha.... now i can go study for my GCE 'O' Levels in peace... :)

thanx,
Shawn


i solbed the problem of rno icon for istaller >576Mb
Just create a shortcut to it from the desktop and soon the icon should be displayed.... haha... i haven't tried it on other systems yet so maybe it's just specific to my computer... :)


i think i came across with the same problem. My installer with ~700MB shows only the default icon; if i exclude file statements from the same script to downsize the installer, the icon (MUI_ICON) is shown properly.

My Question is - is this problem still an unsolved windows (xp) specific bug or are there new workarounds available? Because for example the default winXP zip-icon is still there for files bigger than 1Gig.

Thanks in advance!


Already discussed above! Workarounds provided above!
BTW did you try to make sfx from the bigger than 1gb zip?


Thank you for your response!

I recognized the workarounds, mentioned above but they either don't work or aren't appropriate for me; providing the installer with only one file (without wrapper or file splitting) is unfortunately a must.

Also the shortcut-creation mentioned by PaRaDoXial doesn't works for me, because, trying to change the icon of the shortcut, windows says the installer doesn't contain any symbols.

So it was my question if there are any new insights since 2003, especially because of the fact that, due to the replies above it seems for me to be rather a windows- than a nsis-specific bug. Searching google about this issue was without success.

What do you mean by 'try to make sfx from the zip'?
It's a 1.5Gig sized, zip-compressed file from a installation dvd and because i have no specific zip program installed at the moment, the explorer shows the icon for the default windows zip programm (the yellow folder with the zipper).
But writing this i tried to rename my installer to *.zip and it also shows the zip icon, so am i right that windows can't handle custom icons but its home icons from (e.g. from shell32.dll) for large files?


EDIT:
Also there is a recent thread,
http://forums.winamp.com/showthread....hreadid=261911

Recently, in fact after the above thread has been posted for 1st time, I made an sfx from a 640 Mb rar package, well, the resulting sfx has the same prob with icon while the parent rar displays the default rar icon normally.


Originally posted by BFuture_BM
My Question is - is this problem still an unsolved windows (xp) specific bug or are there new workarounds available? Because for example the default winXP zip-icon is still there for files bigger than 1Gig.
I think the icon problem is just with exe files; the icon shows up correctly for other files because the extension alone determines the icon (like zip, rar, etc). The system needs to scan an exe to find the icon, but doesn't want to do that for large files.

Don

I think the icon problem is just with exe files
Yes, it seems so.
And I was actually surprised because my current build of the installer shows the custom icon (about 717MB).
It's just the daily build, so no changes were made to the script except for some automated File statement excludes & includes.

I will keep track of the behaviour...

btw: Is the size limit adjustable in WinXP? I personally have some dirs with large files and Explorer is slow because the Icons are loading slow. If I could I would reduce the size to 5MB or something like that.

Is it possible to disable EXE icons by source (network drive)?

Is it possible to speed up icon display anyway (e.g. could NSIS store the icon at a better position in file)?


1) NSIS store the icon at a better position in file)?
It is an OS defect not an NSIS one, only creating a smarter script somehow we can come up with aworkaround for how the OS handles the displaying of an icon.

One Idea comes to mind, feed the OS iconcache directly and inject the icon into it imediately as the installer start, but is not easy to do!

2) Big ZIP's show an icon since they are ZIP's not EXE's and the OS Shell links this to the Icon to be shown, in other words, that is not the same scenario.


Originally posted by onad
[B]1) NSIS store the icon at a better position in file)?
It is an OS defect not an NSIS one,
I know this is quite OS-related. I didn't know that the icon always has to be at the end of the file (or something similar).
only creating a smarter script somehow we can come up with aworkaround for how the OS handles the displaying of an icon.

One Idea comes to mind, feed the OS iconcache directly and inject the icon into it imediately as the installer start, but is not easy to do!
Thanks for this idea, but I personally think this hack could/would result in weird problems (Microsoft might change those things in future Windows)

Has MS documented this?
Does anyone have a link to Microsoft's documentation of this behavior?

I need something to show the bosses to close a bug about this behavior in my installer. I've tried searching the MS site, but I must not be using the right magic words.


Manually create a program with the same size and show that to them.


This is well defined by Microsoft on the MSDN website, however the exact limit is defined by the OS you are using.


Sorry to bump an old topic, but for anyone else that's wondering about this, there is a quick way to tell where the problem lies: if your custom icon appears in the top left of the installer page, but not in explorer, then the problem is with explorer, not your icon.

Can't find the MSDN article on the subject, but other than creating a silent wrapper installer as above, there is no solution.