Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add my application in the Default Programs list of Windows Vista/7?

So many programs feature a list of possible extensions and protocols under the "Default Programs" control panel applet. "Set Default PRograms", more precisely. (Vista & 7)
I wish to add my programs in that list and set some extensions that it can handle.

One more thing. My program supports addons for opening more files, so that list should be dynamic (I can add more extensions or even protocols at any time)

By the way, yes, I know, this is not exactly a programming question. It'd be my humble guess that it's a registry question. So UAC will not be an issue!

like image 394
Vercas Avatar asked Apr 04 '11 17:04

Vercas


2 Answers

OK so after hard work and a half-an-hour long registry search, I have found out that I have to register my applications capabilities and then register my application.

For others, analyze the values in this key:

HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications
like image 59
Vercas Avatar answered Oct 17 '22 08:10

Vercas


The registry keys required to register your application with the Default Programs UI is documented on MSDN (Part of the Shell Developer's Guide)

like image 30
Anders Avatar answered Oct 17 '22 08:10

Anders