Programmatically add file association without admin rights in C #

Other people have asked similar questions, but I want to clarify. I want to create my application without requiring administrative rights during installation. For file associations, I understand what I need to write in the registry, but so far I have found two different places in stackoverflow articles:

HKEY_CURRENT_USER\Software\Classes

and the other under

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts

So which one is correct?

+3
source share
2 answers

You must use the first ( HKCU\Software\Classes), because what Windows uses to open files.

, ; , " ".

+5

, . , .

, .

, , .

+2

Source: https://habr.com/ru/post/1657479/


All Articles