Error: a certificate chain processed,but terminated in a root error .Net Framework 4.7
Asked Answered
R

3

11

I want to extract the .net 4.7 framework prerequisites with my main msı.

But when ı try to install .net installation give an error.

After ı try to install .net framework only.

.net framework installation gives an error

.net framework 4.7 a certificate chain processed but terminated in a root.

How to certificate it with Wix?

  <ExePackage
         InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx47FullLog].html&quot;"
          RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx47FullLog].html&quot;"
          UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[NetFx47FullLog].html&quot;"
          PerMachine="yes"
          DetectCondition="!(wix.NetFx47WebDetectCondition)"

          InstallCondition="NetFrameWorkCheckbox = 1"
          Id="NetFx47Web"
          Vital="yes"
          Permanent="yes"
          Protocol="netfx4"
          DownloadUrl="$(var.NetFx47WebLink)"
          LogPathVariable="NetFx47FullLog"
          Compressed="yes"
     Name="!(wix.NetFx47WebPackageDirectory)NDP47-KB3186500-Web.exe"
    SourceFile=".\prerequisites\NNDP47-KB3186497-x86-x64-AllOS-ENU.exe"


         >
Radu answered 1/10, 2018 at 7:46 Comment(0)
P
21

I also met the same issue when installing .NET framework 4.7 on the PC with Win 7 sp1 system.

The solution with detailed steps is below can be seen in:

https://mcmap.net/q/293635/-a-certificate-chain-could-not-be-built-to-a-trusted-root-authority

Step2

Then the issue will hopefully be resolved.

Philps answered 8/4, 2020 at 7:16 Comment(0)
T
0

Update: Recently down-voted. Please let others know what didn't work. I have not looked at this issue for a long time.


Heath Stewart's Blog: I think you will find the explanation here: A certificate chain could not be built to a trusted root authority. Essentially some components in Visual Studio 2012 were signed with a SHA256 hash certificate not installed on all Windows versions.

Are you on a virtual? It might not be updated - running Windows Update might fix the whole problem? You need a root certificate update. I would try that before reading the information below. I would assume the problem would be fixed by now via Windows Update, but perhaps not?


You will find links in the above, linked blog. I will just inline a few of the links here (in case the blog disappears):

And a general link just for reference: .NET Framework deployment guide for developers.

Tibbs answered 2/10, 2018 at 2:30 Comment(2)
Thank you but ı already ı added microsoft root certifacete and d3d compiler.dll.Now it works good.Archduchy
Not sure I understand, you got it working some other way?Pentacle
P
0

A solution that worked for .NET Framework 4.8 (and hopefully 4.7 as well):

Your PC may be missing a certificate: For my problem, I needed to import MicRooCerAut2011.crt to console root (windows + R, type "mmc", then press Enter).

Here are step-by-step instructions on how to do this (the text is in Indonesian, but the images should make sense anyway) and where to download the certificate file from.

Purposely answered 2/3, 2021 at 2:37 Comment(1)
A link to a non-English website is not very useful. It's preferable to simply add all the necessary details to the answer, and avoid the link entirely.Christcrossrow

© 2022 - 2024 — McMap. All rights reserved.