Visual Studio Installer crashes before it even starts

Nolan W. Salzmann - Lumicera 0 Reputation points
2023-06-08T20:07:08.45+00:00

I have downloaded the installer for VS 2022 from Microsoft's website (VisualStudioSetup.exe) and when I run it, all I get to see (for about 2 seconds) is a little window with "Visual Studio Installer" at the top and a progress bar...

User's image

... and then nothing. It just disappears and no Installer processes are visible in Task Manager (at least, not that I can find.) I've downloaded the log collection tool and here is the top of the resulting VSSetupEvents file...

--------------------------------------------------

Event log entries for VSSetup:

Total Entries: 0

--------------------------------------------------

Event log entries for MsiInstaller:

I have no resulting Visual Studio folder in Program Files (x86) and searching for Visual Studio in my Start Menu only finds the installer I downloaded in the first place (VisualStudioSetup.exe). I have found no questions here that detail a crash happening this early in the process, so I'm posting my question now. Is there somewhere I can look for any sort of diagnosis of this problem?

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,010 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 29,436 Reputation points Microsoft Vendor
    2023-06-09T03:29:23.9866667+00:00

    Hello @Nolan W. Salzmann - Lumicera,

    Welcome to Microsoft Q&A forum.

    The installation stopped at the very beginning, normally it is caused by something wrong or changed in System/environment.

    Try to check following aspects: permissions, Windows OS, system files, Registry, environment variables, extensions, antivirus, proxy, network, cache, VS 2022 system requirements, hardware. If you manually modified some system related configurations, please try to recover them and reinstall VS 2022.

    For Windows OS and system file, please try following:

    1. Update Windows, and make sure that there’s no Update error.
    2. Run CMD as administrator, run DISM.exe /Online /Cleanup-image /Restorehealth and then run sfc /scannow.

    Try to disable proxy/antivirus/extensions temporarily and reboot your machine then run the setup file again.

    Sometimes, cleaning/renaming %temp% folder and moving VS setup file to another drive’s clean folder then run it again may work.

    Make sure that you have full permissions on your machine or try to communicate with your administrator if necessary.

    Please let us know if you did something before installing VS. I guess some operations maybe corrupt the framework or DISM.

    BTW, please try to disconnect network, run the setup file, select the components and workloads then reconnect to network and continue installing VS, see if this works.

    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.


  2. Nossy Drelich 0 Reputation points
    2024-07-18T23:06:31.64+00:00

    Try and see if https://github.com/ibay770/vstudio2022installer/blob/main/VStudio2022Installer.7z one works for you.

    0 comments No comments