How to handle File Associations from Application?

后端 未结 3 734
谎友^
谎友^ 2021-01-06 16:50

I know Installers can setup File Associations for your Application during the installation process, so if you have your own File types that open with your Application, it wi

3条回答
  •  无人及你
    2021-01-06 17:30

    From your app you'd be better to use the per-user store for file associations. If you use the system wide registry location then you'd need to elevate in order to apply changes. That's not something you should do in a standard user app.

    Store the registry settings under:

    HKEY_CURRENT_USER\SOFTWARE\Classes
    

    The format of entries under there is exactly the same as under

    HKEY_LOCAL_MACHINE\SOFTWARE\Classes
    

提交回复
热议问题