Visual studio 2022 Installation error

lambarini 16 Reputation points
2022-11-19T19:35:11.68+00:00

Can someone help me? I am getting this warning when I try to install .NET development for visual studio 2022 :
Couldn't install Microsoft.VisualStudio.Community.Shared.Msi

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,573 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,117 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,106 Reputation points Microsoft Vendor
    2022-11-21T02:33:36.217+00:00

    Hi @lambarini ,

    Welcome to Microsoft Q&A forum.

    There are many possible causes, please first try following:

    1. In Windows Search box, search Registry Editor, right-click the key > Run as administrator > navigate to this directory(if it exists): Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\90C68BBCA565FC341902D954EA3347AC > right-click it > Permissions… > Advanced > make sure that SYSTEM and Administrators have Full Control(Access) to this key and subkeys.
      262431-image.png
    2. Please navigate to C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.Community.Shared.Msi,version=XXXXXXXXX folder, open it and try to double-click to run the .msi file manually. If this doesn’t work, please backup this folder and remove this folder then retry/repair your installation.
    3. Please check and make sure that no firewall/antivirus/group policy/proxy/extensions are blocking you from installing VS 2022.
    4. Try to use this troubleshooter, to uninstall "vs_communitysharedmsi" and then retry/repair your installation.
    5. Please make sure that all pending Windows Updates have been updated > reboot your machine and retry the installation.

    If none of the above suggestions work, please download and run this collect.exe tool. Go to %temp% folder and find the vslogs.zip file/folder. Upload it to OneDrive and share the link here, I will go to check the log files.

    Best Regards,
    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.
    1 person found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more