/build/static/layout/Breadcrumb_cap_w.png

Uninstalling Google Earth

We have a problem where I work with a ton of people having Google Earth installed on their workstations. I have been tasked with create a package/script to uninstall this application. The problem I am running it to is the UninstallString from the registry is this.

RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\10\01\Intel32\Ctor.dll,LaunchSetup "C:\program files\InstallShield Installation Information\{3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}\setup.exe" -l0x9 -removeonly

This command works fine except that it prompts the user if they are sure they want to completely uninstall Google Earth. I have been trying and trying to figure out other command line options to use that would make the uninstall silent. Does anyone have any ideas on how to get this to uninstall silently?

I have tired changing or add the following to the end of the uninstallstring.

-remove
-removeall
-removeonly -s
-removeonly -q
-removeonly -y

Any help is greatly appreciated. Thanks.


0 Comments   [ + ] Show comments

Answers (10)

Posted by: rpfenninger 19 years ago
Second Degree Green Belt
1
Hi Rey

Have you ever worked with AutoIt?
This is a different kind of solution however we use it sometimes to automate tasks like this.
You can write a very easy script (like one or two rows only) then compile the script to an selfexecuting .exe file which you can execute before you try to uninstall GoogleEarth.
It then puts an icon into the system tray (only temporary) which waits for the dialog box you told us and it then automatically confirms it the way you want it. And it does it so fast the user will not even notice what has happened.
Check the following link for more details or even send me a screen shot of your dialog box and I can create such a script for you.

http://www.autoitscript.com/autoit3/index.php

Greets
Roland
Posted by: turbokitty 19 years ago
6th Degree Black Belt
0
I, like you, try the DB on this site and then the forum.. but in case you don't get anywhere here.. have you sent an email to Google support?

I always put in a call or an email to the vendor as well if I run into a problem. That way if you hit a wall, you've already got the wheels in motion on the vendor side... as they can be slow getting back. I find Packagers don't call the vendor enough. I'm often very successful in getting silent install packages or packaging info from vendors.

And as this was built with InstallShield, you might want to post up on their forum as well. Sometimes you'll get a response from a IS employee.
http://community.installshield.com/forumdisplay.php?f=1

How's that for offering zero help whatsoever? I'll stop typing now.

[:)]
Posted by: ab2cv 19 years ago
Orange Senior Belt
0
Good tip Roland - I've came across situations where that would have been extremely useful - I'll need to file this one away somewhere and try it out the next time I have a similar situation again.

Alan
Posted by: calis 19 years ago
Senior Yellow Belt
0
Hi, I always prefer the command line option for uninstalls where possible but if it becomes an impossbile task I build an uninstall package with software like Altiris RapidInstall etc and just rip it out. Generally requires more tweeking though. [:@]

Calis
Posted by: mrachul 19 years ago
Senior Yellow Belt
0
Just curious if anybody found a solution for this yet? I am having the same problem with uninstalling Google Earth. It seems the /S command doesn't understand the prompt about "Am I sure I want to uninstall".
Posted by: Simon_H 18 years ago
Yellow Belt
0
OK, managed to solve this by using the following batch file

@echo off
CLS
if exist "%USERPROFILE%\Application Data\Google\Google Earth\GoogleEarth.exe" GOTO FOUNDINPROFILE

GOTO CHECKPROGFILES

:FOUNDINPROFILE
echo Found In Profile !

REM Set FOUND var to Yes
SET FoundG_Earth=Yes

echo Copying ISS file to %USERPROFILE%
COPY "\\SERVER\NETLOGON\GE_Remove\GEProf.iss" "%USERPROFILE%"

echo Executing Uninstall
"%USERPROFILE%\Application Data\InstallShield Installation Information\{3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}\setup.exe" /uninstall /sms /s /f1"%USERPROFILE%\GEProf.iss"

echo Cleaning Up
DEL "%USERPROFILE%\GEProf.iss"

:CHECKPROGFILES
IF EXIST "C:\Program Files\Google\Google Earth\GoogleEarth.exe" GOTO FOUNDINPROGFILES

GOTO CHECKIFFOUND

:FOUNDINPROGFILES
echo Found in Program Files !

REM Set FOUND var to Yes
SET FoundG_Earth=Yes

echo Copying ISS file to %USERPROFILE%
COPY "\\SERVER\NETLOGON\GE_Remove\GEProg.iss" "%USERPROFILE%"

echo Executing Uninstall
"C:\Program Files\InstallShield Installation Information\{3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}\setup.exe" /uninstall /sms /s /f1"%USERPROFILE%\GEProg.iss"

echo Cleaning Up
DEL "%USERPROFILE%\GEProg.iss"

:CHECKIFFOUND
IF "%FoundG_Earth%" == "Yes" GOTO FOUND

GOTO EXIT

:FOUND
for /F "tokens=1-8 delims=/ " %%f in ('date /t') do (

set dd=%%f
set mm=%%g
set yyyy=%%h
)

set date="%dd%-%mm%-%yyyy%"
echo Found and Removed Google Earth From This PC (%COMPUTERNAME%) on %DATE% > "\\SERVER\inventory$\GoogleEarthRemove\%COMPUTERNAME%.%USERNAME%.%date%.log"
START iexplore.exe "http://intranet/IT/messages/GoogleEarth.php"

:EXIT
echo Finished !


The problem with GoogleEarth is that it installs in different places, depending on whether you have local admin right or not. Before deploying the script, I had to "record" (setup.exe /r /uninstall /s /sms /f1C:\Path\To\Create\ISS\File.iss) an uninstall for each type of install: admin or non-admin. I then run a silent uninstall using the relevant .iss file for that type of install.

The last section (:FOUND) logs the uninstall to a text file and opens a web page I setup on our intranet explaining what had happened, and why, showing a copy of the GoogleEarth license file, with the "personal use" section highlighted.

Hope his helps someone !
Posted by: MarlboroMan 18 years ago
Senior Yellow Belt
0
This works good for uninstalling Google Earth.

What would be nice is if we could get the samething to work with Google Desktop Search!

I am still having fits trying to get this off of all of my PCs.

What would be nice is if I could figure out a way not to only get it off the PCs, but figure out a way to block them from installing it again.
Posted by: Simon_H 18 years ago
Yellow Belt
0
Hmmmm. Not sure about Desktop Search, I haven't discovered it on any PC's yet, but if I do and subsequently discover a way to remove it, I'll be sure to post it.

As far as blocking them from installing it, all you can do is try to make it difficult. I've used GPO's to block GoogleEarth.exe from being run, which prevents them from running the setup file and starting up the application. Unfortunately all they need to do is rename the executable to get around it, but it's a start (just thought - that could affect the scripts detection method too - will find another file to check for !) The intranet page specified in the batch file explains why it has been removed, and asks the employee not to expose the company to any legal problems by reinstalling it. It also suggests they try http://maps.google.co.uk instead. I suppose ultimately, HR and IT Policies are the only way to enforce it, making sure that it's a disciplinable offence to install any unauthorised software. You could also block the downloading of executables and zip files via your proxy, if it supports it.

At the end of the day, I have the script run on every login, and all PC's are forcefully shut down each night. This should mean that any users will only get a days worth of use out of it before it's removed again, and would hopefully get sick of the hassle. I think it's quite irresponsible of Google to make an application that installs without admin rights, and could potentially get a company into trouble . . . and there was me thinking they could "Do No Evil". lol.
Posted by: Simon_H 18 years ago
Yellow Belt
0
Hello,
When google Earth installed on %Programfiles%\Google
the Silent Uninstall as Admin its works, it get a Response File and I can Uninstall GE

When google Earth installed on %USERPROFILE%\Google
I tray to make a Response File:
SART--> Run -->
%USERPROFILE%\Application Data\InstallShield Installation Information\{3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}\setup.exe /r
---------------------------------------
the Response File:
[InstallShield Silent]
Version=v7.00
File=Response File
[File Transfer]
OverwrittenReadOnly=NoToAll
[{3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-DlgOrder]
Dlg0={3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-SdWelcome-0
Count=6
Dlg1={3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-SdLicense2Rtf-0
Dlg2={3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-SetupType2-0
Dlg3={3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-SdStartCopy2-0
Dlg4={3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-AskOptions-0
Dlg5={3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-SdFinish-0
[{3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-SdWelcome-0]
Result=1
[{3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-SdLicense2Rtf-0]
Result=1
[{3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-SetupType2-0]
Result=303
[{3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-SdStartCopy2-0]
Result=0
[Application]
Name=Google Earth
Version=3.0.0553
Company=Google
Lang=0009
[{3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-AskOptions-0]
Result=0
Sel-0=1
[{3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}-SdFinish-0]
Result=1
bOpt1=0
bOpt2=0
---------------------------------------------------------------------


Problem: our Clint do not have permission to uninstall this Prduckt
I cant Uninstall as Silent:
%USERPROFILE%\Application Data\InstallShield Installation Information\{3DE5E7D4-7B88-403C-A3FD-2017A8240C5B}\setup.exe /s /uninstall /sms/ f1

can you help?


They shouldn't need admin rights to uninstall, just like they didn't need admin rights to install it in the first place.

The uninstall just worked for me on PC's without admin rights, so I'm not sure I can really help.

Have you actually tried it ? Did you get an error message ? Have you tried uninstalling in a non-silent manner ?
Posted by: wcollege 11 years ago
White Belt
0

Hello All,

Thanks for being productive creating a silent uninstall of Google earth. The way that worked for me uninstalling Google earth 7.1.2 silent was using the following command:

msiexec.exe /X{4D2A6330-2F8B-11E3-9C40-B8AC6F97B88E} /quiet /passive

I got this code from running the googleearth installer and before it gets done, I went to %Temp% and the code appears for few seconds and then it gone. so make sure be ready to copy the code right away.

Let me know if you have any question.

 

-JM

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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