How to uninstall any version Google chrome?
How to uninstall any version Google chrome, there is no uninstall string. how to identify the version and uninstall by path. %APPDATA%\Google\""version""\uninstall
this to create silent uninstall package for any version of Chrome remotely. by using wise package studio
Answers (10)
Give this a try
@echo off
wmic product where "name like 'Google Chrome'" call uninstall /nointeractive
Comments:
-
This is by far the best answer, it uninstalls every version of chrome irregardless of the directory path :) - EricSP 8 years ago
Hi, I have written a script that will uninstall any previous version of Google Chrome. This can be any legacy Google chrome from earliest version to the latest one. This is a VBScript and you are welcome to copy it from my blog here:
http://msiworld.blogspot.com.au/2012/06/packaging-google-chrome-for-enterprise.html
Do post in your comments/appreciation if you like it.
Cheers,
Piyush
Comments:
-
Just wanted to say this works well, thanks - AndyNiel 7 years ago
-
Hi Randy, Can I have copy of this .PS1 ? its been removed from the Chrome help forum.
Thanks - ITNinja_Tech 7 years ago
We had an issue where Chrome was installed on computers in both user and system contexts, but neither was showing up in Add/Remove programs. Because of that, you couldn't get the path from WMIC or the registry.
Also, some of the solutions listed will only work for the current user (anything referencing %appdata% or %localappdata%).
This script searches for the chrome setup.exe in every user profile, in Program Files, and Program Files (x86).
$ChromeInstalls = @(Get-ChildItem "C:\Program Files*\Google\Chrome\Application\*\Installer\setup.exe")
$ChromeInstalls += @(Get-ChildItem "C:\Users\*\AppData\Local\Google\Chrome\Application\*\Installer\setup.exe")
ForEach ($ChromeSetup in $ChromeInstalls) {
Start-Process -FilePath "$ChromeSetup" -ArgumentList "--uninstall --multi-install --chrome --system-level --force-uninstall" -Wait -Passthru
}
Comments:
-
I used this method with PDQ deploy. Uninstalled successfully but Google Chrome is listed in Programs and Features - xyp 2 years ago
I opened up the command Windows (cmd) as an admin then ran this: "C:\Program Files (x86)\Google\Chrome\Application\39.0.2171.71\Installer\setup.exe" --uninstall --multi-install --chrome --system-level
It worked right away. It isn't a silent uninstall but hey it works!! I found this by going into my registry and search for the key word "chrome"
It was found in here: "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome" then I found the DWORD named "UninstallString"
How about this to uninstall? We deploy Chrome with MSI and would not update with a newer version. The application log would have error 1722.
Command line sample for Chrome MSI 32-bit on Windows 7 64-bit:
FOR /F "usebackq tokens=3*" %%A IN (`REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Google\Update\ClientState\{8A69D345-D564-463C-AFF1-A69D9E530F96}" /v UninstallString`) DO ( "%appdir%" --uninstall --multi-install --chrome --system-level --force-uninstall |
Powershell sample for Chrome MSI 32-bit on Windows 7 64-bit:
$key = 'HKLM:\SOFTWARE\Wow6432Node\Google\Update\ClientState\{8A69D345-D564-463C-AFF1-A69D9E530F96}' $uninststr = (Get-ItemProperty -Path $key).UninstallString cmd /c $uninststr --uninstall --multi-install --chrome --system-level --force-uninstall |
Thanks to Piyush's concept with vbscript.
Open registry to this path: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall Search for "Chrome" and find the Uninstall key; eg. msiexec.exe /x {....}
Copy this line and run it in Start>Run or in cmd.exe.
if this was installed via the web, then you will need to find the installer exe in the user profile and run the following command (below example version may vary):
eg. "%userprofile%\Local Settings\Application Data\Google\Chrome\Application\2.0.172.33\Installer\setup.exe" --uninstall --force-uninstall
Comments:
-
Hi Mattski,
Thanks for you answer,
I doing the below one taking installer from User Profile.
Problem here is we have 5000 plus machine, I cant go check Chromeversion in all the machine to uninstall from User Profile. - Karthikvels 11 years ago -
looking for a script which will find Chrome version and auto uninstall from the User Profile - Karthikvels 11 years ago
-
I am looking for the same thing. I am using the K1000 though and need a script to find the version of the actual version (ex. 28.0.1500.95 instead of the .msi install version 65.91.xxxx.xx). Any suggestions on a reg key to target and how to identify Chrome's current version? - J.R. Colby 11 years ago
To silently uninstall any version of Chrome (MSI/setup), installed under user or system context, with admin or non-admin privileges, use a batch file with the following code:
if exist %LOCALAPPDATA%\Google\Chrome\Application\51.0.2704.84\Installer\setup.exe %LOCALAPPDATA%\Google\Chrome\Application\51.0.2704.84\Installer\setup.exe --uninstall --user-level --force-uninstall --verbose-logging
wmic product where "name like 'Google Chrome'" call uninstall /nointeractive > %windir%\Logging\Uninstall_Chrome_Google_vALL_W7_P1.0.log
Make sure the logging path exists on the target system or remove that part form the batch file.
Run reports to find out what versions of Chrome run in your environment, replace the version in the script or add extra lines if needed.