I am trying to get a version number for Win 98 DCOM by reading a default registry value, but I am having trouble with the default name part. I'm not sure how that is supposed to be formatted.
;*** first install dcomxx *****************************************************
;*** it will ask to reboot ****************************************************code:
$dcom = READVALUE("HKEY_CLASSES_ROOT\CLSID\{bdc67890-4fc0-11d0-a805-00aa006d2ea4}\InstalledVersion","(default)")
IF $dcom = "4,71,0,3328"
Color g+/n
? "Key exists, Value is: " + $dcom
; Do nothing
ELSE
? "Key not found, Error value is: " + $dcom
AT (16,25) "Your computer needs to reboot."
AT (16,25) "Choose 'yes' and 'yes' to restart."
SHELL "\\usingapp02\nscap\Bin\Win32\X86\redist\dcom\dcom98.exe /Q"
Sleep 3 ; so I can read the results
ENDIF