org.eclipse.pde.internal.swt.tools
Class IconExe
java.lang.Object
org.eclipse.pde.internal.swt.tools.IconExe
public class IconExe
- extends Object
Customize the icon of a Windows exe
WARNING! This class is not part of SWT API. It is NOT API. It is an internal
tool that may be changed or removed at anytime.
Based on MSDN "An In-Depth Look into the Win32 Portable Executable File Format".
Win x64 support (Bug #238001) based on MSDN "x64 Primer: Everything You Need To
Know To Start Programming 64-Bit Windows Systems".
Method Summary |
static void |
main(String[] args)
Replace the Desktop icons provided in the Windows executable program
with matching icons provided by the user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
IconExe
public IconExe()
main
public static void main(String[] args)
throws Exception
- Replace the Desktop icons provided in the Windows executable program
with matching icons provided by the user.
Takes 2 arguments
argument 0: the Windows executable e.g c:/eclipse/eclipse.exe
argument 1: The .ico file to write to the given executable e.g. c:/myApp.ico
Note 1. Write access to the executable program is required. As a result, that
program must not be currently running or edited elsewhere.
Note 2. The Eclipse 3.4 launcher requires an .ico file with the following 7 images (in any order).
1. 48x48, 32 bit (RGB / Alpha Channel)
2. 32x32, 32 bit (RGB / Alpha Channel)
3. 16x16, 32 bit (RGB / Alpha Channel)
4. 48x48, 8 bit (256 colors)
5. 32x32, 8 bit (256 colors)
6. 24x24, 8 bit (256 colors)
7. 16x16, 8 bit (256 colors)
A user icon matching exactly the width/height/depth of an executable icon will be written
to the executable and will replace that executable icon. If an executable icon
does not match a user icon, it is silently left as is.
Note 3. This function modifies the content of the executable program and may cause
its corruption.
- Throws:
Exception
Copyright © 2008-2011. All Rights Reserved.