Skip to content
⌘ NSIS Forum Archive

Application icon

11 posts

Yathosho#
you really read yourself deep in the manual, right? try the Icon command. using the MUI you need to use the MUI_ICON definition.
gberes#
Thanks, it almost works now, except this:

[nsis] Icon: ".\resource\icon_copy.jpg"
[nsis] Error while setting icon to ".\resource\icon_copy.jpg": invalid icon file
gberes#
I added ico files from the NSIS distribution. The script compiles, but the app icon is still the default.
demiller9#
I don't understand the question here. Are you asking to change the installer icon, or your application's icon? The replies so far have been to change the installer icon, but your first post asks about the application icon.

The application icon is controlled (selected) by resources embedded in the application. The installer won't change that. You would need a resource editor to change the application icon. (However, shortcuts can have their own icons).

Don
gberes#
Thanks for the explaination Don. I was reffered to shortcut icon.

I still have problems about that:

CreateShortCut "$SMPROGRAMS\${APP_NAME}\${APP_NAME}.lnk" "$INSTDIR\${JRE_NAME}\bin\javaw.exe" "-jar myjar.jar" "${APP_ICON}"

In windows start menu, the icon does not show, instead there is the default icon, that windows gives, when nothing else specified.
gberes#
!define APP_ICON "${RESOURCE_DIR}\sample-app.ico"

What do you mean by extracting the icon file?