您的位置:首页 > 其它

根据注册表获取软件安装路径

2013-08-06 15:05 453 查看
//get the path from the registry
RegistryKey key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\xx");
string path = Convert.ToString(key.GetValue("InstallDir"));

m_shapefileName = System.IO.Path.Combine(path, @"\bin\xx.exe");


 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: