This is a short tutorial on how to embed high resolution icons and manifest files into RapidQ executables.
If you haven't already got them you need to get a couple of tools to do this.
They are both freeware so much respect goes out to their authors.
ResHacker http://users.on.net/johnson/resourcehacker to do the embedding.
UPX http://upx.sourceforge.net to unpack and repack the Exe.
This article is available as a download that includes a 9 image icon and a manifest template.
EmbeddingTut.zip (117 KB)
UPX is meant as a console program but there is a GUI available but it's not as flexible as using it from the command prompt when you get to repacking so I'll only deal with using it this way. I am assuming that you have actually bothered to look at the Help file or typed "upx -h" at the command prompt before now.
Go to command prompt and unpack your exe with something like:-
Return to Windows.
Open ResHacker. In the main menu, go to File > Open > MyApp.exe
At the bottom of the left-hand pane fully open the Icon Group branch and click on the cog or number next to it. You should now be looking at something like this.

In the main menu, go to Action > Replace Icon
The following dialog appears:-

Click on the 'Open file with new icon' button and navigate your way to your multi-size / multi-resolution icon file and 'Open' it.
The new icon will appear on the dialog next to 'Select new icon:'
Note that if you have a 32 bit icon in your icon set it be be shown badly but don't worry ResHacker just can't show them properly - it WILL be embedded properly
Click the 'Replace' button and you should see something like this:-

In the main menu go to File > Save
That's sorted out the icon. Open Explorer and find your file (still unpacked) and use the various views to check out your application's new icon looks.
Return to ResHacker.
| |
| |
|
| |
|
I've added the red arrows to show you the only three lines you might like to edit. |
Create a free website at Webs.com