Behnam Esmaili
Behnam Esmaili

Reputation: 5967

Manually download missing package for visual studio

When installing visual studio if we already have deleted content of C:\ProgramData\Package Cache directory then whole setup process will be turned into a real nightmare constantly complaining about missing packages. I've searched the web for a solution and the only working one I've found is a tool called install and uninstall troubleshooter.but the problem with it is i have to interrupt setup process and use this tool to remove the package and then get back to setup again which is really cumbersome job to do. But the good thing is for every package that visual studio fails to uninstall it logs a GUID like this {A2999714-5C2C-3729-A911-4AE198B7B2FD} in the log file.Now better and ideal solution in my mind is looking after an official website from which i be able to download each of these packages by these GUIDEs.Is there such a location in the web? or is there any better solution to solve the issue?

Upvotes: 0

Views: 4711

Answers (2)

bobalazs
bobalazs

Reputation: 1

have deleted content of C:\ProgramData\Package Cache directory then whole setup process will be turned into a real nightmare constantly complaining about missing packages

Had the same issue, but with vcredist files, couldn't install any drivers without running into errors and eventually couldn't install because install failed.

I found the solution elsewhere. It said to Fix problems that block programs from being installed or removed https://support.microsoft.com/en-us/help/17588/windows-fix-problems-that-block-programs-being-installed-or-removed download troubleshooter button on the link. Run it - choose option - have problem with installing - it lists programs - choose the missing / problematic visual c++ runtimes in the list it will run and get fixed. Repeat for each visual c++ you having problems with. I ran the program multiple times.

Upvotes: 0

Stein Åsmul
Stein Åsmul

Reputation: 42126

Why did you delete the Package Cache? Do you have little disk space? The Visual Studio installer is so complex that you are fighting windmills trying to fix this I think. Perhaps they have an uninstall tool of some kind that will clean the slate.

Is this Visual Studio 2017? If so, maybe try these links:

I doubt it will work since you have deleted the package cache. Note that most MSI-based installers should be able to uninstall without the package cache due to the cached MSI file in the super hidden folder %SystemRoot%\Installer.

Whatever you do do not delete anything from %SystemRoot%\Installer. Then you are in a totally unrecoverable state since this is an internal Windows Installer implementation detail. Do not mess around in here unless you know exactly what you are doing.

The files in %SystemRoot%\Installer are used to uninstall from the Add / Remove Programs Applet.


Further Links:

Upvotes: 1

Related Questions