Google Chrome allows you to set policies to control the defaults for the installation. You used to be able to just set the registry keys and be done but I guess that was not secure enough. so now you actually need to set the policies. This script installs Google Chrome Enterprise 65.156.32827 and then applies a GPOpack to set the desired local settings.
Uninstalls older MSI Versions of Chrome Enterprise
Sets local policies for Chrome
http://gallery.technet.microsoft.com/LocalGPOmsi-Excellent-MS-2593b2eb
The Chrome ADM extensions can be located here:
http://www.chromium.org/administrators/policy-templates
Once you have installed Chrome on a clean system (no local GPOs) import the ADM files and set the local policies how you want to set them. then export to a GPOPack for easy installation later.
Uninstalls older MSI Versions of Chrome Enterprise
Sets local policies for Chrome
<#
.SYNOPSIS
This script performs the installation or uninstallation of an application(s).
.DESCRIPTION
The script is provided as a template to perform an install or uninstall of an application(s).
The script either performs an "Install" deployment type or an "Uninstall" deployment type.
The install deployment type is broken down in to 3 main sections/phases: Pre-Install, Install, and Post-Install.
The script dot-sources the AppDeployToolkitMain.ps1 script which contains the logic and functions required to install or uninstall an application.
To access the help section,
.EXAMPLE
Deploy-Application.ps1
.EXAMPLE
Deploy-Application.ps1 -DeploymentType "Silent"
.EXAMPLE
Deploy-Application.ps1 -AllowRebootPassThru -AllowDefer
.EXAMPLE
Deploy-Application.ps1 -Uninstall
.PARAMETER DeploymentType
The type of deployment to perform. [Default is "Install"]
.PARAMETER DeployMode
Specifies whether the installation should be run in Interactive, Silent or NonInteractive mode.
Interactive = Default mode
Silent = No dialogs
NonInteractive = Very silent, i.e. no blocking apps. Noninteractive mode is automatically set if an SCCM task sequence or session 0 is detected.
.PARAMETER AllowRebootPassThru
Allows the 3010 return code (requires restart) to be passed back to the parent process (e.g. SCCM) if detected from an installation.
If 3010 is passed back to SCCM a reboot prompt will be triggered.
.NOTES
.LINK
Http://psappdeploytoolkit.codeplex.com
"#>
Param (
[ValidateSet("Install","Uninstall")]
[string] $DeploymentType = "Install",
[ValidateSet("Interactive","Silent","NonInteractive")]
[string] $DeployMode = "Interactive",
[switch] $AllowRebootPassThru = $false
)
#*===============================================
#* VARIABLE DECLARATION
Try {
#*===============================================
#*===============================================
# Variables: Application
$appVendor = "Google"
$appName = "Chrome"
$appVersion = "65.156.32827"
$appArch = ""
$appLang = "EN"
$appRevision = "01"
$appScriptVersion = "1.0.0"
$appScriptDate = "12/02/2013"
$appScriptAuthor = "Joseph Noxon"
#*===============================================
# Variables: Script - Do not modify this section
$deployAppScriptFriendlyName = "Deploy Application"
$deployAppScriptVersion = "3.0.7"
$deployAppScriptDate = "10/24/2013"
$deployAppScriptParameters = $psBoundParameters
# Variables: Environment
$scriptDirectory = Split-Path -Parent $MyInvocation.MyCommand.Definition
# Dot source the App Deploy Toolkit Functions
."$scriptDirectory\AppDeployToolkit\AppDeployToolkitMain.ps1"
#*===============================================
#* END VARIABLE DECLARATION
#*===============================================
#*===============================================
#* PRE-INSTALLATION
If ($deploymentType -ne "uninstall") { $installPhase = "Pre-Installation"
#*===============================================
# Show Welcome Message, close Chrome if required
Show-InstallationWelcome -CloseApps "Chrome" -silent
# Show Progress Message (with the default message)
Show-InstallationProgress
Remove-MSIApplications "Google Chrome"
Remove-MSIApplications "Google Update Helper"
#*===============================================
#* INSTALLATION
$installPhase = "Installation"
#*===============================================
# Perform installation tasks here
Execute-MSI -Action Install -Path "GoogleChromeStandaloneEnterprise.msi"
#*===============================================
#* POST-INSTALLATION
$installPhase = "Post-Installation"
#*===============================================
# Perform post-installation tasks here
New-Item $envWindir\Installer\GoogleSettings -ItemType directory
Copy-Item -Path "$dirSupportFiles\GoogleSettings" -Destination "$envWindir\Installer" -Recurse
Execute-Process -FilePath "$envWindir\System32\cscript.exe" -Arguments "$envWindir\Installer\GoogleSettings\GPOPack.wsf /silent" -WindowStyle Hidden -WorkingDirectory "$envWindir\Installer\GoogleSettings"
#*===============================================
#* UNINSTALLATION
} ElseIf ($deploymentType -eq "uninstall") { $installPhase = "Uninstallation"
#*===============================================
# Show Welcome Message, close Chrome if required
Show-InstallationWelcome -CloseApps "Chrome" -silent
# Show Progress Message (with the default message)
Show-InstallationProgress
# Perform uninstallation tasks here
Execute-MSI -Action Uninstall -Path "{51020C27-7422-3FBE-9480-4CB1CCC8E2CC}"
#*===============================================
#* END SCRIPT BODY
} } Catch {$exceptionMessage = "$($_.Exception.Message) `($($_.ScriptStackTrace)`)"; Write-Log "$exceptionMessage"; Show-DialogBox -Text $exceptionMessage -Icon "Stop"; Exit-Script -ExitCode 1} # Catch any errors in this script
Exit-Script -ExitCode 0 # Otherwise call the Exit-Script function to perform final cleanup operations
#*===============================================
To create the GPO Pack use LocalGPO:http://gallery.technet.microsoft.com/LocalGPOmsi-Excellent-MS-2593b2eb
The Chrome ADM extensions can be located here:
http://www.chromium.org/administrators/policy-templates
Once you have installed Chrome on a clean system (no local GPOs) import the ADM files and set the local policies how you want to set them. then export to a GPOPack for easy installation later.