microsoft / shell-intune-samples

Sample shell scripts for Intune admins.
MIT License
670 stars 222 forks source link

An update is ready to install. Code is trying to add a new helper tool #41

Open aquabubble opened 2 years ago

aquabubble commented 2 years ago

Running on macOS Monterey. Our users are standard users and Visual Studio Code has been installed using Intune via the script. Code prompts users with the message "An update is ready to install. Code is trying to add a new helper tool." It then asks for an administrator's name and password. The application is then not updated.

I'm assuming that the permissions of the Visual Studio Code application aren't correct:

drwxr-xr-x 3 root wheel 96B Nov 15 16:43 Visual Studio Code.app

Can the shell script be made to do fix the permissions issues? Should auto-update be disabled in the script for standard users? Will this get rid of the annoying prompt?

janparttimaa commented 8 months ago

One solution for this is that instead installing Visual Studio Code to "/Applications/" -folder is to install the app to user's own application folder under home folder "/Users/[username]/Applications".