diff options
Diffstat (limited to 'src/ca/serviceconfig.cpp')
-rw-r--r-- | src/ca/serviceconfig.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ca/serviceconfig.cpp b/src/ca/serviceconfig.cpp index c2b77035..04b25ffa 100644 --- a/src/ca/serviceconfig.cpp +++ b/src/ca/serviceconfig.cpp | |||
@@ -3,7 +3,7 @@ | |||
3 | #include "precomp.h" | 3 | #include "precomp.h" |
4 | 4 | ||
5 | // structs | 5 | // structs |
6 | LPCWSTR wzQUERY_SERVICECONFIG = L"SELECT `ServiceName`, `Component_`, `NewService`, `FirstFailureActionType`, `SecondFailureActionType`, `ThirdFailureActionType`, `ResetPeriodInDays`, `RestartServiceDelayInSeconds`, `ProgramCommandLine`, `RebootMessage` FROM `ServiceConfig`"; | 6 | LPCWSTR wzQUERY_SERVICECONFIG = L"SELECT `ServiceName`, `Component_`, `NewService`, `FirstFailureActionType`, `SecondFailureActionType`, `ThirdFailureActionType`, `ResetPeriodInDays`, `RestartServiceDelayInSeconds`, `ProgramCommandLine`, `RebootMessage` FROM `Wix4ServiceConfig`"; |
7 | enum eQUERY_SERVICECONFIG { QSC_SERVICENAME = 1, QSC_COMPONENT, QSC_NEWSERVICE, QSC_FIRSTFAILUREACTIONTYPE, QSC_SECONDFAILUREACTIONTYPE, QSC_THIRDFAILUREACTIONTYPE, QSC_RESETPERIODINDAYS, QSC_RESTARTSERVICEDELAYINSECONDS, QSC_PROGRAMCOMMANDLINE, QSC_REBOOTMESSAGE }; | 7 | enum eQUERY_SERVICECONFIG { QSC_SERVICENAME = 1, QSC_COMPONENT, QSC_NEWSERVICE, QSC_FIRSTFAILUREACTIONTYPE, QSC_SECONDFAILUREACTIONTYPE, QSC_THIRDFAILUREACTIONTYPE, QSC_RESETPERIODINDAYS, QSC_RESTARTSERVICEDELAYINSECONDS, QSC_PROGRAMCOMMANDLINE, QSC_REBOOTMESSAGE }; |
8 | 8 | ||
9 | // consts | 9 | // consts |
@@ -81,7 +81,7 @@ extern "C" UINT __stdcall SchedServiceConfig( | |||
81 | 81 | ||
82 | // Loop through all the services to be configured. | 82 | // Loop through all the services to be configured. |
83 | hr = WcaOpenExecuteView(wzQUERY_SERVICECONFIG, &hView); | 83 | hr = WcaOpenExecuteView(wzQUERY_SERVICECONFIG, &hView); |
84 | ExitOnFailure(hr, "Failed to open view on ServiceConfig table."); | 84 | ExitOnFailure(hr, "Failed to open view on Wix4ServiceConfig table."); |
85 | 85 | ||
86 | while (S_OK == (hr = WcaFetchRecord(hView, &hRec))) | 86 | while (S_OK == (hr = WcaFetchRecord(hView, &hRec))) |
87 | { | 87 | { |
@@ -106,7 +106,7 @@ extern "C" UINT __stdcall SchedServiceConfig( | |||
106 | ExitOnFailure(hr, "Failed to add name to CustomActionData."); | 106 | ExitOnFailure(hr, "Failed to add name to CustomActionData."); |
107 | 107 | ||
108 | hr = WcaGetRecordInteger(hRec, QSC_NEWSERVICE, &iData); | 108 | hr = WcaGetRecordInteger(hRec, QSC_NEWSERVICE, &iData); |
109 | ExitOnFailure(hr, "Failed to get ServiceConfig.NewService."); | 109 | ExitOnFailure(hr, "Failed to get Wix4ServiceConfig.NewService."); |
110 | hr = WcaWriteIntegerToCaData(0 != iData, &pwzCustomActionData); | 110 | hr = WcaWriteIntegerToCaData(0 != iData, &pwzCustomActionData); |
111 | ExitOnFailure(hr, "Failed to add NewService data to CustomActionData"); | 111 | ExitOnFailure(hr, "Failed to add NewService data to CustomActionData"); |
112 | 112 | ||
@@ -167,10 +167,10 @@ extern "C" UINT __stdcall SchedServiceConfig( | |||
167 | // setup CustomActionData and add to progress bar for download | 167 | // setup CustomActionData and add to progress bar for download |
168 | if (0 < cServices) | 168 | if (0 < cServices) |
169 | { | 169 | { |
170 | hr = WcaDoDeferredAction(PLATFORM_DECORATION(L"RollbackServiceConfig"), pwzScriptKey, cServices * COST_SERVICECONFIG); | 170 | hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"RollbackServiceConfig"), pwzScriptKey, cServices * COST_SERVICECONFIG); |
171 | ExitOnFailure(hr, "failed to schedule RollbackServiceConfig action"); | 171 | ExitOnFailure(hr, "failed to schedule RollbackServiceConfig action"); |
172 | 172 | ||
173 | hr = WcaDoDeferredAction(PLATFORM_DECORATION(L"ExecServiceConfig"), pwzCustomActionData, cServices * COST_SERVICECONFIG); | 173 | hr = WcaDoDeferredAction(CUSTOM_ACTION_DECORATION(L"ExecServiceConfig"), pwzCustomActionData, cServices * COST_SERVICECONFIG); |
174 | ExitOnFailure(hr, "failed to schedule ExecServiceConfig action"); | 174 | ExitOnFailure(hr, "failed to schedule ExecServiceConfig action"); |
175 | } | 175 | } |
176 | 176 | ||