Who should be responsible for executing file associations?

I am currently associating files when the program starts. However, this requires increased access, and since I am linking script files, I feel like I am doing something wrong, which could compromise the user's safety. What is the correct way to merge files? Through installation? Through the program? If the latter, how can I prevent malicious scripts from running through the program?

+4
source share
1 answer

You can register associations for each user who do not require promotion.
System-wide associations are usually registered with the installer.

HKLM\Software\Classes.
HKCU\Software\Classes.

, ¹.

HKEY_CLASSES_ROOT.


¹ - : , .

. .

+1

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


All Articles