/build/static/layout/Breadcrumb_cap_w.png

Google Earth Uninstall

We are planning to remove Google Earth from machines running on our network, but the problem I encountered is there are several versions running. Is there a global uninstall string we could use instead of having to build an uninstall for each version?

0 Comments   [ + ] Show comments

Answers (6)

Posted by: gwir 10 years ago
Second Degree Brown Belt
0

Have you tried :

 wmic product where "Caption like '%Google Earth%'" call uninstall /nointeractive
Posted by: airwolf 13 years ago
Red Belt
0
This is something you'll have to find out for yourself. Look at the uninstall strings for different versions - if they are different then the answer to your question is no.
Posted by: dchristian 13 years ago
Red Belt
0
What i do is run a report to list all the uninstall strings for every version.

Once you have all the strings you can run ALL of them on a machine.

If it has that version, great its uninstalled. If not, no harm no foul.

SELECT DISPLAY_NAME,
DISPLAY_VERSION,
Concat(REPLACE(UNINSTALL_STRING, '/I', '/X'), ' /QN') AS STRING
FROM SOFTWARE
WHERE DISPLAY_NAME LIKE '%Google Earth%'
ORDER BY DISPLAY_NAME,
DISPLAY_VERSION
Posted by: cblake 13 years ago
Red Belt
0
As airwolf suggests- A batch file containing all possible strings served me well. Might be useful to block the process as well.
Posted by: tayana 13 years ago
Purple Belt
0
Thanks for the help. The batch file worked great.
Posted by: rmeyer 13 years ago
Second Degree Blue Belt
0
I created a vbscript to do that =)

It checks for everything in "add remove applications" that contains "iTunes" in this case then do a silent uninstall, you can make a script that runs this if they have the software installed, or make a Software that contains all versions to uninstall =)



---------------------
On Error Resume Next

'**********************************************************************
const AppName = "iTunes"
'**********************************************************************

const HKEY_LOCAL_MACHINE = &H80000002

Set WshShell = WScript.CreateObject("WScript.Shell")

'First, find the GUID
strComputer = "."
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\"&_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys

For Each subkey In arrSubKeys
InstalledAppName = ""
InstalledAppName = WshShell.RegRead("HKLM\" & strKeyPath & "\" & subkey & "\DisplayName")
If InStr(InstalledAppName, AppName) > 0 then
RawGUID = ""
GUID = ""
RawGUID = WshShell.RegRead("HKLM\" & strKeyPath & "\" & subkey & "\UninstallString")
GUID = Mid(RawGUID, instr(RawGUID, "{"), 38)
If GUID<>"" then
' wscript.echo "Found matching GUID, removing..."
WshShell.Run "msiexec /x " & GUID & " /qn", 0, true
Exit For
End If
End If

-------------------------
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ