I'm trying to get the Windows ProductId
from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
but it returns null
, but ProductName
does return the correct value. I am thinking Windows has some kind of protection or that it's not being ran as an administrator?
If the latter, can someone tell me how to run my application with administrative privileges IN Java ?
I don't need suggestions like 'use this program to get the key', please just answer my question.
Thanks in advance,
Rick.