View Code
protected bool checkWinWAR()
{
try {
using (Process unrar = new Process())
{
unrar.StartInfo.FileName = "ProcessName";
if (unrar == null)
{

//提示不存在
return false;
}
}
return true;
}
catch {
return false;
}

}


在上次压缩文件会用到相对应的解压缩文件,会判断是否已安装解压缩软件,上面的方法可以判读是否装有安装

应该还有其他的方法,暂时没有找到

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
相关资源
相似解决方案