.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"

After running this I just get the msi file installed no other changes

1 Comment   [ + ] Show comment
  • Do the individual commands work when running them manually?
    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 3 years ago

Answers (2)

Answer Summary:
Posted by: anonymous_9363 3 years ago
Red Belt

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

  • 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 3 years ago
Posted by: Tempril 3 years ago
Purple Belt

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

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ