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

Comments

Please log in to comment

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

Answers

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.
Answered 05/18/2011 by: airwolf
Tenth Degree Black Belt

Please log in to comment
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
Answered 05/18/2011 by: dchristian
Red Belt

Please log in to comment
0
As airwolf suggests- A batch file containing all possible strings served me well. Might be useful to block the process as well.
Answered 05/19/2011 by: cblake
Red Belt

Please log in to comment
0
Thanks for the help. The batch file worked great.
Answered 05/23/2011 by: tayana
Orange Senior Belt

Please log in to comment
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

-------------------------
Answered 05/30/2011 by: rmeyer
Second Degree Blue Belt

Please log in to comment
0

Have you tried :

 wmic product where "Caption like '%Google Earth%'" call uninstall /nointeractive
Answered 03/19/2014 by: gwir
Third Degree Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity