aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2023-02-01 20:22:50 -0500
committerBob Arnson <github@bobs.org>2023-02-01 21:27:12 -0500
commit77b1f6715534192ab143dd9109aacc50fc78e52a (patch)
treebffa59d3206d56f683274be3ad6bad30f0731097
parent92d6c3255a72d14f40b25b4c94fa88e563a7092d (diff)
downloadwix-77b1f6715534192ab143dd9109aacc50fc78e52a.tar.gz
wix-77b1f6715534192ab143dd9109aacc50fc78e52a.tar.bz2
wix-77b1f6715534192ab143dd9109aacc50fc78e52a.zip
Fix CustomActionData names.
Fixes https://github.com/wixtoolset/issues/issues/7189. Also: - Clean up duplicate caDecor.h. - Clean up use of CUSTOM_ACTION_DECORATION.
-rw-r--r--src/ext/Http/ca/caDecor.h13
-rw-r--r--src/ext/Http/ca/precomp.h2
-rw-r--r--src/ext/Http/ca/snisslcert.cpp8
-rw-r--r--src/ext/Http/ca/wixhttpca.cpp8
-rw-r--r--src/ext/NetFx/ca/caDecor.h13
-rw-r--r--src/ext/NetFx/ca/netfxca.cpp9
-rw-r--r--src/ext/NetFx/ca/precomp.h2
-rw-r--r--src/ext/Sql/ca/caDecor.h13
-rw-r--r--src/ext/Sql/ca/precomp.h2
-rw-r--r--src/ext/Util/ca/OsInfo.cpp1
-rw-r--r--src/ext/Util/ca/caDecor.h13
-rw-r--r--src/ext/Util/ca/precomp.h2
-rw-r--r--src/ext/Util/ca/utilca.vcxproj1
13 files changed, 17 insertions, 70 deletions
diff --git a/src/ext/Http/ca/caDecor.h b/src/ext/Http/ca/caDecor.h
deleted file mode 100644
index da274650..00000000
--- a/src/ext/Http/ca/caDecor.h
+++ /dev/null
@@ -1,13 +0,0 @@
1#pragma once
2// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
3
4
5#if defined(_M_ARM64)
6#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_A64"
7#elif defined(_M_AMD64)
8#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_X64"
9#elif defined(_M_ARM)
10#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_ARM"
11#else
12#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_X86"
13#endif
diff --git a/src/ext/Http/ca/precomp.h b/src/ext/Http/ca/precomp.h
index c78d78c1..42287cb2 100644
--- a/src/ext/Http/ca/precomp.h
+++ b/src/ext/Http/ca/precomp.h
@@ -15,7 +15,7 @@
15 15
16#include "cost.h" 16#include "cost.h"
17 17
18#include "caDecor.h" 18#include "..\..\caDecor.h"
19 19
20enum eHandleExisting 20enum eHandleExisting
21{ 21{
diff --git a/src/ext/Http/ca/snisslcert.cpp b/src/ext/Http/ca/snisslcert.cpp
index e9cafd66..81cd5298 100644
--- a/src/ext/Http/ca/snisslcert.cpp
+++ b/src/ext/Http/ca/snisslcert.cpp
@@ -420,16 +420,16 @@ static UINT SchedHttpSniSslCerts(
420 420
421 if (WCA_TODO_INSTALL == todoSched) 421 if (WCA_TODO_INSTALL == todoSched)
422 { 422 {
423 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"WixRollbackHttpSniSslCertsInstall"), sczRollbackCustomActionData, cCertificates * COST_HTTP_SNI_SSL); 423 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"RollbackHttpSniSslCertsInstall"), sczRollbackCustomActionData, cCertificates * COST_HTTP_SNI_SSL);
424 ExitOnFailure(hr, "Failed to schedule install SNI SSL certificate rollback"); 424 ExitOnFailure(hr, "Failed to schedule install SNI SSL certificate rollback");
425 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"WixExecHttpSniSslCertsInstall"), sczCustomActionData, cCertificates * COST_HTTP_SNI_SSL); 425 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"ExecHttpSniSslCertsInstall"), sczCustomActionData, cCertificates * COST_HTTP_SNI_SSL);
426 ExitOnFailure(hr, "Failed to schedule install SNI SSL certificate execution"); 426 ExitOnFailure(hr, "Failed to schedule install SNI SSL certificate execution");
427 } 427 }
428 else 428 else
429 { 429 {
430 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"WixRollbackHttpSniSslCertsUninstall"), sczRollbackCustomActionData, cCertificates * COST_HTTP_SNI_SSL); 430 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"RollbackHttpSniSslCertsUninstall"), sczRollbackCustomActionData, cCertificates * COST_HTTP_SNI_SSL);
431 ExitOnFailure(hr, "Failed to schedule uninstall SNI SSL certificate rollback"); 431 ExitOnFailure(hr, "Failed to schedule uninstall SNI SSL certificate rollback");
432 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"WixExecHttpSniSslCertsUninstall"), sczCustomActionData, cCertificates * COST_HTTP_SNI_SSL); 432 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"ExecHttpSniSslCertsUninstall"), sczCustomActionData, cCertificates * COST_HTTP_SNI_SSL);
433 ExitOnFailure(hr, "Failed to schedule uninstall SNI SSL certificate execution"); 433 ExitOnFailure(hr, "Failed to schedule uninstall SNI SSL certificate execution");
434 } 434 }
435 } 435 }
diff --git a/src/ext/Http/ca/wixhttpca.cpp b/src/ext/Http/ca/wixhttpca.cpp
index e24096bb..be2db913 100644
--- a/src/ext/Http/ca/wixhttpca.cpp
+++ b/src/ext/Http/ca/wixhttpca.cpp
@@ -191,16 +191,16 @@ static UINT SchedHttpUrlReservations(
191 191
192 if (WCA_TODO_INSTALL == todoSched) 192 if (WCA_TODO_INSTALL == todoSched)
193 { 193 {
194 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"WixRollbackHttpUrlReservationsInstall"), sczRollbackCustomActionData, cUrlReservations * COST_HTTP_URL_ACL); 194 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"RollbackHttpUrlReservationsInstall"), sczRollbackCustomActionData, cUrlReservations * COST_HTTP_URL_ACL);
195 ExitOnFailure(hr, "Failed to schedule install URL reservations rollback."); 195 ExitOnFailure(hr, "Failed to schedule install URL reservations rollback.");
196 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"WixExecHttpUrlReservationsInstall"), sczCustomActionData, cUrlReservations * COST_HTTP_URL_ACL); 196 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"ExecHttpUrlReservationsInstall"), sczCustomActionData, cUrlReservations * COST_HTTP_URL_ACL);
197 ExitOnFailure(hr, "Failed to schedule install URL reservations execution."); 197 ExitOnFailure(hr, "Failed to schedule install URL reservations execution.");
198 } 198 }
199 else 199 else
200 { 200 {
201 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"WixRollbackHttpUrlReservationsUninstall"), sczRollbackCustomActionData, cUrlReservations * COST_HTTP_URL_ACL); 201 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"RollbackHttpUrlReservationsUninstall"), sczRollbackCustomActionData, cUrlReservations * COST_HTTP_URL_ACL);
202 ExitOnFailure(hr, "Failed to schedule uninstall URL reservations rollback."); 202 ExitOnFailure(hr, "Failed to schedule uninstall URL reservations rollback.");
203 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"WixExecHttpUrlReservationsUninstall"), sczCustomActionData, cUrlReservations * COST_HTTP_URL_ACL); 203 hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"ExecHttpUrlReservationsUninstall"), sczCustomActionData, cUrlReservations * COST_HTTP_URL_ACL);
204 ExitOnFailure(hr, "Failed to schedule uninstall URL reservations execution."); 204 ExitOnFailure(hr, "Failed to schedule uninstall URL reservations execution.");
205 } 205 }
206 } 206 }
diff --git a/src/ext/NetFx/ca/caDecor.h b/src/ext/NetFx/ca/caDecor.h
deleted file mode 100644
index da274650..00000000
--- a/src/ext/NetFx/ca/caDecor.h
+++ /dev/null
@@ -1,13 +0,0 @@
1#pragma once
2// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
3
4
5#if defined(_M_ARM64)
6#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_A64"
7#elif defined(_M_AMD64)
8#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_X64"
9#elif defined(_M_ARM)
10#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_ARM"
11#else
12#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_X86"
13#endif
diff --git a/src/ext/NetFx/ca/netfxca.cpp b/src/ext/NetFx/ca/netfxca.cpp
index cd086c53..57eb96b1 100644
--- a/src/ext/NetFx/ca/netfxca.cpp
+++ b/src/ext/NetFx/ca/netfxca.cpp
@@ -795,24 +795,23 @@ extern "C" UINT __stdcall SchedNetFx(
795 // Schedule the install custom action 795 // Schedule the install custom action
796 if (pwzInstallCustomActionData && *pwzInstallCustomActionData) 796 if (pwzInstallCustomActionData && *pwzInstallCustomActionData)
797 { 797 {
798 hr = WcaSetProperty(L"NetFxExecuteNativeImageInstall", pwzInstallCustomActionData); 798 hr = WcaSetProperty(CUSTOM_ACTION_DECORATION(L"NetFxExecuteNativeImageInstall"), pwzInstallCustomActionData);
799 ExitOnFailure(hr, "failed to schedule NetFxExecuteNativeImageInstall action"); 799 ExitOnFailure(hr, "failed to schedule NetFxExecuteNativeImageInstall action");
800 800
801 hr = WcaSetProperty(L"NetFxExecuteNativeImageCommitInstall", pwzInstallCustomActionData); 801 hr = WcaSetProperty(CUSTOM_ACTION_DECORATION(L"NetFxExecuteNativeImageCommitInstall"), pwzInstallCustomActionData);
802 ExitOnFailure(hr, "failed to schedule NetFxExecuteNativeImageCommitInstall action"); 802 ExitOnFailure(hr, "failed to schedule NetFxExecuteNativeImageCommitInstall action");
803 } 803 }
804 804
805 // Schedule the uninstall custom action 805 // Schedule the uninstall custom action
806 if (pwzUninstallCustomActionData && *pwzUninstallCustomActionData) 806 if (pwzUninstallCustomActionData && *pwzUninstallCustomActionData)
807 { 807 {
808 hr = WcaSetProperty(L"NetFxExecuteNativeImageUninstall", pwzUninstallCustomActionData); 808 hr = WcaSetProperty(CUSTOM_ACTION_DECORATION(L"NetFxExecuteNativeImageUninstall"), pwzUninstallCustomActionData);
809 ExitOnFailure(hr, "failed to schedule NetFxExecuteNativeImageUninstall action"); 809 ExitOnFailure(hr, "failed to schedule NetFxExecuteNativeImageUninstall action");
810 810
811 hr = WcaSetProperty(L"NetFxExecuteNativeImageCommitUninstall", pwzUninstallCustomActionData); 811 hr = WcaSetProperty(CUSTOM_ACTION_DECORATION(L"NetFxExecuteNativeImageCommitUninstall"), pwzUninstallCustomActionData);
812 ExitOnFailure(hr, "failed to schedule NetFxExecuteNativeImageCommitUninstall action"); 812 ExitOnFailure(hr, "failed to schedule NetFxExecuteNativeImageCommitUninstall action");
813 } 813 }
814 814
815
816LExit: 815LExit:
817 ReleaseStr(pwzInstallCustomActionData); 816 ReleaseStr(pwzInstallCustomActionData);
818 ReleaseStr(pwzUninstallCustomActionData); 817 ReleaseStr(pwzUninstallCustomActionData);
diff --git a/src/ext/NetFx/ca/precomp.h b/src/ext/NetFx/ca/precomp.h
index db618bce..aa90be4f 100644
--- a/src/ext/NetFx/ca/precomp.h
+++ b/src/ext/NetFx/ca/precomp.h
@@ -14,5 +14,5 @@
14#include "dirutil.h" 14#include "dirutil.h"
15#include "guidutil.h" 15#include "guidutil.h"
16 16
17#include "caDecor.h" 17#include "..\..\caDecor.h"
18#include "cost.h" 18#include "cost.h"
diff --git a/src/ext/Sql/ca/caDecor.h b/src/ext/Sql/ca/caDecor.h
deleted file mode 100644
index da274650..00000000
--- a/src/ext/Sql/ca/caDecor.h
+++ /dev/null
@@ -1,13 +0,0 @@
1#pragma once
2// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
3
4
5#if defined(_M_ARM64)
6#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_A64"
7#elif defined(_M_AMD64)
8#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_X64"
9#elif defined(_M_ARM)
10#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_ARM"
11#else
12#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_X86"
13#endif
diff --git a/src/ext/Sql/ca/precomp.h b/src/ext/Sql/ca/precomp.h
index e92abdc5..c18d3624 100644
--- a/src/ext/Sql/ca/precomp.h
+++ b/src/ext/Sql/ca/precomp.h
@@ -23,4 +23,4 @@
23#include "scacost.h" 23#include "scacost.h"
24#include "scasqlstr.h" 24#include "scasqlstr.h"
25 25
26#include "caDecor.h" 26#include "..\..\caDecor.h"
diff --git a/src/ext/Util/ca/OsInfo.cpp b/src/ext/Util/ca/OsInfo.cpp
index 005407af..593e3b0c 100644
--- a/src/ext/Util/ca/OsInfo.cpp
+++ b/src/ext/Util/ca/OsInfo.cpp
@@ -330,6 +330,7 @@ LExit:
330 { 330 {
331 ::LocalFree(psid); 331 ::LocalFree(psid);
332 } 332 }
333
333 ReleaseStr(pwzPropertyValue); 334 ReleaseStr(pwzPropertyValue);
334 return hr; 335 return hr;
335} 336}
diff --git a/src/ext/Util/ca/caDecor.h b/src/ext/Util/ca/caDecor.h
deleted file mode 100644
index da274650..00000000
--- a/src/ext/Util/ca/caDecor.h
+++ /dev/null
@@ -1,13 +0,0 @@
1#pragma once
2// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
3
4
5#if defined(_M_ARM64)
6#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_A64"
7#elif defined(_M_AMD64)
8#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_X64"
9#elif defined(_M_ARM)
10#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_ARM"
11#else
12#define CUSTOM_ACTION_DECORATION(f) L"Wix4" f L"_X86"
13#endif
diff --git a/src/ext/Util/ca/precomp.h b/src/ext/Util/ca/precomp.h
index 98e61e1a..efde32a6 100644
--- a/src/ext/Util/ca/precomp.h
+++ b/src/ext/Util/ca/precomp.h
@@ -51,4 +51,4 @@
51#include "scasmb.h" 51#include "scasmb.h"
52#include "scasmbexec.h" 52#include "scasmbexec.h"
53 53
54#include "caDecor.h" 54#include "..\..\caDecor.h"
diff --git a/src/ext/Util/ca/utilca.vcxproj b/src/ext/Util/ca/utilca.vcxproj
index 8fe26942..758f075c 100644
--- a/src/ext/Util/ca/utilca.vcxproj
+++ b/src/ext/Util/ca/utilca.vcxproj
@@ -79,7 +79,6 @@
79 </ItemGroup> 79 </ItemGroup>
80 80
81 <ItemGroup> 81 <ItemGroup>
82 <ClInclude Include="caDecor.h" />
83 <ClInclude Include="cost.h" /> 82 <ClInclude Include="cost.h" />
84 <ClInclude Include="CustomMsiErrors.h" /> 83 <ClInclude Include="CustomMsiErrors.h" />
85 <ClInclude Include="precomp.h" /> 84 <ClInclude Include="precomp.h" />