-1
------------------------------------Update------------------------------
I tried the solution in the first answer, however, since there are Hash
under user choice, it won't allow me to edit the value to foxitreader.document
I installed a PDF viewer app called FoxitReader. I can define it as the default pdf viewer app in the settings , but I cannot set it by editing the Registry.
I tried with: HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/FileExt/.pdf
I also tried HKEY_CURRENT_USER\Software\Classes\MIME\Database\Content Type\application/pdf and set the CLSID to the CLSID of FoxitReader.Document,
Or Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes.pdf\PersistentHandler with the CLSID
or HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.pdf
Those do add this app into the Open list, but none of them can set FoxitReader as the default PDF viewer.
When I double click the pdf file, it still ask me to choose an app to open it instead of opening it directly in FoxitReader.
How could I set it as my default PDF viewer app in the Registry?
1So you're just creating a problem where there isn't one... Just because? – Sickest – 2019-05-23T23:58:34.490
@Sickest There must be some way of setting it in the registry because after I installed Adobe, Adobe automatically become the default pdf app. But I don't know how does adobe do it but it definitely edit the registry. – beasone – 2019-05-24T00:00:35.667
"Adobe automatically become the default pdf app." I don't believe that to be the case, All programs ASK YOU if they can be the default program. It's been that way for a long time. But let's assume what you say is true. Change the default program BACK to Foxitreader. With the Open As... Always use this program... Feature. – Sickest – 2019-05-24T00:03:54.347
what I said is true. If I didn't set any default program and the adobe is installed, it is using adobe, so I have to uninstall adobe. then it never use any program to open it as default util I set it in the settings. but what I need is to set it in the registry. – beasone – 2019-05-24T00:07:03.847