Install Google Chrome via DSC

Download the MSI from here.

Package GoogleChrome
{
    Ensure = "Present"
    Name = "Google Chrome"
    Path = 'C:\Software\GoogleChrome\googlechromestandaloneenterprise64.msi'
    ProductId = '83F2CE66-1F17-38DE-83BD-1BAD39009FB6'
    Arguments = '/qn /norestart'
}

Personally I dislike the shortcut that’s added to the desktop for all users.  Thankfully DSC can do something about this for me too…

File GoogleChrome-DesktopShortcut
{
    Ensure = 'Absent'
    DestinationPath = "$env:PUBLIC\Desktop\Google Chrome.lnk"
    DependsOn = "[Package]GoogleChrome"
}

A second dislike is the fact Chrome is pinned to all users taskbar. Once again DSC to the rescue…

Registry GoogleChrome-TaskbarPinning
{
    Ensure = 'Absent'
    Key = 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}'
    ValueName = ''
    DependsOn = "[Package]GoogleChrome"
}
Advertisements
Install Google Chrome via DSC

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s