.bat script not working when trying to deploy Google Chrome (StandaloneEnterprise64)
hi,
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"
Answers (2)
Top Answer
1. Always add logging to an MSI installation. If anything goes wrong, without a log, you'll waste a lot of time trying to determine what went wrong.
2. Similarly, I always use Robocopy to copy files and folders because it too has logging
Comments:
-
Thank you for answering. I found the issue, when running 32 bit the path wasn't correct. It should have been a bit more (\Chrome\application). After adding \application it worked. Great tip about logging I need to remember doing that. I dont know how to close this question here at ITninja but it is solved. Regards - zyyckoo 5 years ago
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
How are you deploying Chrome? Script, Managed Install?
Remember that the KACE Agent runs in the 32bit context, so registry changes need to have the /reg:64 flag added to modify the 64bit section of the registry. - chucksteel 5 years ago