-1

If we try to do a full install of Visual Studio 2015 with Update 3 on Windows 7 Ultimate x64 with Service Pack 1 we get the following error during setup:

A setup package is either missing or damaged

Please provide a location to search for the package: CDROM:\packages\vcRedistD14\debug\x86\vc_runtimeDebug_x86.msi

The file "vc_runtimeDebug_x86.msi" is present on the ISO image and is neither missing nor damaged at all. To see the root cause of the problem right click the file "vc_runtimeDebug_x86.msi" in Windows Explorer on the ISO image, choose "Properties" > tab "Digital Signatures" > select the entry "Microsoft Corporation" in the signature list and choose "Details". Here we see the following error message below the Digital Signature Information:

The certificate in the signature cannot be verified.

In the "Advanced" tab of the Digital Signature Details dialog we can see that the Issuer certificate "Microsoft Code Signing PCA 2011" seems to be missing from the certificate store and therefore the validity of the VC-Redistributable package can not be verified and installation stops.

To solve the problem do the following steps:

  • Start > in the search bar type "mmc.exe" > press Enter
  • in the mmc console go to Menu > File > Add/Remove Snap-in... > on the left side select "Certificates" > Add > select "Computer account" > Next > select "Local computer" > Finish > OK
  • in the left tree view expand Console Root > Certificates (Local Computer) > Trusted Root Certification Authorities > select "Certificates"
  • in the right list view right click in the free space > All Tasks > Import... > Next > Browse... > select the file "Microsoft Root Certificate Authority 2011.cer" > Open > Next > select "Place all certificates in the following store" > leave the selection of the certificate store "Trusted Root Certification Autorities" unchanged > Next > Finish > OK
  • we should now see a new certificate named "Microsoft Root Certificate Authority 2011" in the certificates of the "Trusted Root Certification Authorities" store
  • do the same for the certificate file named "AddTrust External CA Root.cer", because this one is needed for the file "CDROM:\packages\Dotfuscator\DotfuscatorCE.msi"
  • do the same for the certificate file named "Microsoft Root Certificate Authority 2010.cer", because this one is needed for the file "CDROM:\packages\TFSOfficeIntegration\x64\Core\tfs_officeIntegrationCore.msi"
  • close mmc.exe > choose No

If we now right click the install file "vc_runtimeDebug_x86.msi" on the ISO image, choose "Properties" > tab "Digital Signatures" > select the entry "Microsoft Corporation" in the signature list and choose "Details", we see that the error is gone and the info "This digital signature is OK." is shown.

The same applies to the files "CDROM:\packages\Dotfuscator\DotfuscatorCE.msi" and "CDROM:\packages\TFSOfficeIntegration\x64\Core\tfs_officeIntegrationCore.msi". This time we need to add the certificate files named "AddTrust External CA Root.cer" and "Microsoft Root Certificate Authority 2010.cer" to the "Trusted Root Certification Autorities" certificate store like we already did above.

After these two fixes we can now install Visual Studio 2015 in offline mode from the ISO image without any errors.

To get the certificates you can start the ISO install on a computer with internet connection and export the needed certificates from the store after installation is finished. By looking at the digital signature verification of the problematic file you can test which certificate helps to pass the verification and export this cert from the internet and import it to the offline machine.

Be aware that the Visual Studio setup error does not occur on newer operating systems like Windows 10, because the certificates are already renewed on these machines at OS installation.

Many thanks again to Microsoft for not solving the issue and not talking about the root cause for these type of errors. I think for a skilled Microsoft engineer it would have been nearly impossible to include the used code signing certificates into the installer in the first step and import them to the target machine before showing cryptic error messages of missing or damaged files. I do not want to know how many developers have tried to fix the error by re-downloading the ISO. Maybe we should not use offline machines for development anymore?!

Download certificates here: https://www.mediafire.com/file/h9h3dwctzff4hc1/Certs.7z/file

I tried to answer or comment the thread at the following link: "A Setup Package is either missing or damaged" error while installing Visual Studio 2015 on Windows 10

But because I have not 50 reputation points I can not comment and answering is blocked, because a wrong answer was accepted as the correct one.

kondra
  • 1

0 Answers0