I am trying to install Visual Studio 2022 Community Edition on my Windows10 notebook.
Unfortunately it always run into an error during the install phase.
I have tried the usual things:
- reboot
- shutdown the power on
- repair
- clean reinstall
Nothing helped so far, it always fail at the same exact point:
Details from the log:
Package 'Microsoft.VisualStudio.Community.Shared.Msi,version=17.1.32113.165' failed to install.
Search URL
https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.Community.Shared.Msi;PackageAction=Install;ReturnCode=1310
Details
MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.Community.Shared.Msi,version=17.1.32113.165\Microsoft.VisualStudio.Community.Shared.Msi.msi, Properties: REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1 MSIFASTINSTALL="7" VSEXTUI="1" PIDKEY="NGKBDRWKQFTT82MTRMPKRM6XM" VS7.3643236F_FC70_11D3_A536_0090278A1BB8="C:\Program Files\Microsoft Visual Studio\2022\Community" FEEDBACKOPTIN="1"
Return code: 1603
Return code details: Fatal error during installation.
Message Id: 1310
Message Details: Error writing to file: stdole.dll. Verify that you have access to that directory.
To that directory: which exactly?
My system is brand new Windows10, just have installed a few weeks ago.
I've administrator rights on my computer and I granted Installer to modify the system.
I have selected .NET Desktop development and clicked on install button. Haven't changed any preferences or install destination.
I also tried to install an earlier version with 2019 Community Edition, but it fails at the exact same point with same error.
I found someone with the same error but no solution has been provided: https://developercommunity.visualstudio.com/t/packageidmicrosoftvisualstudiominshellinteropmsipa-16/346774
Indeed, when manually starting this particular msi:
But I don't have "Run as administrator" if I right-click on that: