I need to read the installation path of an application from its associated registry key, which in this case is "HKEY_LOCAL_MACHINE\SOFTWARE\Computers and Structures, Inc.\SAP2000\18\Install path".
I have tried the following:
ProgramPath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Computers and Structures, Inc.\SAP2000\18", "Install path", Nothing)
With the result of Nothing.
Also tried the following:
ProgramPath = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\\Computers and Structures, Inc.\\SAP2000\\18\\Install path", True)
With no success either.
Here is how my registry looks like
What am I doing wrong? Could there be an issue with the blank spaces or special characters (,.) both in the "Computers and Structures, Inc." or in the "Install path"?
Any light on this would be really appreciated. Thanks in advance.