admin管理员组

文章数量:1357294

enter image description here The installation fails with an error related to Microsoft.VisualStudio.Community.Shared.Msi.

I have already tried the following troubleshooting steps, but the issue persists:

Running the installer as an administrator.

Clearing the %TEMP% folder.

Running the Visual Studio repair tool.

Ensuring enough disk space is available.

Uninstalling and reinstalling the Visual Studio Installer.

And i tried to did this "Please check permissions for the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\90C68BBCA565FC341902D954EA3347AC, make sure System and Administrators have Full Control to it." But i can't open Components. I have infinite downloads and there is no access to the key because of this.

enter image description here The installation fails with an error related to Microsoft.VisualStudio.Community.Shared.Msi.

I have already tried the following troubleshooting steps, but the issue persists:

Running the installer as an administrator.

Clearing the %TEMP% folder.

Running the Visual Studio repair tool.

Ensuring enough disk space is available.

Uninstalling and reinstalling the Visual Studio Installer.

And i tried to did this "Please check permissions for the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\90C68BBCA565FC341902D954EA3347AC, make sure System and Administrators have Full Control to it." But i can't open Components. I have infinite downloads and there is no access to the key because of this.

Share Improve this question edited Mar 28 at 1:40 Dou Xu-MSFT 3,5361 gold badge5 silver badges8 bronze badges asked Mar 27 at 17:53 Kanada AccountKanada Account 11 bronze badge 1
  • Hi @kanada Account, i would suggest you can collect setup log files generated during installation to investigate what blocks the installation. – Dou Xu-MSFT Commented Mar 31 at 5:39
Add a comment  | 

2 Answers 2

Reset to default 0

Here are some things that may help:

1. Check out the post by Xiu Li here as it looks very relevant, if vs_communitysharedmsi is already installed it needs to be removed, then Visual Studio repaired as the community msi can corrupt registry keys : https://developercommunity.visualstudio/t/Problem-with-Installing-Visual-Studio-20/10607074#T-N10618871

2. Windows Installer Logging - there are full details here: https://learn.microsoft/en-us/troubleshoot/windows-client/application-management/enable-windows-installer-logging - but to do:
* Go to this registry key: HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
* add a Reg_SZ value named : Logging
* set the value to voicewarmupx
* re-run the install
* check the log that has been created - it should be in %temp% (order files by date to easily find)
* set the Logging key back afterwards as this setting slows down installations

Then search the log for Return Value 3, and look at what happens just before the entry "return value 3" (which in windows installer language is critical failure).

3. You can also check to see if the registry key it's complaining about exists - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\90C68BBCA565FC341902D954EA3347AC

Warning - next suggestion will explain how to set permissions on a registry key - do not edit the registry or registry permissions if you do not understand the impact of any changes as it can trash your machine

4. if the registry key exists check the permissions on it - you can also set permissions on a registry key here using the regedt32 utility (start > run > edt32 ) - it might be worth making sure that System/LocalSystem have full access to the key in question

From looking at your screenshot, looks something is wrong that blocks your installation.

I would suggest you can collect setup logs generated during installation that would log detailed error information to help investigate further.

Please follow the below steps:

1 Download Microsoft Visual Studio and .NET Framework log collection tool.

https://aka.ms/vscollect

2 Run Collect.exe in an administrative command prompt. The tool generates a vslogs.zip file in your %TEMP% folder, typically at C:\Users\YourName\AppData\Local\Temp\vslogs.zip.

For more information, please refer to:

Troubleshoot installation or upgrades - Visual Studio (Windows) | Microsoft Learn

3.In vslogs.zip folder, there's a sub-folder which is also called Temp, open it, sort the files by date and check from the latest files. You should check following files => dd_bootstrapper, dd_installer, dd_setup.

4.Check them one by one and try to search any detailed error information that indicates what blocked your installation.

Note: I would be happy to help you check the error information/log files if you provide.

本文标签: visual studioCouldn39t install MicrosoftVisualStudioCommunitySharedMsiStack Overflow