1/10/18

Prevent desktop shortcut creation for Google Chrome

To prevent Googe Chrome installation to create a dekstop shortcut I needed to do two things:

1. Delete the shortcut created in the public folder
Run command line: Powershell.exe -Command "&{Remove-Item 'C:\Users\Public\Desktop\Google Chrome.lnk'}"

2. Replace the master_preferences file with one that contains the setting "create_all_shortcuts":false
Run commandline: Powershell.exe -Command "&{Copy-Item '.\master_preferences' 'C:\Program Files (x86)\Google\Chrome\Application'}"
(where this step is configured to use a package containing the modified master_preferences file)