Skip to content
⌘ NSIS Forum Archive

My application is no longer installed with the Icon I want.

4 posts

perdrix#

My application is no longer installed with the Icon I want.

My NSIS installer script used to work fine but now the installed application gets a default windows application icon rather then the one I define:


!include "MUI.nsh"
!include "MUI_EXTRAPAGES.nsh"
!define DSS_ICON "..\DeepSkyStacker\Icon\DSS.ico"

:

!define MUI_ICON "${DSS_ICON}"
!define MUI_UNICON "${DSS_ICON}"​
It *used* to work fine but no more ...
Anders#
Windows sometimes does not display the icon (large installers usually, 200mb+) or the wrong icon (icon cache, renaming the exe will show the correct icon).

You can verify that the icon is still there with https://www.angusj.com/resourcehacker/
perdrix#
Turns out it wasn't NSIS at fault at all - I'd finished converting the application to Qt, and had removed all .rc files. Didn't realise I needed a short resource file to define the application icon. Now that that is in place all is well.

D.