OFFICIUM INSERVIO
Your reliable partner for your business software...
Probleme Setup Visual Studio / Problems with Visual Studio setup
(alle Versionen/all versions)
Freitag, 30. Dezember 2022
Ursache und mögliche Lösungsansätze
Deutsch
Fehlermeldung/Situation
Fehlermeldung z.B. beim Versuch, "Visual Studio" zu starten:
The setup for this installation of Visual Studio is not complete. Please run the Visual Studio Installer again to correct the issue.
Ursache und mögliche Lösungsansätze
Windows Neustart und temporäre Ordner löschen
In einigen Fällen hat es ausgereicht, das Windows System einfach neu zu starten und vorher/nachher alle temporären Ordner-Inhalte vollständig zu löschen!
Visual Studio Status in INI-Datei manuell aktualisieren
Installationspfad von "Visual Studio" öffnen, z.B. "Visual Studio Professional":
ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\Common7\IDE\
Bzw. in Visual Studio 2022:
%ProgramW6432%\Microsoft Visual Studio\2022\Professional\Common7\IDE\
Die Datei "devenv.isolation.ini" öffnen , den Wert "SetupFinished=true" setzen und die Datei abspeichern.
Nun versuchen, Visual Studio zu öffnen.
Reparaturversuch über "Visual Studio Installer"
Wie in der Fehlermeldung angegeben, hilft es oft, eine Reparatur mit dem "Visual Studio Installer" durchzuführen.
%programfiles(x86)%\Microsoft Visual Studio\Installer\vs_installer.exe
Probleme beim Starten des "Visual Studio Installer"
Sollte sich der "Visual Studio Installer" selber wider Erwarten nicht mehr starten lassen, dann den Inhalt aus dem Ordner "%programfiles(x86)%\Microsoft Visual Studio\Installer\" komplett löschen.
Sollten sich Dateien nicht vollständig löschen lassen, dann z.B. über den Reiter "CPU" im Ressourcenmonitor (resmon) bei "Zugeordnete Handles" im Feld "Handles durchsuchen" nachprüfen, welches File Handle für einer der Dateien geöffnet ist, die sich nicht löschen lassen.
Dazu im Feld "Zugeordnete Handles" einfach den Dateinamen eingeben, der sich nicht löschen lässt.
Den gefundenen Prozess dann entsprechend beenden, und dieses File Handle-Suchen + Prozess-Beenden solange wiederholen, bis sich der o.g. Installer-Ordner komplett löschen lässt.
Danach über die Webseite https://visualstudio.microsoft.com/vs/ den passenden "Visual Studio Installer" komplett neu herunterladen und installieren (u.U. sollte man zwischendurch den Rechner neu starten).
Wichtig: Beim Auswählen des Setups auf die korrekte Visual Studio Version achten, z.B. "Visual Studio Professional" !
Nach dem Abschluss der Installation öffnet sich der "Visual Studio Installer".
Darin die Option zum Reparieren der Visual Studio Version starten (zeitintensiv!).
Hinweise im Internet
Nachfolgende weitere Hinweise, z.B. bei "Stack Overflow":
English
Error message/situation
Error message e.g. when trying to start "Visual Studio":
The setup for this installation of Visual Studio is not complete. Please run the Visual Studio Installer again to correct the issue.
Reason and possible solutions
Restart Windows and delete temporary folders
In some cases it was sufficient to simply restart the Windows system and completely delete all temporary folder contents before/after!
Manually update Visual Studio status in INI file
Open the "Visual Studio" installation path, e.g. "Visual Studio Professional":
ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\Common7\IDE\
Or, for Visual Studio 2022:
%ProgramW6432%\Microsoft Visual Studio\2022\Professional\Common7\IDE\
Open the "devenv.isolation.ini" file, set the value "SetupFinished=true" and save the file.
Now try to open Visual Studio.
Repair attempt via "Visual Studio Installer"
As the error message states, it often helps to run a repair with the "Visual Studio Installer".
%programfiles(x86)%\Microsoft Visual Studio\Installer\vs_installer.exe
Problems starting the "Visual Studio Installer"
If, contrary to expectations, the "Visual Studio Installer" itself cannot be started, then completely delete the contents of the "%programfiles(x86)%\Microsoft Visual Studio\Installer\" folder.
If files cannot be completely deleted, then check, for example, via the "CPU" tab in the resource monitor (resmon) under "Assigned handles" in the "Search handles" field, which handle is open for one of the files that cannot be deleted.
Simply enter the file name that cannot be deleted in the "Assigned handles" field.
Then terminate the found process accordingly, and repeat this file handle search + process termination until the above-mentioned installer folder can be completely deleted.
Then download and install the appropriate "Visual Studio Installer" from the website https://visualstudio.microsoft.com/vs/ (you should restart the computer in between).
Important: When selecting the setup, pay attention to the correct Visual Studio version, e.g. "Visual Studio Professional"!
After the installation is complete, the "Visual Studio Installer" opens.
Start the option to repair the Visual Studio version (time-consuming!).
Additional notes on the internet
The following additional notes, e.g. for "Stack Overflow":