Difference between revisions of "Google Chrome"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
(Added information on how to do a system-level install)
Line 1: Line 1:
 
This is a silent installer and uninstaller for Google Chrome. This will install Google Chrome '''only for the user running wpkg'''.
 
This is a silent installer and uninstaller for Google Chrome. This will install Google Chrome '''only for the user running wpkg'''.
 +
 +
At least in later versions of Chrome, chrome_installer.exe also accepts a command line switch --system-level that will install Chrome into %PROGRAMFILES% for all users. In this case, the correct uninstall string to be used in the <remove> tag is "%PROGRAMFILES%\Google\Chrome\Application\5.0.375.55\Installer\setup.exe" --uninstall --system-level
  
 
<source lang="xml">
 
<source lang="xml">
Line 33: Line 35:
 
</source>
 
</source>
  
The offline installer be downloaded from here: http://www.google.com/chrome/eula.html?standalone=1
+
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
 +
 
 +
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.
  
 
[[Category:Silent Installers]]
 
[[Category:Silent Installers]]

Revision as of 11:28, 9 July 2010

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

At least in later versions of Chrome, chrome_installer.exe also accepts a command line switch --system-level that will install Chrome into %PROGRAMFILES% for all users. In this case, the correct uninstall string to be used in the <remove> tag is "%PROGRAMFILES%\Google\Chrome\Application\5.0.375.55\Installer\setup.exe" --uninstall --system-level

<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

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.