Difference between revisions of "Google Chrome"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Update to 15.0.874.120)
Line 11: Line 11:
 
<source lang="xml">
 
<source lang="xml">
 
  <package id="chrome" name="Google Chrome 15" revision="%version%" priority="20" reboot="false">
 
  <package id="chrome" name="Google Chrome 15" revision="%version%" priority="20" reboot="false">
         <variable name="version" value="15.0.874.106" />
+
         <variable name="version" value="15.0.874.120" />
 
         <check type="uninstall" condition="exists" path="Google Chrome" />
 
         <check type="uninstall" condition="exists" path="Google Chrome" />
 
         <check type="logical" condition="or">
 
         <check type="logical" condition="or">

Revision as of 22:21, 10 November 2011

System wide Installation

Normally, Google Chrome installs per-user. To install it system-level into the %PROGRAMFILES% directory, use the chrome_installer.exe installer and the --system-level option. Please note that the regular Chrome standalone installer (ChromeStandaloneSetup.exe) does not seem to accept any command-line switches and can't be made to install silently.

Interesting side note: even though you can't make ChromeStandaloneSetup.exe to install silently, you can get a version of it that will install systemwide. To get this, first download the regular version of the ChromeStandaloneSetup.exe . Make a note of the actual URL the file was downloaded from (in Firefox, right-click on the downloaded file and select "copy download link"). This link will include the string "needadmin%3Dfalse". Replace this string with "needadmin%3Dtrue" and download again from this modified URL. This will give you an installer for systemwide installation.

Google Chrome 15

This is a silent installer and uninstaller for Google Chrome with support for 32 and 64 bit systems. You can download the current stable version of Google Chrome as an MSI file at: http://www.google.com/chrome/eula.html?msi=true (GoogleChromeStandaloneEnterprise.msi only available if using a Windows browser for the download!)

 <package id="chrome" name="Google Chrome 15" revision="%version%" priority="20" reboot="false">
        <variable name="version" value="15.0.874.120" />
        <check type="uninstall" condition="exists" path="Google Chrome" />
        <check type="logical" condition="or">
            <check type="file" condition="exists" path="%PROGRAMFILES%\Google\Chrome\Application\11.0.696.57\nacl64.exe" />
            <check type="file" condition="exists" path="%PROGRAMFILES(x86)%\Google\Chrome\Application\11.0.696.57\nacl64.exe" />
        </check>
        <install cmd='msiexec /qn /norestart /i "%SOFTWARE%\chrome\GoogleChromeStandaloneEnterprise.msi"' />
        <upgrade cmd='msiexec /qn /norestart /i "%SOFTWARE%\chrome\GoogleChromeStandaloneEnterprise.msi"' />
        <remove cmd="msiexec /qn /x {54DF35BD-4A36-35DA-B029-A0C083C88614}" />
 </package>

Google Chrome 11

This is a silent installer and uninstaller for Google Chrome with support for 32 and 64 bit systems. You can download the current stable version of Google Chrome as an MSI file at: http://www.google.com/chrome/eula.html?msi=true (GoogleChromeStandaloneEnterprise.msi only available if using a Windows browser for the download!)

<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="google_chrome_11" name="Google Chrome 11" revision="11.0.696.57" priority="20" reboot="false">
        <check type="uninstall" condition="exists" path="Google Chrome" />
        <check type="logical" condition="or">
            <check type="file" condition="exists" path="%PROGRAMFILES%\Google\Chrome\Application\11.0.696.57\nacl64.exe" />
            <check type="file" condition="exists" path="%PROGRAMFILES(x86)%\Google\Chrome\Application\11.0.696.57\nacl64.exe" />
        </check>
        <install cmd='msiexec /qn /norestart /i "%SOFTWARE%\chrome\GoogleChromeStandaloneEnterprise.msi"' />
        <upgrade cmd='msiexec /qn /norestart /i "%SOFTWARE%\chrome\GoogleChromeStandaloneEnterprise.msi"' />
        <remove cmd="msiexec /qn /x {54DF35BD-4A36-35DA-B029-A0C083C88614}" />
    </package>
</packages>

Google Chrome 10

http://dl.google.com/chrome/install/648.205/chrome_installer.exe

<?xml version="1.0" encoding="UTF-8"?>

<packages>
   <package id="google_chrome" name="Google Chrome" revision="10.0.648.205" reboot="false" priority="2" >
    <check type="uninstall" condition="exists" path="Google Chrome"/>
    <check type="file" condition="exists" path="%PROGRAMFILES%\Google\Chrome\Application\10.0.648.205\nacl64.exe" />

    <install cmd='%SOFTWARE%\google_chrome\chrome_installer.exe --system-level --do-not-launch-chrome'/>
    <upgrade cmd='%SOFTWARE%\google_chrome\chrome_installer.exe --system-level --do-not-launch-chrome'/>
    <remove cmd='%SOFTWARE%\google_chrome\chrome_installer.exe --uninstall --force-uninstall --system-level'/>

   </package>
</packages>

Google Chrome 9

You can download the current stable version of Google Chrome as an MSI file at: http://www.google.com/chrome/eula.html?msi=true (GoogleChromeStandaloneEnterprise.msi)

<?xml version="1.0" encoding="UTF-8"?>
<packages>

  <package id="google_chrome" name="Google Chrome 9" revision="9.2.21854" reboot="false" priority="20">
    <check type="uninstall" condition="exists" path="Google Chrome"/>
    <check type="file" condition="exists" path="%PROGRAMFILES%\Google\Chrome\Application\9.0.597.94\nacl64.exe" />
 
    <install cmd='msiexec /qn /norestart /i "%SOFTWARE%\chrome\GoogleChrome.msi"' />
    <upgrade cmd='msiexec /qn /norestart /i "%SOFTWARE%\chrome\GoogleChrome.msi"' />
    <remove  cmd='msiexec /qn /x {54DF35BD-4A36-35DA-B029-A0C083C88614}' />
  </package>

</packages>


Google Chrome 7.0

<?xml version="1.0" encoding="UTF-8"?>

<packages>
   <package id="google_chrome" name="Google Chrome" revision="1" reboot="false" priority="2" >
    <check type="uninstall" condition="exists" path="Google Chrome"/>
    <check type="file" condition="exists" path="%PROGRAMFILES%\Google\Chrome\Application\7.0.517.41\nacl64.exe" />

    <install cmd='%SOFTWARE%\google_chrome\chrome_installer.exe --system-level --do-not-launch-chrome'/>
    <upgrade cmd='%SOFTWARE%\google_chrome\chrome_installer.exe --system-level --do-not-launch-chrome'/>
    <remove cmd='%SOFTWARE%\google_chrome\chrome_installer.exe --uninstall --force-uninstall --system-level'/>

   </package>
</packages>

The URL to download the correct Google Chrome installer is http://dl.google.com/chrome/install/375.70/chrome_installer.exe

Google Chrome 5.0

<?xml version="1.0" encoding="UTF-8"?>

<packages
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >

   <package id="googlechrome" name="Google Chrome" revision="1" reboot="false" priority="2" >
    <check type="uninstall" condition="exists" path="Google Chrome"/>
    <check type="file" condition="exists" path="%PROGRAMFILES%\Google\Chrome\Application\5.0.375.70\nacl64.exe" />

    <install cmd='%SOFTWARE%\google_chrome\chrome_installer.exe --system-level --do-not-launch-chrome'/>
    <upgrade cmd='%SOFTWARE%\google_chrome\chrome_installer.exe --system-level --do-not-launch-chrome'/>
    <remove cmd='%SOFTWARE%\google_chrome\chrome_installer.exe --uninstall --force-uninstall --system-level'/>

   </package>

</packages>

Per-user Installation

This is a silent installer and uninstaller for Google Chrome. This will install Google Chrome only for the user running wpkg.

<package
	id="chrome"
	name="Google Chrome"
	revision="17"
	reboot="postponed"
	priority="5"
	>
	<!--<check type="uninstall" condition="exists" path="Google Chrome" /> This doesn't work for per-user appliations... -->
	<check type="file" condition="exists" path="%USERPROFILE%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" />
	
	<install cmd="%SOFTWARE%\chrome\chrome_installer.exe"/> 
	<install cmd="PING LOCALHOST -n 5"/>
	<install cmd="taskkill /IM chrome.exe">
           <exit code="any"/>
        </install>	
	<install cmd='cmd /c mkdir "%USERPROFILE%\Local Settings\Application Data\Google\Chrome\Application"'>
           <exit code="any"/>
        </install >
        <install cmd='cmd /c echo hello > "%USERPROFILE%\Local Settings\Application Data\Google\Chrome\Application\First Run"'/>

	<upgrade cmd="%SOFTWARE%\chrome\chrome_installer.exe"/> 
	<upgrade cmd="PING LOCALHOST -n 5"/> 
	<upgrade cmd="taskkill /IM chrome.exe">
          <exit code="any"/>
        </upgrade>	

        <!-- CHANGE PATH WHENEVER THERE IS A  NEW VERSION -->
	<remove cmd='"%USERPROFILE%\Local Settings\Application Data\Google\Chrome\Application\1.0.154.59\Installer\setup.exe" --uninstall --force-uninstall'/>
</package>

The offline installer be downloaded from here: http://dl.google.com/chrome/install/375.55/chrome_installer.exe

Google Chrome has another standalone installer that apparently cannot be made to install silently. This installer is called ChromeStandaloneSetup.exe . You can download it http://www.google.com/chrome/eula.html?standalone=1

External Links