Unattended deployment in Chrome using master_preferences file - need some HELP

Post Reply
anonim
Posts: 1
Joined: 13.05.17 19:20:45

Unattended deployment in Chrome using master_preferences file - need some HELP

Post by anonim » 13.05.17 19:36:28

Unattended deployment in Chrome using master_preferences file.

I tend to automate my own limited Windows installs. Recently I tried to do with Chrome (MSI file but it can be done with normal .exe's setup too).

Install etc.

Code: Select all

msiexec /q /i googlechromestandaloneenterprise64.msi
copy /y "master_preferences" "%ProgramFiles(x86)%\Google\Chrome\Application\"
(Install Chrome extensions via group policy or master_preferences) https://support.google.com/chrome/a/ans ... ic=2936229
https://support.google.com/chrome/a/answer/187948?hl=en

I can install extensions but pre-configuring them is impossible for me.

Especially I would like to
a) hide icon by default

Problem: it is controlled by

Code: Select all

"browser_action_visible":false,
setting in "Secure Preferences" file - that file is not deployable; it can't exist in a "sparse" Default user profile (unlike for example "Local State" file) if i create that file it gets overwritten on profile creation and Chrome "resets" everything as it thinks profile was modified.
That setting is completely ignored if I try to put it master_preferences file


b) automatically install at least 2 scripts (ex: Adblock Protector and Anti-Adblock Killer 10.0)

c) maybe allow those scripts access to all domains (as to skip Tempermonkey prompt on cross domain accesses)

Here's (working) master_preferences that I use to install Tempermonkey on 1st user run.

Code: Select all

{
	"homepage": "http://www.google.com",
	"distribution": {
		"skip_first_run_ui": true,
		"import_search_engine": false,
		"import_history": false,
		"create_all_shortcuts": true,
		"do_not_launch_chrome": false,
		"suppress_first_run_bubble": true,
		"show_welcome_page": false,
		"make_chrome_default": false,
		"msi": true,
		"system_level": true
	},
	"extensions": {
		"settings": {
			"dhdgffkkebhmkfjojejmpbldmpobfkfo": {
				"location": 1,
				"manifest": {

					"content_scripts": [{
						"all_frames": true,
						"js": ["rea/common.js", "content.js", "page.js"],
						"matches": ["file:///*", "http://*/*", "https://*/*"],
						"run_at": "document_start"
					}],


					"key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDjiyuc6OWY8gaVTe+b16fH2BBe0PQLMeUpEXSQvyv5a/6OiQ1D8bBLTfLvApD3zT2MZoXWu2KUILdkyg5OC/Tru8m+Js6e3RjHY9Rqbvnh8CJQgTJ+63L5w9aLsTvA2fqdDfhw8Mnl1GMcJd/RI/ZiBEm0stog0ZfyQjD1jpSEXQIDAQAB",
					"name": "Tampermonkey",

					"optional_permissions": ["contentSettings", "downloads"],

					"permissions": ["notifications", "unlimitedStorage", "tabs", "idle", "management", "webNavigation", "webRequest", "webRequestBlocking", "storage", "contextMenus", "chrome://favicon/", "clipboardWrite", "cookies", "\u003Call_urls>"],
					"update_url": "https://clients2.google.com/service/update2/crx",
					"version": "0.0"
				},


				"granted_permissions": {
					"api": ["clipboardWrite", "contextMenus", "cookies", "idle", "management", "notifications", "storage", "tabs", "unlimitedStorage", "webNavigation", "webRequest", "webRequestBlocking"],
					"explicit_host": ["\u003Call_urls>", "chrome://favicon/*"],
					"scriptable_host": ["file:///*", "http://*/*", "https://*/*"]
				},


				"path": "dhdgffkkebhmkfjojejmpbldmpobfkfo\\0.0",
				"state": 1
			}

		}
	}
}

Post Reply

Return to “Development”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest