It's not recommend to use full paths since they can differ on other systems. However, this is how you should do it that way:
code:var WSH = new ActiveXObject('WScript.Shell');
wmpAppName = WSH.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Keyboard\Native Media Players\WMP\AppName");