I have a small program which I use when I have to restore some file association silently modified by a new program installed. For instance I have recently installed VideoPad and it has associated many video files with itself without prompting for this. The code (working perfectly some time ago) is something like:
Now this code changes the registry values correctly, but avi files are still opened by VideoPad when I double-click on them and the icon is not vlc icon but VideoPad one.
Now, my problem is not to reassociate the avi extension with vlc: I can do it manually. My problem is how to write a program which set the files associations in the registry and makes these associations be respected by Windows. That is, I have to understand why the registry values set by my code above are ignored by Windows.
Hope to have been clear.
Thanks in advance for any advice.
Cheers
Marco
Delphi
Last Comment
Sinisa Vuk
8/22/2022 - Mon
accountsworlds
1) I wanted the option to "open with" from all file types so i added
If I look in the registry using regedit it's sure there as it should seem to be but when I right click on a file and select Open With it's not there...
Yes your code works: I didn't test it yet, but I know beacause I understood that I can simply empty the data of the default value to make the new association work.
Many thanks: you're becoming my personal expert ;-)
Open in new window
If I look in the registry using regedit it's sure there as it should seem to be but when I right click on a file and select Open With it's not there...So I then added this
Open in new window
Source: http://stackoverflow.com/questions/590892/windows-registry-file-association-menu