tr-pc icon indicating copy to clipboard operation
tr-pc copied to clipboard

Windows - application icon is probably missing

Open RadekCap opened this issue 1 year ago • 3 comments

After installation from MSI, there is this icon in the system menu:

image

This icon is probably default.

The application icon in the tray is correct one:

image

Tested on Windows 11.

RadekCap avatar Jul 09 '24 08:07 RadekCap

~Possibly a duplicate of #81~

ursjoss avatar Jul 09 '24 08:07 ursjoss

https://netbeans.apache.org/wiki/main/wiki/DevFaqExecutableIcon/

ursjoss avatar Jul 14 '24 12:07 ursjoss

Option: Use rcedit to set icon (needs a windows machine, alternatively a linux machine with wine installed). Command to exchange the icon:

RCEDIT.EXE your_installer.exe /I icon_file.ico

Could be run in a github action job step, executing rcedit as shown above or optionally using a dedicated action: https://github.com/Bioblaze/rcedit-action.

In order to integrate it into the ant build:

<target name="replace-windows-icon" depends="build-launchers">
    <exec executable="RCEDIT.EXE" dir=".">
        <arg line="build\launcher\bin\${app.name}.exe /I branding\core\core.jar\org\netbeans\core\startup\${app.name}.ico"/>
    </exec>
</target>

Alternative to RCEdit, ReplaceVistaIcon.exe.

<target name="replace-windows-icon" depends="build-launchers">
    <exec executable="ReplaceVistaIcon.exe" dir=".">
        <arg line="build\launcher\bin\${app.name}.exe branding\core\core.jar\org\netbeans\core\startup\${app.name}.ico"/>
    </exec>
</target>
```

ursjoss avatar Jul 29 '24 17:07 ursjoss