Archive: Application icon


Application icon
Hi!

Can i change the default application icon to something else?

Thanks


you really read yourself deep in the manual, right? try the Icon command. using the MUI you need to use the MUI_ICON definition.


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


because it is not ico.... i know


I added ico files from the NSIS distribution. The script compiles, but the app icon is still the default.


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


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.


What is APP_ICON set to? Have you extracted the icon file?

Stu


!define APP_ICON "${RESOURCE_DIR}\sample-app.ico"

What do you mean by extracting the icon file?


With the File instruction.

Stu


OK, it works now.
Thanks.