• Welcome to Support Forum: Get Support for Patch My PC Products and Services.
 

Visual Studio Code updates still failing with auto-close

Started by Jared, July 20, 2021, 06:14:46 AM

Previous topic - Next topic

Jared

Hi Andrew,

Yes, it's definitely an issue with the VS Code installer.  The question was really how or if we could work around it in an automated way.  The pre-script idea is great, I just haven't had a chance to implement it yet.  I'll report back when I do!

Jared

Hi, sorry to resurrect this post, but this continues to be an on-going issue for our organization.  I myself just got a new laptop and I'm already facing this issue with every update to VS Code.

Something I did notice, even though we have "Auto-close conflicting application process before installation", I see a /NOCLOSEAPPLICATION switch in the installer command, which seems strange.  Please find the VS Code install log and the PatchMyPC script runner log entries from Jan 13.

Dan Gough (Patch My PC)

I've just done some testing and have not been able to reproduce this so far.

With Manage Conflicting Processes enabled, the app is closed and the update succeeds.
If MCP is set to ignore the running app and proceed, then the installer fails quickly before attempting to install.

It doesn't make sense to have /NOCLOSEAPPLICATIONS though, so we'll remove this from the default command line as it seems it could conflict with the other option on offer /FORCECLOSEAPPLICATIONS.

I also tested with /FORCECLOSEAPPLICATIONS /LOGCLOSEAPPLICATIONS though, and that did force close anything either.