Archive: "Default" file association


"Default" file association
How to set DEFAULT file association? If an extenstion was previously set to Notepad (by default), and I create a new association with my installer, the Notepad is still in the "Recommended Programs" list for that file extension. My application is added to that list too, but the name of the app is let's say "ZZZ", and it is on the last place in the list. So my extension is always open with Notepad, until I precisely check "Always use the selected program" for my installed application.

Is it possible to set my program as the "default" one during setup? I searched through NSIS forums and MSDN, but still could not find an appropriate registry key...


If your class is set as the extension's handler under HKCR, I don't see why it'd still open in Notepad. The only reason I can think of, is that some other program is restoring the extension's handler class.