Hi all,
since I've been waiting too long for this neat little tool to be
updated (can't be that much of an extravagance to change a path!), I
decided to hack myself a little script for the update process. Maybe
it is useful for someone else too, so I decided to publish it here...
CAUTION: The script updates only from the snapshot channel! If you
want to get updates from other channels you have to modify the server
path by yourself.
It's a plain CMD-script (haven't had time nor nerves for a full size
app) with one exception: you'll need wget as a web downloader which
you can find here:
http://gnuwin32.sourceforge.net/packages/wget.htm
If you use WSUS Offline Update (
http://www.wsusoffline.net/) there's
already a copy on your HD in <path to WSUS Offline Update>\bin which
can be used.
As a goodie I included the insertion of pdf.dll (PDF Plugin from
Google Chrome), which can reside anywhere on the HD. It can be copied
from any Chrome installation or extracted from the full installer of
Chrome (which can be found here: <
http://www.google.com/support/
installer/bin/answer.py?answer=126299&&hl=en>). If you don't like/need
that feature, delete the corresponding line in the paths at the
beginning and the last section of the script.
Three paths have to be set in the first lines of the script. Just
replace the #####s with the paths without quotes(") and without
trailing backslashs (\) [IMPORTANT!]:
+ A directory in which the installer will be downloaded to temporarily
+ The directory in which wget resides (e. g. <path to your WSUS
Offline Update>\bin)
+ The directory in which the pdf.dll from Google Chrome resides
OK, here we go:
(Copy the content between the lines below into a text file, name it
<something>.cmd and start it via CMD or by doubleclicking. If you want
it to be run regularly (as Martin's tool did) create a job in Windows
Scheduler to your liking.)
::
------------------------------------------------------------------------------------------------
@echo off
:: Define some DIRs (Temporary path; path to pdf-Plugin; path to wget)
set TempCrDir=#####
set wgetDir=#####
set pdfDllDir=#####
:: Cleaning last update's mess...
if exist "%TempCrDir%\LATEST" del "%TempCrDir%\LATEST"
if exist "%TempCrDir%\mini_installer.exe" del "%TempCrDir%
\mini_installer.exe"
:: Download latest Chromium build number
"%wgetDir%\wget.exe" -q -P "%TempCrDir%"
http://build.chromium.org/f/chromium/snapshots/Win/LATEST
:: Transfer build number to variable CURRENT
set /P CURRENT=< "%TempCrDir%\LATEST"
:: Download latest Chromium build
"%wgetDir%\wget.exe" -P "%TempCrDir%"
http://build.chromium.org/f/chromium/snapshots/Win/%CURRENT%/mini_installer.exe
:: Install downloaded Chromium build
"%TempCrDir%\mini_installer.exe"
:: Copy Google Chrome pdf-Plugin (without mercy into all existing
build directories) :)
for /F "usebackq delims==" %%D IN (`dir /AD /B /O "%LOCALAPPDATA%
\Chromium\Application\1*"`) DO copy /Y "%pdfDllDir%\pdf.dll"
"%LOCALAPPDATA%\Chromium\Application\%%D\" > NUL
::
------------------------------------------------------------------------------------------------
Feel free to comment on the script!
At least for me it does everything I need to keep my Chromium
installation fresh...
Regards
ralph