Seeing this is an old thread but I'll post just for the ones that come after me. The fix that worked for me was moving and running the installer outside the downloads folder (directly from C:/ ). The reason behind is that I got a laptop witth windows 10 and my user was created using a special letter from the latin alphabet "ñ", and it seems that the installer fails to extract when the path has special characters and crahses.
Visual Studio Installer crashes before it even starts
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...
... 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?
3 answers
Sort by: Most helpful
-
-
Tianyu Sun-MSFT 31,246 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:
- Update Windows, and make sure that there’s no Update error.
- Run CMD as administrator, run
DISM.exe /Online /Cleanup-image /Restorehealth
and then runsfc /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.
-
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.