hmmm... Looks like it might be at least part of my script, but I have this:

$NavHomeDir = READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\INTEL\LANDesk\VirusProtect6\CurrentVersion","Home Directory")

and mine works on all the MS OS versions.