The Visual Studio 2022 installer won't download and install VS2022 on my Windows Server 2019 VM.

Paul Jenkins 0 Reputation points
2023-12-28T16:54:49.8866667+00:00

I'm running a Windows Server 2019 VM in Azure. I can download and install Visual Studio 2019. I have the most current Visual Studio installer but when I try to install Visual Studio 2022 I get a "Sorry, something went wrong. The system cannot write to the specified device." It works for 2019 but not 2022. I have followed a number of different suggestions on here for this issue including making sure I have the current installer, making sure my VM has the proper specs, running installcleanup.exe and deleting the install folder, running the install as admin and making sure I have admin rights to the proper folders. I need help.

I have run the collect.exe and have a zip file of the contents if that helps. I've tried everything I know. Thank you.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,362 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 32,406 Reputation points Microsoft Vendor
    2023-12-29T06:45:36.6833333+00:00

    Hello @Paul Jenkins,

    Welcome to Microsoft Q&A forum.

    Are you using any antivirus software or application which may block you from installing VS 2022(for example: Error Installing Visual Studio Professional 2022 - The system cannot write to the specified device)?

    Is there any limitation on your VM like rule/permission/policy…? Please double confirm this with your administrator.

    Also please try to download and run this troubleshooter tool, follow the steps provided by it and see if it fixes any issues.


    Update1:

    The above link mentioned "Acronis Cyber Protect" application, you may check if you have the same application installed.

    Probably, VS installation process is blocked by other applications, you may check the "special" applications which are installed on your VM(clean boot VM may be helpful for troubleshooting).

    Besides, please also try to put the setup file into another drive for example C:\VSSetup.exe => D:\VSSetup.exe and install it again.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.