Old 22nd April 2012, 18:36   #1
shaig
Junior Member
 
Join Date: Apr 2012
Posts: 2
Installer Icon probelm

Hi,

I am experiencing an odd problem.

I am using the following code to define the icons:

!define MUI_ICON "installer.ico"
!define MUI_UNICON "Uninstall.ico"

But I noticed my icon for the installer is first getting assigned properly to the Installer file, and at the very end of the script compilation it changes into this old default Windows app icon.

After some tests, I found out that if I comment out the following line in my script, everything works fine:

File /oname=$TEMP\directx_Jun2010_redist.exe directx_Jun2010_redist.exe

So somehow adding this file to my installation kills the custom icon I am using.

Further more, I found that if I comment out the entire icon definition, the default NSIS installer icon is used but in the same way, it gets changed at the very end to that Windows default app icon...

Anybody knows how to go around this glitch?

All I am doing is adding the directx installer to mine... why should it even have any effect on the installer icon?

Thanks,

Shai
shaig is offline   Reply With Quote
Old 22nd April 2012, 20:31   #2
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 453
Is your finished installer large? Windows cannot/will not display the correct icon when the exe goes above some particular size. A brief search has not found confirmation, but I've seen this sometimes on my own builds too.
demiller9 is offline   Reply With Quote
Old 28th April 2012, 18:42   #3
shaig
Junior Member
 
Join Date: Apr 2012
Posts: 2
Hey,

Thanks for the tip.

I think that is exactly the problem.
I'll try to find some workaround.
shaig is offline   Reply With Quote
Old 29th April 2012, 03:43   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 3,168
http://forums.winamp.com/showthread.php?t=156086
http://forums.winamp.com/showthread.php?threadid=261911

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump