Difference between revisions of "Google earth"
(modify msi based install to create icons for all users, create log directory before install, and update remove command.) |
(Updated for version 5.x) |
||
Line 1: | Line 1: | ||
This is a silent installer and uninstaller for Google Earth. | This is a silent installer and uninstaller for Google Earth. | ||
− | == | + | == 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 "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: | I used the following commands: | ||
Line 45: | Line 76: | ||
This will put the shortcut in the all users profile | This will put the shortcut in the all users profile | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Silent Installers]] | [[Category:Silent Installers]] |
Revision as of 03:57, 1 May 2009
This is a silent installer and uninstaller for Google Earth.
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 "google earth.msi" from your local Temp directory and store this to your packages/googleearth directory.
<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>
Version 4.2.198.2451
I used the following commands:
<?xml version="1.0" encoding="utf-8" ?>
<packages>
<package id='GoogleEarth' name='Google Earth' revision='421982451' priority='50' reboot='true' >
<!-- Google Earth -->
<check type='uninstall' condition='exists' path='Google Earth' />
<install cmd='"%SOFTWARE%\Google Earth v.4.2.198.2451\Google_Earth_BZXD.exe" /S /v/qn' />
<install cmd='"%SOFTWARE%\Google Earth v.4.2.198.2451\postinstall.cmd"' />
<remove cmd='msiexec.exe /qn /x{407B9B5C-DAC5-4F44-A756-B57CAB4E6A8B}' />
<upgrade cmd='"%SOFTWARE%\Google Earth v.4.2.198.2451\Google_Earth_BZXD.exe" /S /v/qn' />
<upgrade cmd='"%SOFTWARE%\Google Earth v.4.2.198.2451\postinstall.cmd"' />
<depends package-id='shortcut' />
</package>
</packages>
While using the following postinstall.cmd:
@echo off
echo Create shortcut
set PRGPATH="%ALLUSERSPROFILE%"
Shortcut.exe "/f:%ALLUSERSPROFILE%\StartmenÂ\Programme\Google Earth.lnk" /a:c /t:^%%ProgramFiles^%%"\Google\Google Earth\googleearth.exe" /w:^%%ProgramFiles^%%"\Google\Google Earth"
Shortcut.exe "/f:%ALLUSERSPROFILE%\Start Menu\Programs\Google Earth.lnk" /a:c /t:^%%ProgramFiles^%%"\Google\Google Earth\googleearth.exe" /w:^%%ProgramFiles^%%"\Google\Google Earth"
REM exit 0
This will create the shourtcuts within the all users profile since google earth will install them only to the current user. So in case you run WPKG using WPKG-Client it installs it to the SYSTEM user start menu only and the icons will never appear somewhere.
NOTE: For this to work you need the shortcut.exe tool.
NOTE: For version ending with BZXD you can use the command
Google_Earth_BZXD.exe /S /v"/qb ALLUSERS=2"
This will put the shortcut in the all users profile