Burn installer facing error .Net 45 0x80091007-The hash value is not correct

梦想与她 提交于 2019-12-12 01:58:54

问题


I am using Burn installer to install msi and .net framework. But when I try to install .exe it fails with error.

.Net 45 0x80091007-The hash value is not correct. I have downloaded the .net exe from Link I got the hashcode using tool from fciv tool

What I am missing in below scenario.

<Chain>
      <ExePackage
        Id= "Net45"
        Name = "dotNetFx45_Full_setup.exe"
        Cache= "no"
        Compressed= "no"
        PerMachine= "yes"
        Permanent= "yes"
        Vital= "yes"
        DownloadUrl="http://www.microsoft.com/en-in/download/confirmation.aspx?id=30653"
        DetectCondition="(Net4FullVersion = &quot;4.5.50709&quot;) AND (NOT VersionNT64 OR (Net4x64FullVersion = &quot;4.5.50709&quot;))">
        <RemotePayload
          ProductName="Microsoft .NET Framework 4.5"
          Description="Net45"
          Size="984000"
          Hash="9E8253F0A993E53B4809DBD74B335227"
          Version="4.5.50709.17929"/>
      </ExePackage>
 <MsiPackage
        Id="Installer"
        SourceFile="$(var.Installer.TargetPath)"
        Compressed="yes"
        Vital="yes"
        Permanent="no"
        DisplayInternalUI="yes"
        Visible="yes">
        <MsiProperty Name="INSTALLLOCATION" Value="[InstallFolder]" />
      </MsiPackage>

      <RollbackBoundary />
    </Chain>

回答1:


The size is wrong, you can look at the WiX toolset source code: https://github.com/wixtoolset/wix3/blob/develop/src/ext/NetFxExtension/wixlib/NetFx4.5.wxs. I would just copy that file into your project and make your modifications there.



来源:https://stackoverflow.com/questions/25264846/burn-installer-facing-error-net-45-0x80091007-the-hash-value-is-not-correct

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!