diff --git a/macOS/Apps/Visual Studio Code/installVSCode.sh b/macOS/Apps/Visual Studio Code/installVSCode.sh index b6280133..6b4d255a 100755 --- a/macOS/Apps/Visual Studio Code/installVSCode.sh +++ b/macOS/Apps/Visual Studio Code/installVSCode.sh @@ -29,6 +29,9 @@ appname="Visual Studio Code" app="Visual Studio Code.app" # The actual name of our App once installed logandmetadir="/Library/Logs/Microsoft/IntuneScripts/installVSCode" # The location of our logs and last updated data processpath="/Applications/Visual Studio Code.app/Contents/MacOS/Electron" # The process name of the App we are installing +if [[ ! -f "$processpath" ]]; then + processpath="/Applications/Visual Studio Code.app/Contents/MacOS/Code" # New executable name per https://github.com/microsoft/vscode/pull/291948 +fi terminateprocess="false" # Do we want to terminate the running process? If false we'll wait until its not running autoUpdate="true" # If true, application updates itself and we should not attempt to update diff --git a/macOS/Config/Swift Dialog/onboarding_scripts/scripts/04-installVSCode.zsh b/macOS/Config/Swift Dialog/onboarding_scripts/scripts/04-installVSCode.zsh index 9056e794..75b7c631 100755 --- a/macOS/Config/Swift Dialog/onboarding_scripts/scripts/04-installVSCode.zsh +++ b/macOS/Config/Swift Dialog/onboarding_scripts/scripts/04-installVSCode.zsh @@ -29,6 +29,9 @@ appname="Microsoft VS Code" app="Visual Studio Code.app" # The actual name of our App once installed logandmetadir="/Library/Application Support/Microsoft/IntuneScripts/installVSCode" # The location of our logs and last updated data processpath="/Applications/Visual Studio Code.app/Contents/MacOS/Electron" # The process name of the App we are installing +if [[ ! -f "$processpath" ]]; then + processpath="/Applications/Visual Studio Code.app/Contents/MacOS/Code" # New executable name per https://github.com/microsoft/vscode/pull/291948 +fi terminateprocess="false" # Do we want to terminate the running process? If false we'll wait until its not running autoUpdate="true" # If true, application updates itself and we should not attempt to update