This reverts commit 6e62c10fa0.
This commit is contained in:
@@ -49,15 +49,6 @@ bool MyCreateServiceW(LPCWSTR serviceName, LPCWSTR displayName, LPCWSTR binaryPa
|
||||
WcaLog(LOGMSG_STANDARD, "Service installed successfully\n");
|
||||
}
|
||||
|
||||
SERVICE_DELAYED_AUTO_START_INFO delayedStart = { TRUE };
|
||||
if (!ChangeServiceConfig2W(
|
||||
schService,
|
||||
SERVICE_CONFIG_DELAYED_AUTO_START_INFO,
|
||||
&delayedStart
|
||||
)) {
|
||||
WcaLog(LOGMSG_STANDARD, "Failed to configure delayed auto-start for service: %ls, Error: %d\n", serviceName, GetLastError());
|
||||
}
|
||||
|
||||
CloseServiceHandle(schService);
|
||||
CloseServiceHandle(schSCManager);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user