How do I register a file extension in the registry?

Posted on 2008-02-03
Medium Priority
Last Modified: 2012-06-21
Hi, I have a C# Windows applicaiton that runs on Windows 2000 server or higher.  Users saves a couple of text file in my applicaiton that I give it a special file extension.  I would like to write a C# dll that would register this file extension (for example .abc) in the registry.  I would then use this dll in MSI installation's customer Action to execute after installation is completed.  Also, how do I indicate this file type to be "NoOpen" type unless it's done by my application using stream reader?  Thank you.
Question by:lapucca
  • 2
LVL 19

Expert Comment

ID: 20812774
Have a look at the source code here: http://www.mentalis.org/soft/class.qpx?id=5
LVL 11

Expert Comment

by:Mihai Stancescu
ID: 21103612
But MSI installation in visual studio 2005 and 2008 offers a File Type Editor, that does just what you need, but it's done by the setup, so you don't need a dll and a custom action.

Hope this helps!

LVL 11

Accepted Solution

Mihai Stancescu earned 2000 total points
ID: 21742957
Maybe this will explain my previous post:



Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…
Suggested Courses

594 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question