4
votes

I am developing an installer using Inno Setup and I need to find whether Google Chrome is installed in the machine.

I have found answers that say that I can check at the following path in the registry,

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

But this didn't solve my problem. I don't have this path in my registry.

Can anyone help me?

2
Have you checked this question ? - TLama
I checked the question now and had all my queries solved. Thanks again! :) - poortip

2 Answers

3
votes

This will help:

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

I Know this is an old thread, however, building off of Walt's answer here is the full solution that I came up with:

$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"
}