Results 1 to 11 of 11

Thread: [2005] retrieving a file path from the registry

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    12

    [2005] retrieving a file path from the registry

    I searched the forums and msdn but especially the last didnt help me much.
    I want a simple retrieval of the installation location of another program. I look up the url and it's: HKEY_CURRENT_USER\Software\FTDv3.7.3

    I tried putting in the RegGetValue() and LONG RegQueryValueEx() but those aren't recognized by VS 2005. Then I searched the forums and found something like this:
    Code:
    Dim thekey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\FTDv3.7.3").GetValue("Standaard")
    MsgBox(thekey)
    but there is a problem with the last part, getvalue isnt correct and the original poster used setvalue but I do not want to set. The error is that i get an empty msgbox.

    I use (Standaard) because that is what the name of the first and only REG_SZ is. But that's dutch for default so I guess I need something else.

    I hope someone is willing to help although you probably think I should search harder, but really cant find the answhere:S.
    Thanks in advance.
    Last edited by sdk1985; May 1st, 2007 at 01:26 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width