You might have to do something like this:
Code:
Dim RegPermission As New RegistryPermission(RegistryPermissionAccess.AllAccess, "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\EverQuest2.exe")
RegPermission.Assert()
Dim RegEQ2dir As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\EverQuest2.exe", False)
Dim PossibleEQ2dir As String = RegEQ2dir.GetValue("Path").ToString
RegPermission.RevertAssert()
But I'm not sure the syntax is perfect cause I'm used to the C languages
:edit: I would think that isn't needed if UAC is disabled and app is run as administrator but you never know..