I have just written a small standalone program ChangeExeIcon.exe (13 KB) in PureBasic, which is able to change the icon of an existing exe file.

Please take the following into account:
- start ChangeExeIcon and open the exe file at which the icon shall be changed
- the icon must have the same name as the exe file (e.g. test.exe --> test.ico)
- the icon must be in the same directory and must have the extension .ico
- the icon has a maximum size of 32 x 32 pixel and maximum of 256 colors

========================================================================

EDIT:
Sorry, I recognized that ChangeExeIcon doesn't work with published GameStudio exe files.
It changes the icon, but when I start the changed exe file, I get an error "startup failure".
GameStudio Icons have 536 colors, but ChangeExeIcon supports a maximum of 256 colors only.
Maybe this is the reason for the startup failure.
I removed the download link for ChangeExeIcon, because the program doesn't work with published GameStudio levels.

========================================================================

EDIT:

Quote:

You can change the icon of the acknex.exe with a resource hacker before compiling the exe.



That's it!
Published GameStudio levels contain a protection, that nobody is able to change published levels.

I made a copy of the acknex.exe in the GStudio7 folder, copied an own icon into the GStudio7 folder and renamed it to acknex.ico.
Then I started ChangeExeIcon.exe, opened the acknex.exe and changed its icon this way.

After this, I published the level, I recognized that the exe file in the published version has the new icon and I was able to start the level without any problems.

When I pressed Alt-Enter, I wondered, why the icon in the upper left corner of the window is still the A7 icon and not the new icon.

It's possible to change the icon of the exe file with ChangeExeIcon.exe, but I think, it's not the right way to work with GameStudio.

Last edited by Tracker; 01/01/08 23:24.

3DGS A7.85 Com