0

Every time I try to install Visual Studio 2019, I get the error "Microsoft.VisualStudio.MinShell.Msi.Resources could not be installed". I have tried everything I have found on the Internet. When I go to the Download folder of the Visual Studio Installer and I execute the .msi file directly of the package I get the error that it is forbidden due to a software group policy. It is my laptop and I am the admin, so there is no reason why it should be forbidden. I have Windows 10 Home and I am trying to install Visual Studio 2019 Enterprise(the Community edition also does not work).

Here is the Link to my Log files: Download

MP13
  • 389
  • 1
  • 11
  • https://stackoverflow.com/questions/55778820/couldnt-update-when-i-use-visual-studio-installer-to-update-new-version-for-ex This method worked for me. – Jason Aug 26 '21 at 11:18
  • https://stackoverflow.com/questions/55778820/couldnt-update-when-i-use-visual-studio-installer-to-update-new-version-for-ex This person's method worked for me. – Jason Aug 26 '21 at 11:19

1 Answers1

2

Try the following suggestions:

1) delete any files under %Temp%

2) Check if there have 3rd party anti-virus software enabled or enterprise group policy in place that is restricting you or not.

3) type Administrative Tools in Windows search box - Open Local Security Settings -- Software Restriction Policies ( Note: If no software restrictions are defined, right click the Software Restriction Policies node and select New Software Restriction Policy) - Double click Enforcement - Select All users except Local Administrators - Click OK - Restart the computer for the changes to take effect.

4) enter Manage User Certificates under Search Box-->Untrusted Certificates-->remove any info about Microsoft.

enter

C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.MinShell.Msi.Resources,version=16.0.xxx.xxx and right-click on the folder-->Security--> make sure your current user account has the right to modify the folder.

Then, run VS_Installer as Administrator

5) Besides, if it does not help, please run C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe to reinstall the whole VS(all versions of VS2017 and VS2019), vs data, related registry information(do a deep uninstallation), then run vs_installer as Administrator to try again.

==============================================

Solution

Use the ccleaner tool to clean the os environment and disk and install the program without any errors.

Mr Qian
  • 17,533
  • 1
  • 15
  • 28
  • thanks for the detailed answer. I have already tried all what you mentioned last week. – MP13 Nov 02 '20 at 11:24
  • Today I let ccleaner run and after it removed 25GB somewhere it works now. I really appreciate your help – MP13 Nov 02 '20 at 11:25
  • 1
    Glad to know that you have solved the issue by yourself and thanks for sharing the solution. Besides, I have added your solution into my answer and you can consider accepting it so that it will help other community members search and handle similar issues. Thanks in advanced:) – Mr Qian Nov 03 '20 at 02:41