Couldn't install "packageName" and "anotherPackageName" - visual-studio

I am switching to Visual Studio 2022 for .Net core 3.1 but Installer can't install two packages.
I tried uninstall and reinstall too much but it cannot resolve this problem.
Errors:
Couldn't install Microsoft.VisualStudio.MinShell.Interop.Shared.Msi
Couldn't install Microsoft.AspNetCore.SharedFramework.6.0.6.0.1-servicing.21567.14.x64
How can I fix it? Can you help me?
Deep Note: I'm using Windows 10 home single language.

I fixed this problem, my message code is 1911 (you can see on logs).
If you have same problem you can follow this way:
Open Command prompt as administrator.
Type "sfc /scannow".
Reboot your computer when the process is complete.
Repair the Visual Studio installation.

Related

PackageId:Microsoft.VisualStudio.Setup.WMIProvider;PackageAction:Install;ReturnCode:1722;

I am trying to install Visual Studio 2019. But It gives this error:
PackageId:Microsoft.VisualStudio.Setup.WMIProvider;PackageAction:Install;ReturnCode:1722;
How can I fix this error?
Thanks
Finally I installed Visual Studio 2019 community edition.
It was about installation driver issue.
So double check regedit HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion default installation path for windows application.
So I mean my ProgramW6432Dir's value was only C:\. I changed it to C:\Program Files
check regedit
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
default installation drivers paths. If it is not correct fix it.
Restart the windows OS.
Uninstall Visual Studio Installer and Visual Studio 2019.
Retry installation process.
For me, one of these answers helped: https://developercommunity.visualstudio.com/content/problem/1038410/packageidmicrosoftvisualstudiosetupwmiproviderpack-11.html
The one with putting in msiexec at the command prompt. You may have to change the version number, though.

Visual Studio 2017 installer fails to install KB2533623

I'm trying to install Visual Studio 2017 Community via web installer on my Windows 7 laptop and it fails, returning me this log:
dd_setup_..._error.log (translated into English from me, since it was in German)
Package "WindowsUpdates.KB2533623,version=15.0.26711.1,chip=x64" could not be installed.
Search-URL
https://aka.ms/VSSetupErrorReports?q=PackageId=WindowsUpdates.KB2533623;PackageAction=Install;ReturnCode=1168
Details
Command executed: "C:\Windows\system32\dism.exe" /online /quiet /norestart /add-package /packagepath:"C:\Users\User\AppData\Local\Temp\462b07d7-22c4-4fb6-8bd8-78e9e210c711\Windows6.1-KB2533623-x64.cab" /logPath:"C:\Users\User\AppData\Local\Temp\dd_setup_20170916213606_141_WindowsUpdates.KB2533623.log"
Code returned: 1168
Codedetails returned: Element not found.
KB2533623 is not installed at my Laptop, so I tried to install KB2533623 x64 by myself, but it's rejecting with the words "The update is not applicable to your computer".
After some research I found SCCMENTOR who is claiming KB2533623 is superseded by KB2758857, so I tried to uninstall KB2758857, first. There was an error that I could not uninstall all updates. Repeating the step in a local system CMD with wusa /uninstall /kb:2758857 returned 0x80070490. Microsoft suggests to scan the system for corrupt files with sfc /scannow, so I did. It found some errors and fixed them.
I repeated wusa /uninstall /kb:2758857 and it returned 0x80070bc9. Then I restarted and tried it another time and it gives me 0x80070490, again.
I'm not sure I'm on the right path, maybe KB2533623 is not the problem here. How can I fix the problem, so the Visual Studio installer is able to install KB2533623 that is required by so many components of the suite? If KB2533623 is really superseded by KB2758857, why the installer tries to install KB2533623 at all, if KB2758857 is already installed on my laptop?
Microsoft fixed it in Visual Studio 2017 15.5 Preview 3
Visual Studio 2017 15.3 installation fails with „Failed to install WindowsUpdates.KB2533623“ error message.
Visual Studio 2017 install fails due to missing Windows6.1-KB2533623-x64.cab.
So wait for the Final of the Visual Studio 2017 version 15.5 and use the updated installer.
​Hello people!
I had the same problem, and I found that the KB2533623 superseded by KB2758857.
I checkout if this update was installed in my PC. You can check it running this command:
wmic qfe list | find "2758857"
This will show something like this if it was installed:
http://support.microsoft.com/?kbid=2758857 MyMachine Security Update KB2758857 AUTORIDADE NT\SISTEMA 9/2/2016
So, I removed it with this command:
wusa /uninstall /kb:2758857
After this I can install with success the visual studio 2017.
I hope it can help you.

install White error using Nuget in Visual Studio 2015

I try to install white in VS 2015, using the command
Install-Package TestStack.White
But it always show the error message below:
I already tried following to fix the problem, but can not work:
1) uninstall the visual studio, and reinstall
2) remove the nuget and install again
How do I fix this problem?
Anyone has idea of how to fixing this problem?
You should use this command with a solution is open in Visual Studio 2015. Just as the error message mention that “Install-Package : The current environment doesn't have a solution open.”, If you do not have a project that is open, nuget does not know where to install the package.
You can check my test results below, the first installation without a solution open, then second installation with TestStackWhite solution open:
Hope this can help you.

Installation : Microsoft Visual C++ Redistributable stuck at 'Processing: Windows7_MSU_X64'

I'm trying to install the package of Microsoft Visual C++ Redistributable as my xampp apache module cannot be installed. The installation take a very long time to complete. What should I do? Is this common and is all I have to do is wait?
They are dead stuck with this setup progress as the indication
Processing: Windows7_MSU_X64
To install the Visual C++ 2015 Redistributable, you do not need to remove or uninstall the previous versions.
Refer to the error message, you can have a look at the installation log file and search ‘error’, if you can find the error message about Windows6.1-KB2999226-x64.msu, check this similar issue and have a try with the following to troubleshot this issue:
Download the update KB2999226 for your OS edition from here: Update for Universal C Runtime in Windows and before it, since your OS is windows 7, make sure SP1 is installed.
Manually install the KB2999226 as below:
Find the Windows6.1-KB2999226-x64.msu from the folder C:\ProgramData\Package Cache\xxxxx\packages\Patch\x64, which you can the path from the installation log
Create a folder named ‘XXXX’ in that and execute following commands from Admin command prompt
wusa.exe Windows6.1-KB2999226-x64.msu /extract:XXXX
DISM.exe /Online /Add-Package /PackagePath:XXXX\Windows6.1-KB2999226-x64.cab
vc_redist.x64.exe /repair
If you have no idea about the installation log, you can go to %temp% and order by ‘Date modified’, then you should find the installation log, or you can use http://aka.ms/vscollect to gather the installation logs. After using it, you will find vslogs.zip under %temp% folder then upload the file to https://onedrive.live.com/ and share the link here.
I first tried a clean boot and that didn't work so I opened up the task manager to see what other processes I might kill while it was stuck at "Processing: Windows7_MSU_X64" I killed the process titled "windows update standalone installer" and the install completed successfully the moment I killed that process.
Okay, I found the solution for my stucked installation. I updated my Windows manually using wsusoffline tools as my Windows can't seem to update with the usual ways.
Install wsusoffline and select all update for Windows (Windows 7 for me). Make sure to choose the folder to save your update.
Wait for the update to be downloaded
Install the update
Install the MV C++ Redistributable again
Done!
I finally can install my Xampp Apache module and access to the localhost.

Error while installing visual studio 2013 pro

I get this error when i try to install visual studio 2013 pro update 3 even after multipile restarts.
I am using windows 8.1.
Image of the error:
http://i.stack.imgur.com/KpzrP.png
Error Log:
http://pastebin.com/9dpY0fzZ
It may be that you have tried to install the program before and that it corrupted some files, try downloading a remover.
I have had this problem with programs like malwarebytes before so i hope this also works for you. (but beware of virussus :D)

Resources