how to associate an icon with an application file

Hi - I'm using VS 2010 and .net 4. i'm able to use the project properties to build my application to have an icon associated with the exe file. I know that VS2010 has limited support for generating msi installs. however, I would like to generate a msi install that will also associate an icon to a project application file (which has its own file extension.) I assume that the installer needs to access the registry to do this - can you tell me if there's any way to get the VS msi builder to generate an install script that will do that or do I have to purchase an install maker?  if so, any suggestions on which brand?
in case it's not obvious, i'm only concerned with windows (7 and later).
thanks,
jdcoburnAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

quizwedgeCommented:
Check out
http://stackoverflow.com/questions/7252316/change-the-icon-of-the-exe-file-generated-from-visual-studio-2010

The first answer is the official Microsoft answer but there are other suggestions. In short, you can set the icon in your exe instead of the MSI.
0
jdcoburnAuthor Commented:
i had seen this article before. I believe it only addresses associating an icon with the exe itself as it lands in the file system from the installer. what i'm trying to do is associate an icon with a project application file (for example, file type xyz that has an extension of xyz that is opened in my application.)  so my application will have an .exe extension and the icon is embedded in the application. I've done that. but my application generates a file (a project application file) that is created, saved and reopened from within my application. it's that file I need an icon associated with. I believe that has to be done through the registry. will VS2010 have the capability to generate a script that can modify the registry. if not, can you recommend another installer package.
thanks,
0
quizwedgeCommented:
Sorry, I misunderstood. You can do that through the registry. See the first answer over at http://stackoverflow.com/questions/69761/how-to-associate-a-file-extension-to-the-current-executable-in-c-sharp

For more on writing to the registry, check out http://msdn.microsoft.com/en-us/library/vstudio/h5e7chcf.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jdcoburnAuthor Commented:
thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.