ClickOnce deployment and file extensions
Microsoft says that ClickOnce deployment can be used in a case where you need to install an application with an associated file extension. Several sites parrot this information, but nobody seems to have the info on how to do this.
I want to associate the extension .dceff with an application installed using ClickOnce. How do I do this?
[345 byte] By [
dcell59] at [2007-11-20 5:35:02]

# 2 Re: ClickOnce deployment and file extensions
Yep, I spent well over an hour researching on Google and MSDN before I asked the question in the first place. I always try pretty hard to research questions before I ask them.
If you can show me in one of the articles you pointed to where it talks about how to associate a file extension with an application using ClickOnce, I'd appreciate it. I looked at the first page worth, and I didn't find anything I hadn't seen before.
Thanks! :wave:
# 3 Re: ClickOnce deployment and file extensions
OK, so I'm going to guess that this isn't really a feature of ClickOnce. Most likely, it was a feature that never got implemented and nobody removed it from the master list of features.
Oh well, there are other ways to do this from within my program.
# 5 Re: ClickOnce deployment and file extensions
Let's face it, searching the internet for hours, and not finding anything useful, is a waste :(. What I'd do is to programmatically associate my file extension, to my application. Keeping that in mind, this will be of great use.
http://www.codeproject.com/useritems/System_File_Association.asp
I assumed you're using C#
I hope this was at least a bit helpful :)
# 6 Re: ClickOnce deployment and file extensions
Thanks! I ran across a similar article written in VB, and I wrote my own class in C#. I'll check out that article and code just in case I missed something.
It's not horrible that they don't include an association mechanism - it's just annoying to have so many places listing it as a feature yet nobody seems to know how to make it work. It's kind of like all of the articles that show you how to make owner-draw combo boxes, but none of them show you how to handle sorting with custom item data because it doesn't work as documented.