winget-cli
winget-cli copied to clipboard
Automatic restart after visual studio update
Brief description of your issue
Computers automatically restart after receiving the new visual studio update. This issue started yesterday, and hasn't been happening in the past 2 weeks before yesterday. Maybe an idea to disable automatic reboots when winget --upgrade all is being run?
Steps to reproduce
install an old version of visual studio 2019, then update using winget.
Expected behavior
App updates, but a reboot should be pending
Actual behavior
Students got a restarting computer during the middle of some exams because the PC started updating visual studio and didnt prompt or anything about a restart coming.
Environment
Windows Package Manager (Preview) v1.2.3411-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22000.526
Package: Microsoft.DesktopAppInstaller v1.17.3411.0
This is likely due to a runtime requiring a reboot to ensure the right version is invoked. We see this in some cases with VC++ runtimes.
We've got a few features for suppressing reboots and other related behavior in teh backlog, but that could cause a torn state with Visual Studio. We may need to see if we can detect which packages have this kind of behavior and prompt before the install continues. One of the other challenges is related to a goal of unattended installs for winget import.