Hey everyone, I'm trying to uninstall all versions of Google Chrome from my system. I've noticed that I have both 32-bit and 64-bit versions installed in the "C:Program Files (x86)GoogleApplication" folder. We're using Heimdal to manage our installations, but I can't uninstall the 32-bit version with it. I really need to switch to the 64-bit version using the MSI file "googlechromestandaloneenterprise64". I've been using Intune for this but I've hit a roadblock. Any tips or scripts that could help me uninstall all versions effectively?
6 Answers
I noticed you have the same post under different titles. Just a heads up! You might want to consolidate your questions for better feedback.
You can use PowerShell to automate this process. Try this: `get-package -Name *google*chrome* | ForEach-Object {Uninstall-Package $_}`. It should find and uninstall any Chrome installations for you!
It sounds like you're mixing up your installations a little. Just so you know, if there's an x86 folder, that means you're working on a 64-bit system, and anything in there should be the 32-bit program. Make sure you’re checking the right directory for your Chrome versions!
You can try this script to locate and uninstall Chrome: `# Define the name of the program to search for
$programName = "Chrome";
$installedPrograms = Get-WmiObject -Query "SELECT * FROM Win32_Product WHERE Name LIKE '%$programName%'";
if ($installedPrograms) {foreach ($program in $installedPrograms) {Write-Output "Found: $($program.Name)"; Write-Output "MSI Install Code: $($program.IdentifyingNumber)"; $program.uninstall();}} else {Write-Output "Program '$programName' not found."}`. This could help you identify and remove all versions!
Does the version installed by Heimdal show up in "Add or Remove Programs"? If it's a portable version, that might complicate things, so check that first.
Check this GitHub link I have on SCCM installs and uninstalls. The scripts are pretty flexible; you just need to tweak a few variables at the top. They might work for you as well! [GitHub Repo](https://github.com/dromatriptan/ApplicationPackaging)
We actually use something similar in our monthly Chrome package with PSADT for uninstalls. It works like a charm!