/build/static/layout/Breadcrumb_cap_w.png
06/09/2019 383 views

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"



After running this I just get the msi file installed no other changes
Answer Summary:
1 Comment   [ + ] Show comment

Comments

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

Answer Chosen by the Author

1

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

Answered 06/10/2019 by: VBScab
Red Belt

  • 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
  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.

All Answers

0

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



Answered 06/25/2019 by: Tempril
Purple Belt