HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
. , .
Root , - PDF Reader .
, PDF , . ( VBScript, VB6)
File = <PDF FILE HERE>
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run Chr(34) & File & Chr(34)
vb6, RegRead - . WMI - . WMI, .
There is nothing wrong with reading HKEY_CLASSES_ROOT, but if you are just going to start the PDF handler by default, why not just start it with the WshShell.Run command above? You are doing the same thing with one smaller step.
source
share