</source>
== Per-user Installation ==
This is a silent installer and uninstaller for Google Chrome. This will install Google Chrome '''only for the user running WPKG'''.
Normally, Google Chrome installs per-user. To install it system-wide into the %PROGRAMFILES% directory, use the chrome_installer.exe installer and the --system-level option. 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 install silently, you can get a version of it that will install system-wide. To get this, download the regular version of ChromeStandaloneSetup.exe. Make a note of the URL of the file. This URL will include the string 'needadmin%3Dfalse'. Replace 'needadmin%3Dfalse' with 'needadmin%3Dtrue' and download again from this modified URL. This will give you an installer for system-wide installation.
<source lang="xml">
<package
id="chrome"
name="Google Chrome"
revision="18"
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>
</source>
==Disabling Updates==