Is there a command line utility to change the embedded Icon of a win32 exe?

You can also drive it via the command line (script) so I'm sure it could be incorporated into your build.

I am pretty sure Resource Hacker can do this, and some other things, I believe I recognize its icon from when I used it a while back. Hope that helps you!

Thats fantastic: and almost perfect, except I cant run it as part of my build process because it's not command line based. Upvote for an interesting link though. – jkp Jul 30 '09 at 17:44 I found this: heaventools.Com/command-line_resource_editor.htm.

Shame they want an inordinate amount of cash for it. – jkp Jul 30 '09 at 17:51 Its not a console application, but you can still run it with parameters and perform a single "action" without user interaction.It also supports script files if you need to perform several actions – Anders Aug 1 '09 at 8:00.

Looks like I've found the perfect solution for what I'm trying to do.

Unfortunately I later found it was not feature complete. Still with little effort someone could finish it off: it was only one cpp source file and the code was very clean. – jkp Jul 31 '09 at 7:56.

. Res) and cvtres (.res?. Obj).

Both tools are included in the Microsoft Platform SDK. When you include the object file into an linker command, the result will have the icon specified in the resource script file. Here's a sample resource file and the commands to create the object: resource.

Rc: 101 ICON "my_icon. Ico" Your icon file is in the file my_icon.ico. Commands to compile these into an object file: rc -fo resource.

Res resource. Rc cvtres -machine:ix86 -out:resource. Obj resource.

Res But, by far the easiest way to set the program icon is to just do it in Visual Studio. Technically, neither will allow you to actually change the icon of an existing executable, but somehow I doubt that's what you really want to do.

No no, I really do! The reason is convoluted: I need to add custom icons to some utilities I build using PyInstaller. The problem is the out of the box functionality relies on pywin32 which is OK, except that I run my build in a sandbox provided by virtualenv and pip in combination: unfortunately, I cannot find a way to get pywin32 to install at all: there appears to be no way to get it to build in this environment.So to side-step the issue, I wanted to be able to change the icon after PyInstaller has done it's bit.

– jkp Jul 30 '09 at 17:46.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions