Changes

Google earth

1,360 bytes removed, 03:57, 1 May 2009
Updated for version 5.x
This is a silent installer and uninstaller for Google Earth.
== New InstallShield, verified Version 5.x == Current Download: http://dl.google.com/earth/client/GE5/release_5_0/GoogleEarth-Win-Plus-5.0.11337.1968.exe First start the install manually and get the contents of the Folder with version "google earth.msi" from your local Temp directory and store this to your packages/googleearth directory. <source lang="xml"><package id="googleearth" name="Google Earth" revision="1" reboot="false" priority="10">  <check type="uninstall" condition="exists" path="Google Earth" /> <install cmd='%COMSPEC% /C "md %SystemDrive%\netinst\logs\"' > <!-- install fails if log dir doesn't exist --> <exit code="0" /> <exit code="1" /> <!-- directory already exists --> </install <install cmd='msiexec /qb /l* %SystemDrive%\netinst\logs\googleearth.txt /i "%SOFTWARE%\googleearth\google earth.msi" ALLUSERS=1' /> <upgrade cmd='msiexec /qb /l* %SystemDrive%\netinst\logs\googleearth.txt /i "%SOFTWARE%\googleearth\google earth.msi" ALLUSERS=1' /> <remove cmd='MsiExec.exe /qb /x {548EAC70-EE00-11DD-908C-005056806466}' > <!-- For other versions check out the line beginning "ProductCode=" from Setup.ini in same directory as google earth.msi. --> <exit code="0" /> <exit code="1605" reboot="true" /> </remove></package></source> == Version 4.2.198.2451 ==
I used the following commands:
This will put the shortcut in the all users profile
 
 
== Install shield installation ==
 
This is a silent installer for Google Earth. Since it uses an InstallShield installer, you have to create a response file to have a silent installer. Record it by running the installer from the command line with the -r flag (GoogleEarth.exe -r). Unless specified, the responce file will be called setup.iss and be put in the Windows folder. Copy it to your WPKG server and correct any permissions so that it's readable by everyone (chmod to 444). Another thing to keep in mind is that the silent installer will try to write a log. It's usefull to write the log locally so you can debug each machine if necessary.
<br>
Flags for the install command:<br>
*-f1\\path\to\setup.iss - notice there is no space between -f1 and \\path
*-f2C:\path\to\file.log - once again. no space between the flag and the path. should be written locally for debugging purposes.
 
<source lang="xml">
<package
id="google-earth"
name="Google Earth 3.0.762.0"
revision="3"
reboot="false"
priority="12">
<check type="uninstall" condition="exists" path="Google Earth" />
<install cmd="%SOFTWARE%\google-earth\GoogleEarth.exe -s -f1%SOFTWARE%\google-earth\setup.iss -f2C:\Logs\google-earth.log" />
</package>
</source>
 
As recording setup.iss didn't work I found the following solution. First start the install manually and get the contents of the Folder with "google earth.msi" from your local Temp directory and store this to your packages/googleearth directory.
 
<source lang="xml">
<package
id="googleearth"
name="Google Earth"
revision="1"
reboot="false"
priority="10">
 
<check type="uninstall" condition="exists" path="Google Earth" />
<install cmd='%COMSPEC% /C "md %SystemDrive%\netinst\logs\"' > <!-- install fails if log dir doesn't exist -->
<exit code="0" />
<exit code="1" /> <!-- directory already exists -->
</install
<install cmd='msiexec /qb /l* %SystemDrive%\netinst\logs\googleearth.txt /i "%SOFTWARE%\googleearth\google earth.msi" ALLUSERS=1' />
<upgrade cmd='msiexec /qb /l* %SystemDrive%\netinst\logs\googleearth.txt /i "%SOFTWARE%\googleearth\google earth.msi" ALLUSERS=1' />
 
<!-- googleearth version 4.3.7284.3916, use {1D14373E-7970-4F2F-A467-ACA4F0EA21E3} in remove command below.
For other versions check out the line beginning "ProductCode=" from Setup.ini in same directory as google earth.msi.
-->
<remove cmd='MsiExec.exe /qb /x {1E04F83B-2AB9-4301-9EF7-E86307F79C72}' >
<exit code="0" />
<exit code="1605" reboot="true" />
</remove>
 
</package>
</source>
[[Category:Silent Installers]]
117
edits