Difference between revisions of "Google earth"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(alternate install package)
Line 1: Line 1:
 +
== New InstallShield, verified with version 4.2.198.2451 ==
 +
 +
I used the following commangs:
 +
<pre>
 +
<?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>
 +
</pre>
 +
 +
While using the following postinstall.cmd:
 +
<pre>
 +
@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
 +
</pre>
 +
 +
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.
 +
 +
 +
== 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.
 
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>
 
<br>

Revision as of 22:43, 6 November 2007

New InstallShield, verified with version 4.2.198.2451

I used the following commangs:

<?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.


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.
Flags for the install command:
-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.

<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>

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.

<package
      id="googleearth"
      name="Google Earth"
      revision="1"
      reboot="false"
      priority="100">

        <check type="uninstall" condition="exists" path="Google Earth" />

        <install cmd='msiexec /qb /l* %SystemDrive%\netinst\logs\googleearth.txt /i "%SOFTWARE%\googleearth\google earth.msi"' />
        <upgrade cmd='msiexec /qb /l* %SystemDrive%\netinst\logs\googleearth.txt /i "%SOFTWARE%\googleearth\google earth.msi"' />

        <remove cmd='MsiExec.exe /qb /x {1E04F83B-2AB9-4301-9EF7-E86307F79C72}' >
          <exit code="0" />
          <exit code="1605" reboot="true" />
        </remove>

    </package>