Im having a problem reading this REG_MULTI_SZ key and determining if I need to change the value or not.
When I export the key with regedit the value is
"VDD" = hex(7):00,00
Im not sure how to query for this value. my script below is writing the value each time it runs which I dont want to do.
code:
;****************************************************************************************
;
; Registry fix
; Virtual Device Driver Error Message in 16-Bit MS-DOS
; KB # 254914
If @INWIN = 1
$RegVal = ReadValue("Hkey_local_machine\System\CurrentControlSet\Control\VirtualDeviceDrivers","VDD")
If @error = 0
If $RegVal <> 1
$KeyLoc = "Hkey_local_machine\System\CurrentControlSet\Control\VirtualDeviceDrivers"
$KeyNam = "VDD"
$KeyVal = ""
$RC = WriteValue($Keyloc,$KeyNam,$KeyVal,"REG_MULTI_SZ")
EndIf
Else
$KeyLoc = "Hkey_local_machine\System\CurrentControlSet\Control\VirtualDeviceDrivers"
$KeyNam = "VDD"
$KeyVal = ""
$RC = WriteValue($Keyloc,$KeyNam,$KeyVal,"REG_MULTI_SZ")
EndIf
EndIf
_________________________
WonderBoy
Constantly learning everyday, how much I dont know :-)