Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iis: Wix4InstallCertificates_X86 fails with x64 BUILDARCH #7784

Closed
matbech opened this issue Oct 13, 2023 · 4 comments
Closed

iis: Wix4InstallCertificates_X86 fails with x64 BUILDARCH #7784

matbech opened this issue Oct 13, 2023 · 4 comments

Comments

@matbech
Copy link

matbech commented Oct 13, 2023

  • Which version of WiX are you building with?
    4.0.2

  • Describe the problem and the steps to reproduce it.
    When using iis:Certificate with x64 BUILDARCH x64, the Wix4InstallCertificates_X86 action returns an error during the installation of the .msi. This does not happen with a .msi built with BUILDARCH x86

test.wxs

<Binary Id="DevRootCertificate" SourceFile="..\..\Dev Certificate Authority\ca.cert.pem" />

<Component Id="DevRootCertificate" Guid="">
  <iis:Certificate Id="Certificate.RootCA" Name="xyz Root certificate" Request="no" StoreLocation="localMachine" StoreName="root" Overwrite="yes" BinaryRef="DevRootCertificate" />
</Component>

Error from log
msiexec.exe /i test.msi /l* log.txt

Action start 14:04:53: Wix4InstallCertificates_X86.
InstallCertificates:  Error 0x8007065b: failed to add temporary row, dberr: 0, err: 
InstallCertificates:  Error 0x8007065b: Failed to add encoded hash for certificate: Certificate.RootCA

Note that the Wix4InstallCertificates_X64 action which comes before the Wix4InstallCertificates_X86 action succeeds.

@matbech matbech added the triage label Oct 13, 2023
@barnson
Copy link
Member

barnson commented Oct 13, 2023

An x64 package should have only 64-bit custom actions. Please attach or link to a repro case.

@matbech
Copy link
Author

matbech commented Oct 13, 2023

I figured out the cause. It happens when the Wix4InstallCertificates_X86 custom action is referenced in the After attribute.

<InstallExecuteSequence>
      <Custom Action="CA_SslCertificate_Rollback" After="Wix4InstallCertificates_X86" Condition="NOT REMOVE" />
</InstallExecuteSequence>

the wix build should probably fail in this case.

@barnson
Copy link
Member

barnson commented Oct 13, 2023

@barnson
Copy link
Member

barnson commented Oct 17, 2023

Another example of something that would be solved by #6821.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants