How to Read DWORD from registry in VB.Net I tired below code
Dim rk As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows NT\CurrentVersion", False)
Dim registryValue As Int32 = CInt(rk.GetValue("InstallDate", Microsoft.Win32.RegistryValueKind.DWord))
But it always returns 0.