“A Setup Package is either missing or damaged” err

2020-02-24 06:22发布

问题:

During the installation of Visual Studio 2015 Community on Windows 10 the following error occurred for me:

A Setup Package is either missing or damaged.

Since vcredist_x86.exe and vcredist_x64.exe files correspond to Visual C++ Redistributable Packages for Visual Studio 2013, I provided a location to packages after downloading them (third option on the screenshot). After that the installation went smoothly.

So the question:

are Visual C++ Redistributable Packages for Visual Studio 2013 required for installing of Visual Studio 2015, is there any prerequisites for installing of Visual Studio 2015 on Windows 10, may be i'm missing something obvious?

回答1:

This was a problem with Visual Studio's web installer between mid-afternoon PST of Sep 4th through 11:30am on Sep 8th (also PST) which has now been fixed on our end.

Specifically, we were running a clean-up script on past pre-release web-installers for Visual Studio, but the script got too aggressive and deleted vcredist_x86.exe even though the RTM product still needed that particular package. Once we realized the error, we re-published and re-mapped that package so that web installs should now work correctly.

The other workarounds (download the ISO + install vcredist_x86.exe manually) should still be fine answers, but anybody else reading this now shouldn't need to worry about those workarounds.

And last, we're examining our internal policies and procedures to try and avoid this kind of broad mistake in the future.

EricKn, Visual Studio Engineering Manager



回答2:

Just to say, it's now August 2016, and this problem is still alive and kicking (it wasn't just a problem with one specific build of VS2015).

For me, I ended up having to install VS2015 on a train, and using up my entire mobile phone's 2Gb monthly data allowance, as although it claimed only one package was corrupted, it ended up re-acquiring everything.

Oh, and then it got stuck whilst trying to install the packages. Giving up on the install, and rebooting my laptop actually got it started again.

So, short answer: the VS2015 installer still isn't particularly stable.



回答3:

I had the same problem with installing VS 2015 Community. In my case the solution was to download the offline installer (ISO image, ~3,7 GB), mount the image and run vs_community.exe with administrative rights.



回答4:

Run as administrator and just keep clicking download from internet. I had to click it 50 times or so and EVENTUALLY it completes. (5-7 clicks per package)



回答5:

I may have found the correct walkthrough to get this working.

This is from the page HERE and is not what I came up with myself. Though I did add the VC_redist x86/x64 downloads to the list.

Let me add that I started the update .exe file in run as administrator so you may want to as well.

I got it to work - when it asks you to locate "preparation.exe" or "kb2703187.msp":

1.Open Chrome NOT Internet Explorer - for some @#$*! reason IE doesn't work (at least for me). Though it worked for me in IE11 - Stealthrt

2.Download the file from one (or all) of the links below --> to a "known folder":

preparation.exe --> HERE

kb2703187.msp --> HERE

VC_redist.x64.exe --> HERE

VC_redist.x86.exe --> HERE

Now, go back to the installer and browse to the "known folder" to locate the file you just downloaded

Downloading these files and selecting it in the Please provide a location.. box worked fine for me. I had to reference all 4 files above in order to get it to install.

But I did end up missing some updates:



回答6:

I was having similar problems and the following solution worked for me:

Run the installer executable with administrator rights (right click on installer exe 'Run as administrator') and proceed with the installation as normal.



回答7:

I also had this problem. But I noticed that the problem occured only when I opened a new user ( not admin ). I made the user admin and it worked fine. You should try it, I think that is the sollution to your problem.



回答8:

i apologize up front: this is not going to directly answer the OP's question, but when i searched around for "a setup package is either missing or damaged" while trying to offline-install (from unpacked ISO) VS2105 on my (corporate, internet-starved) build server, there were lots of others with same problem with very little help, and this was the top 1 google hit for that dreaded error message...

here's the deal: i was setting up TFS build agent on corporate server with all kinds of security lock down (including access to internet) from an MSDN subsription VS2015w/U3 ISO (unpacked). ran installer - got the error. after rifling through not-so-helpful SO/MS Connect/etc postings, i was able to glean that the digital signatures on some of the sub-packages were failing validation.

if you know anything about PKIs, read this paragraph if you want, if not skip. there was mention that certain CRLs and CA chains were pushed out via Windows updates/patches. who knows if this server has been patched... it certainly could not do it through automatic win updates. in a nut shell, i needed some way to get those missing items so that the digital signature verification would pass. i thought to myself "why would it work on my local machine, because it is on the same patching schedule as the server (presumably, i don't know for sure)". then it occurred to me that one reason MS offers web installers is just this problem... it then occurred to me that they might have a "best effort" kind of strategy for resolving this kind of thing in their offline installer.

(preface: bear in mind that while this worked in a fairly common corporate set up, they're all different and this might not work for everyone)

what i needed was the ability to run the installer on the server, but somehow get it internet access. so i opened Fiddler, allowed other machines to connect to it, configured the server's internet connection settings >> LAN settings to use my machine as a proxy. first make sure that HTTPS is enabled in Fiddler, then open it up, turn in on, go back to your server (that you configured to proxy via your machines IP address and the port that Fiddler uses; default is 8888) and run the installer. you can actually watch the PKI activity in the request captured by Fiddler, among other http-based traffic). the key of this proxy approach is that the server can get what it need from the web, while all that traffic appears to be coming from your machine, from the network firewall's point of view.

anyhow, i hope this saves someone else the 2 days of pain it caused me.



回答9:

I was facing the same problem. First I tried the online installation and faced above problem, then I tried to install VS2015 from ISO but it was also giving an error saying "Product version which is higher than what you are trying to install is already installed in the device". I read many post on this but none of them had solved my issue. Finally I went to control panel and uninstalled a Visual studio Updater program. Then offline installation worked for me.



回答10:

I tried most of the items listed with VS 2013, VS 2015 and VS 2017 Community Edition, and all of them failed somewhere during the installation, or failed while installing Data Tools, or the Data Tools did not work correctly (SSIS VSTA Script Editor Not Displaying in VS2015). When I tried with VS 2017 Professional, the installation was seamless for Studio and for Data Tools, with Data Tools functioning correctly at the end.



回答11:

I solved the specific issue of missing or corrupted redistributables by doing the following:

  • copy the following certificate: http://www.microsoft.com/pki/certs/MicRooCerAut2011_2011_03_22.crt
  • start certmgr.msc, and install into Trusted Root Certification Authorities

This got me past the missing or corrupted packages message. It now fails on a similar problem for Team Explorer. Have not found solution for that yet...



回答12:

I had the same issue with Visual Studio Express 2015, but was able to install after ran all the updates to Visual Studio Express 2012.



回答13:

I have solved the issue just installed the missing setup manually. Track out which one is showing missing or damaged then search same one in the setup folder and manually install during that main installation. Note:- Don't cancel the main setup after mannual installation please select the Skip option and then continue.



回答14:

I have window 7, downloaded Visual Studio Enterprise 2015 With Update 2 exe installer. It had the same issue as this post at beginning when running the installer as Administrator - "Run as administrator". It was installed fine second time by just double clicking on the installer - run as a user, and the installer prompted the user to enter administrator's credential, enter the credential, then installed successfully.