For 32-bit and 64-bit Machines, registry path:
HKLM\SOFTWARE\Microsoft\Internet Explorer\Version
For Windows 8:
HKLM\SOFTWARE\Microsoft\Internet Explorer\svcVersion
Method to retrieve version programmatically:
1
2
3
4
5
| private static void GetIEVersion() { RegistryKey regKey = Registry.LocalMachine; Console.WriteLine( "ie-" + regKey.OpenSubKey( @"SOFTWARE\Microsoft\Internet Explorer" ).GetValue( "Version" )); //For Windows 8 the key name is 'svcVersion' } |
Firefox:
For 32-bit machine:
HKLM\SOFTWARE\Mozilla\Mozilla Firefox\CurrentVersion
For 64-bit machine:
HKLM\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox\CurrentVersion
Method to retrieve version programmatically:
1
2
3
4
5
6
7
8
9
| private static void GetFirefoxVersion() { string wowNode = string .Empty; if (Environment.Is64BitOperatingSystem) wowNode = @"Wow6432Node\" ; RegistryKey regKey = Registry.LocalMachine; Console.WriteLine( "firefox-" + regKey.OpenSubKey( @"Software\" + wowNode + @"Mozilla\Mozilla Firefox" ) .GetValue( "CurrentVersion" )); } |
For 32-bit machines:
HKLM\SOFTWARE\Google\Update\Clients
For 64-bit machines:
HKLM\SOFTWARE\Wow6432Node\Google\Update\Clients
Hiç yorum yok:
Yorum Gönder