读注册表获取程序安装路径
private static string ExePath
{
get
{
try
{
return Microsoft.Win32
.Registry
.LocalMachine
.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\" + "chrome.exe", false)
.GetValue("")
.ToString();
}
catch (Exception)
{
return string.Empty;
}
}
}
7823

被折叠的 条评论
为什么被折叠?



