Bug 225014 - Create desktop and startmenu link using the branding icon
Create desktop and startmenu link using the branding icon
Status: NEW
Product: installer
Classification: Unclassified
Component: NBI
7.3
PC Windows 7
: P3 with 11 votes (vote)
: TBD
Assigned To: Libor Fischmeistr
issues@installer
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-17 10:06 UTC by markiewb
Modified: 2014-08-12 18:33 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-01-17 10:06:02 UTC
Geertjan describes in https://blogs.oracle.com/geertjan/entry/icons_for_netbeans_platform_applications how to hack the icon-resource in the *.exe file to make it possible to exchange the icon.

I think could be even easier: The nbi-installer could create the *.lnk using a customer defined icon. So no resourcehack in the exe file is necessary. This way the custom icon is seen on the desktop and in the startmenu. The original *.exe stays untouched.

EXPECTED: After installing a NBRCP app, the link on the desktop and in the start menu use the custom branding icon.
Comment 1 dinhosminorfay 2014-04-30 17:26:17 UTC
Hello Netbeans Team,

Any news about this topic?

>>EXPECTED: After installing a NBRCP app, the link on the desktop and in the start >>menu use the custom branding icon.

I am trying to build an installer and I was expecting the same behaviour expected for markiewb.

Regards,
Adriano
Comment 2 hardyheroin 2014-05-26 01:13:34 UTC
I will add myself to the list of developers that would greatly appreciate the implementation of this feature. An application icon is an integral part of branding and should be treated as such.
Comment 3 oyarzun 2014-08-12 18:33:23 UTC
You can do this in the ant build.xml.

    <condition property="isWindows">
	<os family="windows" />
    </condition>
    
    <!-- override build-launcher to replace the icon for the Windows launcher exe. -->
    <target name="build-launchers" depends="suite.build-launchers">            
        <antcall target="replaceWindowsLauncherIcon"/>
    </target>    
    
    <!-- Windows-only target that replaces the icon for the launcher exe with our own icon. -->
    <target name="replaceWindowsLauncherIcon" if="isWindows" description="Replace the icon for the Windows launcher exe">
        <echo message="Replacing icon of Windows launcher executable."/>
        <exec executable="ReplaceVistaIcon.exe" resolveexecutable="true">
            <arg line="build/launcher/bin/${app.name}.exe ${app.name}.ico"/>
        </exec>
    </target>

I actually am doing it a little bit different now since I use OS X as my development platform. I am using IconExe from the eclipse project
to replace the icon since it is cross platform. The only catch is that I need to use an app.exe and app64.exe that has had the icon replaced,
since the ico used to make those files was missing some layers. see https://netbeans.org/bugzilla/show_bug.cgi?id=64612#c12

Ideally app.exe and app64.exe should be fixed and IconExe should be used in the build harness to replace the icon, without having to create 
custom ant build targets.

http://git.eclipse.org/c/equinox/rt.equinox.p2.git/tree/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/pde/internal/swt/tools/IconExe.java


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo