Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a released obfuscated signed C# EXE assembly that I need to update the icon that is displayed in Windows Explorer (for a specific customer). Preferably with a batch file (command line) method. I'd have to resign it again (sn.exe), I don't need help with that.

I know this is possible if I were to create a different build configuration but then I'd have to build it twice, obfuscate it twice and would prefer not to have to add this to extend the daily build time.

Ideas? Has anyone had to do this before? What method did you use?

Thanks!
Posted

The general idea with icons is to build once with a list of icons included in the exe. You can then choose any one of the icons you included within the application when it is finally deployed.

You could for now create a shortcut and then change the icon for this shortcut. :-\
 
Share this answer
 
v2
Comments
Veener 4-May-10 15:13pm    
I don't prefer this solution because the assembly itself still has only 1 default icon that would be shown in Windows Explorer. It is nice to be able to choose the icon when creating the shortcut though. By going this route, I would lose auto versioning (AssemblyInfo.cs) and app.manifest. Not really what I'm looking for.
Just a proposal - maybe Resource Hacker will help in this case? http://www.angusj.com/resourcehacker/[^]

Please let me know if it will.
 
Share this answer
 
Comments
Veener 4-May-10 15:14pm    
This might work, but I'd prefer a solution that can be executed using the command line so the build machine can run it easily.
Veener 4-May-10 15:23pm    
If you don't mind using a UI, it does work though... Nice program.
Dimitri Witkowski 4-May-10 15:29pm    
I thought they had console version too :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900