Fail uninstall VS2015 on Win10 due to missing(?) KB2999226 - uninstallation

I am trying to uninstall VS2015 community edition on Windows 10 (64 bit) but it fails.
Referring to this SO post:Can't uninstall Visual Studio 2015 (The storage control blocks were destroyed)
This question very well describes my problem, but I'm on Windows 10 where KB 2999226 apparently is not applicable. So why does VS2015 try to uninstall it and how can I convince it not to?
I've tried vs_community.exe /uninstall /force and I've tried Visual Studio Uninstaller. Both fail with the same error. Here's an excerpt from the MSI log (dd_vs_community_<timestamp>.log):
[0884:29AC][2016-08-31T15:28:19]i000: MUX: ExecutePackageBegin PackageId: Windows7_MSU_x64
[1A74:2A60][2016-08-31T15:28:19]i301: Applying execute package: Windows7_MSU_x64, action: Uninstall, path: 2999226, arguments: '"C:\WINDOWS\SysNative\wusa.exe" /uninstall /kb:2999226 /quiet /norestart'
[1A74:2A60][2016-08-31T15:28:19]e000: Error 0x80070057: Failed to execute MSU package.
[0884:29AC][2016-08-31T15:28:19]e000: Error 0x80070057: Failed to configure per-machine MSU package.
[0884:29AC][2016-08-31T15:28:19]i000: MUX: Installation size in bytes for package: Windows7_MSU_x64 MaxAppDrive: 0 MaxSysDrive: 0 AppDrive: 0 SysDrive: 0
[0884:29AC][2016-08-31T15:28:19]i000: MUX: Return Code:0x80070057 Msi Messages:0 Result Detail:0 Restart:None
[0884:29AC][2016-08-31T15:28:19]i000: MUX: Set Result: Return Code=-2147024809 (0x80070057), Error Message=, Result Detail=, Vital=True, Package Action=Uninstall, Package Id=Windows7_MSU_x64
[0884:29AC][2016-08-31T15:28:19]i000: Setting string variable 'BundleResult' to value '1603'
[0884:29AC][2016-08-31T15:28:19]i319: Applied execute package: Windows7_MSU_x64, result: 0x80070057, restart: None
[0884:29AC][2016-08-31T15:28:19]e000: Error 0x80070057: Failed to execute MSU package.
It is possible that I installed VS2015 before I upgraded mu Windows 7 to Windows 10. In that case, possibly the VS 2015 installation required the KB when installed on my Windows 7, and installed it, which is recorded "somewhere". Then when I upgraded to Windows 10, the KB was removed. Now the VS uninstaller should ignore the KB entry in its uninstall process, but apparently fails to do so. If this is what happens, where can I modify the install log/info to remove the KB entry?
If additional info is needed to solve this, please just ask.

The KB2999226 is an update for CRT in Windows and is a component of the Windows operating system. It is included as a part of Windows 10, starting with the January Technical Preview, and it is available for older versions of the operating system via Windows Update.
Go to Control Panel—Programs and Features—View installed updates, if you can find the KB2999226, you can uninstall it, then uninstall the VS through the command: C:\ProgramData\Package Cache{xxxxxx}\vs_community.exe" /uninstall /force, you can have a look at here: https://blogs.msdn.microsoft.com/heaths/2015/07/17/removing-visual-studio-components-left-behind-after-an-uninstall/ to find where the cached bundle is installed.
Download a healthy ISO file of VS community 2015 and use it to repair, after that, uninstall it using the above forcibly uninstall command in method 1.
Download and install the Windows Installer PowerShell Module tool to find all related components of VS 2015 and uninstall them, the detail information, check here: https://blogs.msdn.microsoft.com/heaths/2015/07/14/how-to-install-visual-studio-to-another-directory-when-a-pre-release-is-installed/
Since the KB2999226 is shipped with Windows 10, your OS is Windows 10, it is not necessary to uninstall it unless you meet an issue that caused by it.

Missing KB2999226 , "Universal C Runtime" (curt) in windows 10.
Try to install "Microsoft Visual C++ Redistributable for Visual Studio 2017"
https://www.visualstudio.com/downloads/

I try VisualStudioUninstaller and can succesfully uninstall,
see this post:
https://stackoverflow.com/a/42105329/4573839

Related

apache netbeans 11.3 C++ plugin timeout, unable to install

Im moving to Apache Netbeans 11.3 and trying to install the C++ plugin on Windows 10, got the follow repos
http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz
http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/updates.xml.gz
but everytime it hits the 99% it simply give me a timeout error when unpacking org-netbeans-modules-cnd-dwarfdiscovery.nbm
The Plugin Installer found problem timeout of loading C/C++ Repository[org.netbeans.modules.cnd.repository/1.32.6.1] while install the following plugins:
already try versions 10, 11.1, 11.2, 11.3, got the same issue, i even got rid of the windows firewall to no avail.
Check the Java version
For me, I have Java version 14
So this version has no program
unpack200.exe
Problem was solved by copying the unpack200.exe file from Java version 1.8 to the bin folder in java 14
copy and paste pack200, unpack200 and unpack.dil from bin of jdk13 into the bin of jdk14. This worked for me and I assure you that it will work for you. I did this with openjdk.

How to install C++ 14.0 Offline and make python aware of it?

I am trying to figure out how to install c++ 14.0 offline using suggestions from other Stackoverflow Q&A. But none of them seem to work. I need it for Cython. I don't want to install the binary version. I installed suggested redistributables and then restarted the server for paths to be applied properly but when I pip install cython.tar it still does not find the c++ 14.0 dependency. Any help would be greatly appreciated.
The following are links to what I have installed based on other Stackoverflow answers:
Microsoft Build Tools 2015: https://www.microsoft.com/en-za/download/details.aspx?id=48159
Windows 10 SDK ISO: https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
Then I restarted the windows server and I even ran the following command suggested by some other answers:
python -m pip install setuptools --upgrade
After months of researching and trying all sorts of methods the following has worked:
Step 1: Download the build_tools.exe of your choice
Step 2: Make sure you are on a machine with the exact same environment you are going to install the c++ dependencies on. i.e. If server is windows server 2016 64bit run a vm to emulate that exact environment.
Step 3: Goto this site to get a list of all possible components you can download in the next step - https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community?view=vs-2019
Step 4: Follow the following instructions to get a local cache download of your choice -
https://learn.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019
Step 5: copy everything to the server and continue following the instructions from step 4
Step 6: restart the machine to apply paths properly
Step 7: copy rc.exe and rcdll.dll from C:\Program Files (x86)\Windows Kits\8.0\bin\x86 to C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin
Step 8: Download the latest setuptools from pypi.org
Step 9: run the following command with admin rights python -m pip install path/to/setuptools.tar --upgrade
Step 10: Restart machine again to apply paths.
Once all steps are followed c++ 14.0 (or of your choice) will be installed properly and linked with no issues.
Install chocolatey, then use their script to install Visual Studio 2019 build tools, better use following command:
choco install visualstudio2019buildtools --package-parameters "--allWorkloads --includeRecommended --includeOptional --passive --locale en-US"
After that you will see Visual Studio GUI installer where you can manually select packages needed (be aware of size)
Source: https://chocolatey.org/packages/visualstudio2019buildtools
According to this site, "Another option is to use Microsoft’s Visual C. One must then use the same version which the installed Python was compiled with." It's likely you're not on a matching version. Cython itself recommends MinGW, which is easy enough to install following the directions on their site. Just make sure the compiler and standard library are in your Windows PATH. I believe they have to be added manually, which is pretty easy in Windows 10.
download visualcppbuildtools_full.exe file and execute.
unselect all the checkboxes.
install button will be shown, click it.
restart pc and it's done.

VSO Package Library - Nuget Delayed

Our team has a private Package Feed set up in Visual Studio Online. We can push the latest version of a library we are working on to the feed, and then see it in our NuGet package manager in VS2017.
In the last few weeks, this process has become unreliable, and we cannot determine why.
Steps:
A developer builds nuget a package locally.
We push the package to our feed using the command line
nuget.exe push -Source "VSO-Feed" -ApiKey VSTS ..\Project\bin\Debug\Project.0.1.1-alpha.nupkg
Command returns success
We can see new new package version under "Packages" in VSO
NuGet Package Manager in VS 2017 cannot find the new package
Attempts to update the .csproj file manually to reference the new version sometimes succeed, but just as frequently the project build fails with a message like
Unable to find package Project with version (>= 0.1.1-alpha)
Found 243 version(s) in vso-feed [ Nearest version: 0.1.0-alpha ]
After an indeterminate period of time, usually at least 45 minutes, it suddenly works again!
Has anyone else experienced this? Our searches have come up empty.

Package X is not compatible with netstandard2.0

I created a .NET Standard v2.0 project in Visual Studio 2017 v15.3.1 and I'm unable to install "Microsoft.EntityFrameworkCore 2.0.0" package in it (by Nuget 4.3). Previously the .NET SDK and Runtime, both 2.0.0, were installed.
The errors I get follow this pattern:
"Package X is not compatible with netstandard2.0 (.NETStandard,Version=v2.0)." (i.e. System.Reflection.TypeExtensions 4.1.0).
What could it be causing these errors?
EDIT: I'll show the exact warnings and errors with an example (there are too many).
Restoring packages for [.csproj path]...
Warning:
Package "System.Collections 4.3.0" was restored using ".NETFramework,Version=v4.6.1" the project target framework ".NETStandard,Version=v2.0". This may cause compatibility problems.
...
Error:
Package Remotion.Linq 2.1.1 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package Remotion.Linq 2.1.1 supports:
net35 (.NETFramework,Version=v3.5)
net40 (.NETFramework,Version=v4.0)
net45 (.NETFramework,Version=v4.5)
netstandard1.0 (.NETStandard,Version=v1.0)
portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259)
...
Error restoring package. Reverting package changes for 'ClassLibrary1'.
Time elapsed: 00:00:02.4689637
========== Ended ==========
Clicking the "Clear all Nuget Caches" will resolve issue.
Issue solved installing, independently, newer versions for each of the packages' dependencies which were showing error, so that the big package "Microsoft.EntityFrameworkCore 2.0.0" gets installed at last.
Hope it helps.
Edited: It happened to me another time and tried a faster solution. The key was deleting Nuget's cache from the packages' manager configuration.

pyproj with Python 2.7.9 on win7 64 gives "Unable to find vcvarsall.bat"

I need to install pyproj on my machine and it give the above mentioned error. I guess it would be the same for other python components that are using C++ code:
My situation:
Win 7 64 bit running.
installed:
VS 2008 express
MS VS patch for python 2.7 http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266
Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505
Python Setup Tools available here: http://pypi.python.org/pypi/setuptools#downloads
set up the path variables and set
VS90COMNTOOLS
Value: C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools
I try to install the pyproj: http://jswhit.github.io/pyproj/
but it returns the same error:
File "msvc9compiler.py", line 271, in query_vcvarsall raise DistutilsPlatformError("Unable to find vcvarsall.bat") distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat
the purpose of this is to get the pygrib package running: http://jswhit.github.io/pygrib/docs/index.html
Does anybody know how to solve the problem?
You can install this without needing to compile it by using a precompiled Python wheel. You can find a compatible wheel for pyproj at this page containing unofficial wheels.
You are specifically looking for pyproj-1.9.4-cp27-none-win_amd64.whl. Once you download the whl file, you can install it with pip using
pip install pyproj-1.9.4-cp27-none-win_amd64.whl
And that will install it for you, skipping the compilation process.