diff options
Diffstat (limited to 'src/ca')
-rw-r--r-- | src/ca/caDecor.h | 13 | ||||
-rw-r--r-- | src/ca/caSuffix.h | 11 | ||||
-rw-r--r-- | src/ca/iisca.vcxproj | 46 | ||||
-rw-r--r-- | src/ca/precomp.h | 2 | ||||
-rw-r--r-- | src/ca/scacert.cpp | 14 | ||||
-rw-r--r-- | src/ca/scacertexec.cpp | 2 | ||||
-rw-r--r-- | src/ca/scahttpheader.cpp | 2 | ||||
-rw-r--r-- | src/ca/scaiis.cpp | 6 | ||||
-rw-r--r-- | src/ca/scaiis7.cpp | 6 | ||||
-rw-r--r-- | src/ca/scasched.cpp | 8 |
10 files changed, 65 insertions, 45 deletions
diff --git a/src/ca/caDecor.h b/src/ca/caDecor.h new file mode 100644 index 00000000..da274650 --- /dev/null +++ b/src/ca/caDecor.h | |||
@@ -0,0 +1,13 @@ | |||
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/ca/caSuffix.h b/src/ca/caSuffix.h deleted file mode 100644 index 303a99e9..00000000 --- a/src/ca/caSuffix.h +++ /dev/null | |||
@@ -1,11 +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 _WIN64 | ||
6 | #define PLATFORM_DECORATION(f) f L"_64" | ||
7 | #elif defined ARM | ||
8 | #define PLATFORM_DECORATION(f) f L"_ARM" | ||
9 | #else | ||
10 | #define PLATFORM_DECORATION(f) f | ||
11 | #endif | ||
diff --git a/src/ca/iisca.vcxproj b/src/ca/iisca.vcxproj index 893130ed..4361b658 100644 --- a/src/ca/iisca.vcxproj +++ b/src/ca/iisca.vcxproj | |||
@@ -1,6 +1,5 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
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. --> | 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 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 3 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
5 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props')" /> | 4 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props')" /> |
6 | <Import Project="..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props" Condition="Exists('..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props')" /> | 5 | <Import Project="..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props" Condition="Exists('..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props')" /> |
@@ -14,25 +13,50 @@ | |||
14 | <Configuration>Release</Configuration> | 13 | <Configuration>Release</Configuration> |
15 | <Platform>Win32</Platform> | 14 | <Platform>Win32</Platform> |
16 | </ProjectConfiguration> | 15 | </ProjectConfiguration> |
16 | <ProjectConfiguration Include="Debug|x64"> | ||
17 | <Configuration>Debug</Configuration> | ||
18 | <Platform>x64</Platform> | ||
19 | </ProjectConfiguration> | ||
20 | <ProjectConfiguration Include="Release|x64"> | ||
21 | <Configuration>Release</Configuration> | ||
22 | <Platform>x64</Platform> | ||
23 | </ProjectConfiguration> | ||
24 | <ProjectConfiguration Include="Debug|ARM"> | ||
25 | <Configuration>Debug</Configuration> | ||
26 | <Platform>ARM</Platform> | ||
27 | </ProjectConfiguration> | ||
28 | <ProjectConfiguration Include="Release|ARM"> | ||
29 | <Configuration>Release</Configuration> | ||
30 | <Platform>ARM</Platform> | ||
31 | </ProjectConfiguration> | ||
32 | <ProjectConfiguration Include="Debug|ARM64"> | ||
33 | <Configuration>Debug</Configuration> | ||
34 | <Platform>ARM64</Platform> | ||
35 | </ProjectConfiguration> | ||
36 | <ProjectConfiguration Include="Release|ARM64"> | ||
37 | <Configuration>Release</Configuration> | ||
38 | <Platform>ARM64</Platform> | ||
39 | </ProjectConfiguration> | ||
17 | </ItemGroup> | 40 | </ItemGroup> |
18 | 41 | ||
19 | <PropertyGroup Label="Globals"> | 42 | <PropertyGroup Label="Globals"> |
20 | <ProjectGuid>{CB3FB8C4-14BF-4EA6-9F01-7FB258E5AEF3}</ProjectGuid> | 43 | <ProjectGuid>{CB3FB8C4-14BF-4EA6-9F01-7FB258E5AEF3}</ProjectGuid> |
21 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 44 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
22 | <TargetName>iisca</TargetName> | 45 | <TargetName>iisca</TargetName> |
23 | <PlatformToolset>v141</PlatformToolset> | 46 | <PlatformToolset>v142</PlatformToolset> |
24 | <CharacterSet>Unicode</CharacterSet> | 47 | <CharacterSet>Unicode</CharacterSet> |
25 | <ProjectModuleDefinitionFile>iisca.def</ProjectModuleDefinitionFile> | 48 | <ProjectModuleDefinitionFile>iisca.def</ProjectModuleDefinitionFile> |
26 | <Description>WiX Toolset Iis CustomAction</Description> | 49 | <Description>WiX Toolset Iis CustomAction</Description> |
50 | <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> | ||
27 | </PropertyGroup> | 51 | </PropertyGroup> |
28 | 52 | ||
29 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | 53 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
30 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | 54 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
31 | 55 | ||
32 | <PropertyGroup> | 56 | <PropertyGroup> |
33 | <ProjectAdditionalLinkLibraries>crypt32.lib;msi.lib;Ws2_32.lib</ProjectAdditionalLinkLibraries> | 57 | <ProjectAdditionalLinkLibraries>crypt32.lib;msi.lib;Ws2_32.lib</ProjectAdditionalLinkLibraries> |
34 | </PropertyGroup> | 58 | </PropertyGroup> |
35 | 59 | ||
36 | <ItemGroup> | 60 | <ItemGroup> |
37 | <ClCompile Include="dllmain.cpp"> | 61 | <ClCompile Include="dllmain.cpp"> |
38 | <PrecompiledHeader>Create</PrecompiledHeader> | 62 | <PrecompiledHeader>Create</PrecompiledHeader> |
@@ -76,9 +100,6 @@ | |||
76 | <ClCompile Include="scawebprop7.cpp" /> | 100 | <ClCompile Include="scawebprop7.cpp" /> |
77 | <ClCompile Include="scawebsvcext.cpp" /> | 101 | <ClCompile Include="scawebsvcext.cpp" /> |
78 | <ClCompile Include="scawebsvcext7.cpp" /> | 102 | <ClCompile Include="scawebsvcext7.cpp" /> |
79 | </ItemGroup> | ||
80 | |||
81 | <ItemGroup> | ||
82 | <ClInclude Include="caSuffix.h" /> | 103 | <ClInclude Include="caSuffix.h" /> |
83 | <ClInclude Include="CustomMsiErrors.h" /> | 104 | <ClInclude Include="CustomMsiErrors.h" /> |
84 | <ClInclude Include="precomp.h" /> | 105 | <ClInclude Include="precomp.h" /> |
@@ -119,15 +140,12 @@ | |||
119 | <ClInclude Include="scawebprop7.h" /> | 140 | <ClInclude Include="scawebprop7.h" /> |
120 | <ClInclude Include="scawebsvcext.h" /> | 141 | <ClInclude Include="scawebsvcext.h" /> |
121 | <ClInclude Include="scawebsvcext7.h" /> | 142 | <ClInclude Include="scawebsvcext7.h" /> |
122 | </ItemGroup> | ||
123 | |||
124 | <ItemGroup> | ||
125 | <None Include="packages.config" /> | 143 | <None Include="packages.config" /> |
126 | <None Include="iisca.def" /> | 144 | <None Include="iisca.def" /> |
127 | </ItemGroup> | 145 | </ItemGroup> |
128 | 146 | ||
129 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 147 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
130 | 148 | ||
131 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | 149 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
132 | <PropertyGroup> | 150 | <PropertyGroup> |
133 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | 151 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> |
@@ -135,4 +153,4 @@ | |||
135 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props'))" /> | 153 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.30\build\WixToolset.DUtil.props'))" /> |
136 | <Error Condition="!Exists('..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props'))" /> | 154 | <Error Condition="!Exists('..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.WcaUtil.4.0.16\build\WixToolset.WcaUtil.props'))" /> |
137 | </Target> | 155 | </Target> |
138 | </Project> | 156 | </Project> \ No newline at end of file |
diff --git a/src/ca/precomp.h b/src/ca/precomp.h index c797ce82..85ee0890 100644 --- a/src/ca/precomp.h +++ b/src/ca/precomp.h | |||
@@ -63,4 +63,4 @@ | |||
63 | #include "scassl7.h" | 63 | #include "scassl7.h" |
64 | #include "scaexecIIS7.h" | 64 | #include "scaexecIIS7.h" |
65 | 65 | ||
66 | #include "caSuffix.h" | 66 | #include "caDecor.h" |
diff --git a/src/ca/scacert.cpp b/src/ca/scacert.cpp index 90db6375..cf979ee7 100644 --- a/src/ca/scacert.cpp +++ b/src/ca/scacert.cpp | |||
@@ -165,7 +165,7 @@ static HRESULT ConfigureCertificates( | |||
165 | 165 | ||
166 | BYTE* pbCertificate = NULL; | 166 | BYTE* pbCertificate = NULL; |
167 | DWORD cbCertificate = 0; | 167 | DWORD cbCertificate = 0; |
168 | DWORD cbPFXPassword = 0; | 168 | DWORD_PTR cbPFXPassword = 0; |
169 | 169 | ||
170 | // Bail quickly if the Certificate table isn't around. | 170 | // Bail quickly if the Certificate table isn't around. |
171 | if (S_OK != WcaTableExists(L"Certificate")) | 171 | if (S_OK != WcaTableExists(L"Certificate")) |
@@ -273,7 +273,7 @@ static HRESULT ConfigureCertificates( | |||
273 | // Pick the right action to run based on what store we're uninstalling from. | 273 | // Pick the right action to run based on what store we're uninstalling from. |
274 | if (CERT_SYSTEM_STORE_LOCAL_MACHINE == dwStoreLocation) | 274 | if (CERT_SYSTEM_STORE_LOCAL_MACHINE == dwStoreLocation) |
275 | { | 275 | { |
276 | wzAction = L"DeleteMachineCertificate"; | 276 | wzAction = CUSTOM_ACTION_DECORATION(L"DeleteMachineCertificate"); |
277 | if (pbCertificate) | 277 | if (pbCertificate) |
278 | { | 278 | { |
279 | wzRollbackAction = L"RollbackDeleteMachineCertificate"; | 279 | wzRollbackAction = L"RollbackDeleteMachineCertificate"; |
@@ -281,7 +281,7 @@ static HRESULT ConfigureCertificates( | |||
281 | } | 281 | } |
282 | else | 282 | else |
283 | { | 283 | { |
284 | wzAction = L"DeleteUserCertificate"; | 284 | wzAction = CUSTOM_ACTION_DECORATION(L"DeleteUserCertificate"); |
285 | if (pbCertificate) | 285 | if (pbCertificate) |
286 | { | 286 | { |
287 | wzRollbackAction = L"RollbackDeleteUserCertificate"; | 287 | wzRollbackAction = L"RollbackDeleteUserCertificate"; |
@@ -304,13 +304,13 @@ static HRESULT ConfigureCertificates( | |||
304 | // Pick the right action to run based on what store we're installing into. | 304 | // Pick the right action to run based on what store we're installing into. |
305 | if (CERT_SYSTEM_STORE_LOCAL_MACHINE == dwStoreLocation) | 305 | if (CERT_SYSTEM_STORE_LOCAL_MACHINE == dwStoreLocation) |
306 | { | 306 | { |
307 | wzAction = L"AddMachineCertificate"; | 307 | wzAction = CUSTOM_ACTION_DECORATION(L"AddMachineCertificate"); |
308 | wzRollbackAction = L"RollbackAddMachineCertificate"; | 308 | wzRollbackAction = CUSTOM_ACTION_DECORATION(L"RollbackAddMachineCertificate"); |
309 | } | 309 | } |
310 | else | 310 | else |
311 | { | 311 | { |
312 | wzAction = L"AddUserCertificate"; | 312 | wzAction = CUSTOM_ACTION_DECORATION(L"AddUserCertificate"); |
313 | wzRollbackAction = L"RollbackAddUserCertificate"; | 313 | wzRollbackAction = CUSTOM_ACTION_DECORATION(L"RollbackAddUserCertificate"); |
314 | } | 314 | } |
315 | dwCost = COST_CERT_ADD; | 315 | dwCost = COST_CERT_ADD; |
316 | } | 316 | } |
diff --git a/src/ca/scacertexec.cpp b/src/ca/scacertexec.cpp index ff87f485..4bb4ef95 100644 --- a/src/ca/scacertexec.cpp +++ b/src/ca/scacertexec.cpp | |||
@@ -148,7 +148,7 @@ static HRESULT ExecuteCertificateOperation( | |||
148 | LPWSTR pwzFilePath = NULL; | 148 | LPWSTR pwzFilePath = NULL; |
149 | BYTE* pbData = NULL; | 149 | BYTE* pbData = NULL; |
150 | DWORD cbData = 0; | 150 | DWORD cbData = 0; |
151 | DWORD cbPFXPassword = 0; | 151 | DWORD_PTR cbPFXPassword = 0; |
152 | 152 | ||
153 | BOOL fUserStoreLocation = (CERT_SYSTEM_STORE_CURRENT_USER == dwStoreLocation); | 153 | BOOL fUserStoreLocation = (CERT_SYSTEM_STORE_CURRENT_USER == dwStoreLocation); |
154 | HCERTSTORE hCertStore = NULL; | 154 | HCERTSTORE hCertStore = NULL; |
diff --git a/src/ca/scahttpheader.cpp b/src/ca/scahttpheader.cpp index a8fea796..1e134cea 100644 --- a/src/ca/scahttpheader.cpp +++ b/src/ca/scahttpheader.cpp | |||
@@ -159,7 +159,7 @@ HRESULT ScaWriteHttpHeader( | |||
159 | LPWSTR pwz = NULL; | 159 | LPWSTR pwz = NULL; |
160 | LPWSTR pwzHeaders = NULL; | 160 | LPWSTR pwzHeaders = NULL; |
161 | LPWSTR pwzNewHeader = NULL; | 161 | LPWSTR pwzNewHeader = NULL; |
162 | DWORD dwFoundHeaderIndex = 0; | 162 | DWORD_PTR dwFoundHeaderIndex = 0; |
163 | LPCWSTR wzFoundHeader = NULL; | 163 | LPCWSTR wzFoundHeader = NULL; |
164 | BOOL fOldValueFound = FALSE; | 164 | BOOL fOldValueFound = FALSE; |
165 | 165 | ||
diff --git a/src/ca/scaiis.cpp b/src/ca/scaiis.cpp index a29af1db..958051ed 100644 --- a/src/ca/scaiis.cpp +++ b/src/ca/scaiis.cpp | |||
@@ -12,13 +12,13 @@ HRESULT ScaMetabaseTransaction(__in_z LPCWSTR wzBackup) | |||
12 | 12 | ||
13 | // TODO: These functions have been reported to hang IIS (O11:51709). They may have been fixed in IIS6, but if not, need to be re-written the hard way | 13 | // TODO: These functions have been reported to hang IIS (O11:51709). They may have been fixed in IIS6, but if not, need to be re-written the hard way |
14 | 14 | ||
15 | hr = WcaDoDeferredAction(L"StartMetabaseTransaction", wzBackup, COST_IIS_TRANSACTIONS); | 15 | hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"StartMetabaseTransaction"), wzBackup, COST_IIS_TRANSACTIONS); |
16 | ExitOnFailure(hr, "Failed to schedule StartMetabaseTransaction"); | 16 | ExitOnFailure(hr, "Failed to schedule StartMetabaseTransaction"); |
17 | 17 | ||
18 | hr = WcaDoDeferredAction(L"RollbackMetabaseTransaction", wzBackup, 0); // rollback cost is irrelevant | 18 | hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"RollbackMetabaseTransaction"), wzBackup, 0); // rollback cost is irrelevant |
19 | ExitOnFailure(hr, "Failed to schedule RollbackMetabaseTransaction"); | 19 | ExitOnFailure(hr, "Failed to schedule RollbackMetabaseTransaction"); |
20 | 20 | ||
21 | hr = WcaDoDeferredAction(L"CommitMetabaseTransaction", wzBackup, 0); // commit is free | 21 | hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"CommitMetabaseTransaction"), wzBackup, 0); // commit is free |
22 | ExitOnFailure(hr, "Failed to schedule StartMetabaseTransaction"); | 22 | ExitOnFailure(hr, "Failed to schedule StartMetabaseTransaction"); |
23 | 23 | ||
24 | LExit: | 24 | LExit: |
diff --git a/src/ca/scaiis7.cpp b/src/ca/scaiis7.cpp index f0f4a629..aaf307d7 100644 --- a/src/ca/scaiis7.cpp +++ b/src/ca/scaiis7.cpp | |||
@@ -8,13 +8,13 @@ HRESULT ScaIIS7ConfigTransaction(LPCWSTR wzBackup) | |||
8 | { | 8 | { |
9 | HRESULT hr = S_OK; | 9 | HRESULT hr = S_OK; |
10 | 10 | ||
11 | hr = WcaDoDeferredAction(L"StartIIS7ConfigTransaction", wzBackup, COST_IIS_TRANSACTIONS); | 11 | hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"StartIIS7ConfigTransaction"), wzBackup, COST_IIS_TRANSACTIONS); |
12 | ExitOnFailure(hr, "Failed to schedule StartIIS7ConfigTransaction"); | 12 | ExitOnFailure(hr, "Failed to schedule StartIIS7ConfigTransaction"); |
13 | 13 | ||
14 | hr = WcaDoDeferredAction(L"RollbackIIS7ConfigTransaction", wzBackup, 0); // rollback cost is irrelevant | 14 | hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"RollbackIIS7ConfigTransaction"), wzBackup, 0); // rollback cost is irrelevant |
15 | ExitOnFailure(hr, "Failed to schedule RollbackIIS7ConfigTransaction"); | 15 | ExitOnFailure(hr, "Failed to schedule RollbackIIS7ConfigTransaction"); |
16 | 16 | ||
17 | hr = WcaDoDeferredAction(L"CommitIIS7ConfigTransaction", wzBackup, 0); // commit is free | 17 | hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"CommitIIS7ConfigTransaction"), wzBackup, 0); // commit is free |
18 | ExitOnFailure(hr, "Failed to schedule StartIIS7ConfigTransaction"); | 18 | ExitOnFailure(hr, "Failed to schedule StartIIS7ConfigTransaction"); |
19 | 19 | ||
20 | LExit: | 20 | LExit: |
diff --git a/src/ca/scasched.cpp b/src/ca/scasched.cpp index cdece45d..de021275 100644 --- a/src/ca/scasched.cpp +++ b/src/ca/scasched.cpp | |||
@@ -331,7 +331,7 @@ extern "C" UINT __stdcall ConfigureIIs( | |||
331 | // This must remain trace only, CA data may contain password | 331 | // This must remain trace only, CA data may contain password |
332 | WcaLog(LOGMSG_TRACEONLY, "Custom Action Data for ConfigureIIS7Exec will be: %ls", pwzCustomActionData); | 332 | WcaLog(LOGMSG_TRACEONLY, "Custom Action Data for ConfigureIIS7Exec will be: %ls", pwzCustomActionData); |
333 | 333 | ||
334 | hr = WcaDoDeferredAction(L"ConfigureIIs7Exec", pwzCustomActionData, ConfigureIIsCost); | 334 | hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"ConfigureIIs7Exec"), pwzCustomActionData, ConfigureIIsCost); |
335 | ExitOnFailure(hr, "Failed to schedule ConfigureIIs7Exec custom action"); | 335 | ExitOnFailure(hr, "Failed to schedule ConfigureIIs7Exec custom action"); |
336 | 336 | ||
337 | ReleaseNullStr(pwzCustomActionData); | 337 | ReleaseNullStr(pwzCustomActionData); |
@@ -340,7 +340,7 @@ extern "C" UINT __stdcall ConfigureIIs( | |||
340 | hr = WcaWriteStringToCaData(pwzScriptKey, &pwzCustomActionData); | 340 | hr = WcaWriteStringToCaData(pwzScriptKey, &pwzCustomActionData); |
341 | ExitOnFailure(hr, "Failed to add script key to CustomActionData."); | 341 | ExitOnFailure(hr, "Failed to add script key to CustomActionData."); |
342 | 342 | ||
343 | hr = WcaDoDeferredAction(L"WriteIIS7ConfigChanges", pwzCustomActionData, WriteIIS7ConfigChangesCost); | 343 | hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"WriteIIS7ConfigChanges"), pwzCustomActionData, WriteIIS7ConfigChangesCost); |
344 | ExitOnFailure(hr, "Failed to schedule WriteMetabaseChanges custom action"); | 344 | ExitOnFailure(hr, "Failed to schedule WriteMetabaseChanges custom action"); |
345 | } | 345 | } |
346 | else | 346 | else |
@@ -348,7 +348,7 @@ extern "C" UINT __stdcall ConfigureIIs( | |||
348 | // This must remain trace only, CA data may contain password | 348 | // This must remain trace only, CA data may contain password |
349 | WcaLog(LOGMSG_TRACEONLY, "Custom Action Data for ConfigureIISExec will be: %ls", pwzCustomActionData); | 349 | WcaLog(LOGMSG_TRACEONLY, "Custom Action Data for ConfigureIISExec will be: %ls", pwzCustomActionData); |
350 | 350 | ||
351 | hr = WcaDoDeferredAction(L"ConfigureIIsExec", pwzCustomActionData, ConfigureIIsCost); | 351 | hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"ConfigureIIsExec"), pwzCustomActionData, ConfigureIIsCost); |
352 | ExitOnFailure(hr, "Failed to schedule ConfigureIISExec custom action"); | 352 | ExitOnFailure(hr, "Failed to schedule ConfigureIISExec custom action"); |
353 | 353 | ||
354 | ReleaseNullStr(pwzCustomActionData); | 354 | ReleaseNullStr(pwzCustomActionData); |
@@ -357,7 +357,7 @@ extern "C" UINT __stdcall ConfigureIIs( | |||
357 | hr = WcaWriteStringToCaData(pwzScriptKey, &pwzCustomActionData); | 357 | hr = WcaWriteStringToCaData(pwzScriptKey, &pwzCustomActionData); |
358 | ExitOnFailure(hr, "Failed to add script key to CustomActionData."); | 358 | ExitOnFailure(hr, "Failed to add script key to CustomActionData."); |
359 | 359 | ||
360 | hr = WcaDoDeferredAction(L"WriteMetabaseChanges", pwzCustomActionData, WriteMetabaseChangesCost); | 360 | hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"WriteMetabaseChanges"), pwzCustomActionData, WriteMetabaseChangesCost); |
361 | ExitOnFailure(hr, "Failed to schedule WriteMetabaseChanges custom action"); | 361 | ExitOnFailure(hr, "Failed to schedule WriteMetabaseChanges custom action"); |
362 | } | 362 | } |
363 | 363 | ||