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