Precache Google Chrome via BESDownloadCacher (Windows Root Server)
Log In or Register to download the BES file, and more.

0 Votes

Description

This Task downloads the BESDownloadCacher.exe utility on a Windows Root Server, and then uses BESDownloadCacher to download and pre-cache the current x32 and x64 versions of Chrome hosted by Google.

When Google releases a new version of Chrome, the download binaries are updated at a set of fixed download URLs, which makes any prior version of Google Chrome Fixlets fail the downloads when the new versions do not match the expected hashes of the old versions of Chrome defined in the Fixlet.

By pre-cachiing the Google Chrome installer binaries onto the Root server, we can avoid this issue and allow older Chrome Fixlets to update clients using the cached versions.

Because Google updates Chrome frequently, it is useful to check for new Chrome downloads several times daily; i.e. configure action to 'Reapply while relevant, waiting 6 hours between reapplications'


Property Details

ID27014
StatusAlpha - Code that was just developed
TitlePrecache Google Chrome via BESDownloadCacher (Windows Root Server)
DomainBESC
SourceInternal
Source Release Date12/7/2023 12:00:00 AM
KeywordsGoogle, Chrome, Root, Cache, Download
Is TaskTrue
Added by on 12/7/2023 8:09:34 AM
Last Modified by on 12/7/2023 8:09:34 AM
Counters 385 Views / 6 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 106 fixlets and 5 analyses   * Results in a true/false
Show indented relevance
exists main gather service
isWindows (Relevance 1172)
Used in 1152 fixlets and 540 analyses   * Results in a true/false
Show indented relevance
windows of operating system

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
begin prefetch block
// Download BESDownloadCacher.exe, if 5.8.1.0 or higher is not already present on the machine
if {not exists file "BESDownloadCacher.exe" whose (version of it >= version "5.8.1.0") of folders "BESDownloadCacher" of parent folder of parent folder of client folder of site "actionsite"}
add prefetch item name=BESDownloadCacher.exe size=3223638 sha1=62fccabe7aeb4bfa6ca2d41d9c5c313c4fea2cba url=https://software.bigfix.com/download/bes/util/BESDownloadCacher-5.8.1.0.exe sha256=4f05e6f7fe1e79ee9e8a868301876926dc5eb954d9e7162f1ef071bfae94a46e
endif
end prefetch block

// Move BESDownloadCacher.exe to "BES Client\BESDownloadCacher\BESDownloadCacher.exe", if 5.8.1.0 or newer is not already there
if {not exists file "BESDownloadCacher.exe" whose (version of it >= version "5.8.1.0") of folders "BESDownloadCacher" of parent folder of parent folder of client folder of site "actionsite"}
folder create "{pathname of parent folder of parent folder of client folder of site "actionsite"}\BESDownloadCacher"
delete "{pathname of parent folder of parent folder of client folder of site "actionsite"}\BESDownloadCacher\BESDownloadCacher.exe"
move __Download\BESDownloadCacher.exe "{pathname of parent folder of parent folder of client folder of site "actionsite"}\BESDownloadCacher\BESDownloadCacher.exe"
endif

// Delete prior versions of the BESDownloadCacher log file. Otherwise the log will continue to grow each time the task is run.
delete "{pathname of parent folder of parent folder of client folder of site "actionsite"}\BESDownloadCacher\BESDownloadCacher.log"

// Use BESDownloadCacher to download & precache the current versions of Chrome, logging output to 'BES Client\BESDownloadCacher\
// chrome x64:
waithidden "{pathname of parent folder of parent folder of client folder of site "actionsite"}\BESDownloadCacher\BESDownloadCacher.exe" -l -u https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B03FE9563-80F9-119F-DA3D-72FBBB94BC26%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable%26brand=GCEA/dl/chrome/install/googlechromestandaloneenterprise64.msi

// chrome x32:
waithidden "{pathname of parent folder of parent folder of client folder of site "actionsite"}\BESDownloadCacher\BESDownloadCacher.exe" -l -u https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B03FE9563-80F9-119F-DA3D-72FBBB94BC26%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable%26brand=GCEA/dl/chrome/install/googlechromestandaloneenterprise.msi
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!