I use following way to get file version of Control Panel.
var searcher = new System.Management.ManagementObjectSearcher(
"SELECT * FROM Win32_Product where Name ='My Application'");
foreach (System.Management.ManagementObject obj in searcher.Get())
{
MessageBox.Show("Latest Verstion: " + obj["Version"].toString());
}
This takes around 10 seconds to find the version. Can anybody suggest me faster way to get file version of Control Panel file?
Note: If I change query SELECT Version FROM Win32_Product where Name ='My Application'
, it takes same time.