.bat script not working when trying to deploy Google Chrome (StandaloneEnterprise64)
My .bat script do not work when trying to deploy Google Chrome (StandaloneEnterprise64). Can you guys please help me out?
I have only worked with applications 4 months or so.. Might be me that is the problem :D
This is the .bat script that is not working:
msiexec /qb /norestart /i "%~dp0googlechromestandaloneenterprise64.msi"
if exist "c:\Program Files\Google\Chrome\Application\" copy /y "%~dp0master_preferences" "C:\Program Files\Google\Chrome\Application\"
if exist "c:\Program Files (x86)\Google\Chrome\Application\" copy /y "%~dp0master_preferences" "C:\Program Files (x86)\Google\Chrome\"
reg add HKLM\Software\Policies\Google\Update /f /v AutoUpdateCheckPeriodMinutes /d 0
del "C:\Users\Public\Desktop\Google Chrome.lnk"
I have used an MST for my install of Chrome Enterprise, will do everything you want, included with a GPO to turn the updates off.
copy the contents from your Master Preferences file in to a site json editor online org (my fav) to make sure the JSON is correct. Compact the JSON format so it has no spaces and no returns/enters.
Use another site to encode the JSON format so it will look like the example here -> (%7B%22browser%22%3A%7B%22check_default_browser%22%3Afalse%7D%2C%22distribution%22)
Drop your code into a row called MASTER_PREFERENCES in the Properties table.
No need then for copying files or code to delete shortcuts