From 3e8b7eb4cb739be1881c621999616bc5bbbb0bdb Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sun, 11 Apr 2021 14:41:50 -0700 Subject: Support non-vital certificate installs --- src/ca/scacert.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ca/scacert.cpp') diff --git a/src/ca/scacert.cpp b/src/ca/scacert.cpp index cf979ee7..5eae905a 100644 --- a/src/ca/scacert.cpp +++ b/src/ca/scacert.cpp @@ -244,7 +244,7 @@ static HRESULT ConfigureCertificates( ExitOnFailure(hr, "Failed to pass Certificate.Certificate to deferred CustomAction."); hr = WcaWriteStringToCaData(pwzStoreName, &pwzCaData); ExitOnFailure(hr, "Failed to pass Certificate.StoreName to deferred CustomAction."); - hr = WcaWriteIntegerToCaData(SCA_CERT_ATTRIBUTE_BINARYDATA, &pwzCaData); + hr = WcaWriteIntegerToCaData(dwAttributes, &pwzCaData); ExitOnFailure(hr, "Failed to pass Certificate.Attributes to deferred CustomAction."); // Copy the rollback data from the deferred data because it's the same up to this point. @@ -268,6 +268,9 @@ static HRESULT ConfigureCertificates( hr = WcaWriteStringToCaData(pwzPFXPassword, &pwzRollbackCaData); ExitOnFailure(hr, "Failed to pass Certificate.PFXPassword to rollback CustomAction."); + + hr = WcaWriteIntegerToCaData(dwAttributes, &pwzCaData); + ExitOnFailure(hr, "Failed to pass Certificate.Attributes to deferred CustomAction."); } // Pick the right action to run based on what store we're uninstalling from. -- cgit v1.2.3-55-g6feb