Hey there!
I'm currently developing a media player program. I just learned some about registry usage. So, and I want to add some easter eggs to my program, for example when you entered some special word into my login screen i want to show current installed MS Office program's version and installation key. I found that this data stored on
HKEYLOCALMACINE\SOFTWARE\Microsoft\Office\x.x\Registration\{blablabla}\ProductName
HKEYLOCALMACINE\SOFTWARE\Microsoft\Office\x.x\Registration\{blablabla}\ProductID
I want to reach Product Name by using this:
Dim officename AsString
My.Computer.Registry.LocalMachine.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0 \Registration\{90120000-0030-0000-0000-0000000FF1CE}", ProductName)
officename = ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0 \Registration\{90120000-0030-0000-0000-0000000FF1CE}", ProductName)
txtOfficeName.Text = officename
But why this won't work? What am I doing wrong?
Thanks,
Hans