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

poo*_*tip 5 google-chrome inno-setup

我正在使用 Inno Setup 开发安装程序,我需要查找计算机中是否安装了 Google Chrome。

我找到的答案说我可以检查注册表中的以下路径,

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome

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

谁能帮我?

小智 6

这将有助于:

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