I've been googling around around and read this article 

[C# How to get SQL Server installation path programatically?](https://stackoverflow.com/questions/1165576/c-sharp-how-to-get-sql-server-installation-path-programatically)

and this is exactly what i need in VB.NET , however i'm not good in translating this code into VB.NET Code. So, any help would greatly appreciated. Thank you. 

Note : I'm using SQL Server 2005 and Visual Basic 2008