Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome 如何使用Inno安装程序检查Windows计算机上是否安装了Google Chrome_Google Chrome_Inno Setup - Fatal编程技术网

Google chrome 如何使用Inno安装程序检查Windows计算机上是否安装了Google Chrome

Google chrome 如何使用Inno安装程序检查Windows计算机上是否安装了Google Chrome,google-chrome,inno-setup,Google Chrome,Inno Setup,我正在开发一个使用Inno安装程序的安装程序,我需要找到机器上是否安装了Google Chrome 我找到的答案表明我可以在注册表中的以下路径进行检查 HKEY\ U当前\用户\软件\ Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome 但这并没有解决我的问题。我的注册表中没有此路径 有人能帮我吗?这将有助于: (Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\

我正在开发一个使用Inno安装程序的安装程序,我需要找到机器上是否安装了Google Chrome

我找到的答案表明我可以在注册表中的以下路径进行检查

HKEY\ U当前\用户\软件\ Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome

但这并没有解决我的问题。我的注册表中没有此路径

有人能帮我吗?

这将有助于:

(Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(Default)').VersionInfo

我知道这是一条古老的线索,但是,根据Walt的答案,我提出了完整的解决方案:

$chromeInstalled = (Get-Item (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe').'(Default)').VersionInfo

if ($chromeInstalled.FileName -eq $null) {
Write-Host "Chrome is not installed"}
else {
Write-Host "chrome is installed"
}

你查过了吗?我现在查过问题,所有的问题都解决了。再次感谢!:)是的,您使用上一个答案中的布尔值。。这个答案与之前的答案有什么不同?唯一不同的是,最初的答案给出了一个起点。我最后做的是扩展答案,为最初的问题提供解决方案。是的,写作主持人不是问题的一部分。。这只是为你和你的用例写的。。你的答案与上一个答案没有什么不同。