View Single Post
  #26  
Unread 11-29-2007, 03:03 AM
Talyns's Avatar
Talyns Talyns is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Everfrost
Posts: 604
Default

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..
__________________
Talyns

Last edited by Talyns : 11-29-2007 at 03:20 AM.
Reply With Quote