D
Don.Leri
Hi,
I have an MFC application (let's call it Viewer) assigned to specific
extension (let's call it .ext).
HKEY_CLASSES_ROOT \ .ext \ Default = "Viewer.Document"
I need to avoid the following case...
When i right-click on .ext file and navigate to "Open With" item i get
a menu with two entries of Viewer.exe
Steps to get such case are as follows:
0. clear .ext association
.... at this moment there is no "Open With" item in pop-up menu
1. open Viewer.exe from one location and assign it to .ext (program
writes association to registry)
.... at this moment there is "Open With" item in pop-up menu without
list of programs to select from
2. open Viewer.exe from another location and close it
.... at this moment there is "Open With" item in pop-up menu with list
of two Viewer.exe in context menu appearing on hoovering over "Open
With" item.
Additional notes...
In regedit i remove all OpenWithList and OpenWithProgid entries for
.../Explorer/FileExt/.ext
from all roots.
Then in explorer i right-click on .ext file and still get a list with
two Viewer.exe entries in it.
Question is...
How to get rid of duplicated entries and have only one most recent?
Any details on how "Open With" list is populated will be greatly
appreciated also.
I have an MFC application (let's call it Viewer) assigned to specific
extension (let's call it .ext).
HKEY_CLASSES_ROOT \ .ext \ Default = "Viewer.Document"
I need to avoid the following case...
When i right-click on .ext file and navigate to "Open With" item i get
a menu with two entries of Viewer.exe
Steps to get such case are as follows:
0. clear .ext association
.... at this moment there is no "Open With" item in pop-up menu
1. open Viewer.exe from one location and assign it to .ext (program
writes association to registry)
.... at this moment there is "Open With" item in pop-up menu without
list of programs to select from
2. open Viewer.exe from another location and close it
.... at this moment there is "Open With" item in pop-up menu with list
of two Viewer.exe in context menu appearing on hoovering over "Open
With" item.
Additional notes...
In regedit i remove all OpenWithList and OpenWithProgid entries for
.../Explorer/FileExt/.ext
from all roots.
Then in explorer i right-click on .ext file and still get a list with
two Viewer.exe entries in it.
Question is...
How to get rid of duplicated entries and have only one most recent?
Any details on how "Open With" list is populated will be greatly
appreciated also.