Force Chrome Relaunch After Update

stevefitz
New Contributor III

I'm still fuzzy on how to force Chrome to restart after an update without having the user have to do it. I understand that I can use Mac Updates to automatically push updates, but I don't see how to force a relaunch. We run into this pretty often where there is an update, but the users don't relaunch their browser. Any suggestions? What am I missing? 

9 REPLIES 9

efil4xiN
Contributor II

You want  to set the action on startup key  to restore last session. Note this is a security concern in certain industries

stevefitz
New Contributor III

I'm not seeing action on startup as an option. Where is that at? 

stevefitz
New Contributor III

If forcing a restart isn't best practice is there an option to require a restart before being able to do anything else? 

pacificusexpell
New Contributor

Try "Files and Processes" pane to executed command.
open -a "/Applications/Google Chrome.app"

AJPinto
Esteemed Contributor

If you are using Jamf Mac Apps, there is an option under End User Experience to set a post-update action, and you can tell Jamf to relaunch the application after it finishes updating. If you are using a policy, as @pacificusexpell said, you just need to use files and processes command to launch the app.

 

AJPinto_0-1737770284053.png

 

shrisivakumaran
Contributor

You can add in post install script or files and process to run after installed the pkg file, also you can add notification in the script.

/usr/bin/open -a "Google Chrome" chrome://restart
Shri Sivakumaran

stevefitz
New Contributor III

I have already added the post update action in the end user experience, but my laptop didn't restart. The update was already installed but I haven't relaunched the browser yet. I wonder if Jamf needs to install the update (instead of Chrome doing it) for the relaunch to trigger. 

AJPinto
Esteemed Contributor

The post update action does not restart the computer, it restarts the application if it is already open. If the application is not opened, Jamf just updates the application and moves on.


You may need to call Jamf Customer support for an explanation of how this workflow functions. 

stevefitz
New Contributor III

Right, I meant restart my browser not restart my laptop.