Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple desktop icons for the same project? 1

Status
Not open for further replies.

RexHeadlong

Programmer
Apr 10, 2002
35
US
Has anybody had experience with making a project contain one of several possible icons for the desktop?

I have a project that I want to make have a different desktop icon for a different build configuration.

I already have my icon set to "myicon.ico" in the .csproj file. I already have a pre-build event that copies a different .ico file onto myicon.ico. This allows my project to have different desktop icons for different build configurations.

My problem is that all of the icons are named the same (myicon.ico) after the build. If the different builds are installed onto the same machine, then windows picks the first myicon.ico to display, FOR ALL INSTANCES.

I need to be able to create different builds of the same project, where the icon file is named something different for each build. The only solution I see right now is to have multiple .csproj files, one for each icon. But this will be a maintenance nightmare when adding or removing anything from the project.

Does anybody see a simpler solution?

Thanks for any help.
 
I haven't tried it, but you ought to be able to add multiple .ico objects to your project, and have your install program select which one to display.

A good example of this is when you create a shortcut, go into it's properties, and click the "Change Icon" button. It will show you all the .ico's that are embedded in the executable.

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top