Sometime we can got issue during Fix pack installation or update execution (possible issue too during change license from dev to production one):
In installation log file:
15:25:24:>> ProcessWrapper.Execute: Arguments: description "K2 Configuration Service" "The K2 configuration and registry service."
15:25:24:>> ProcessWrapper.Execute: Timeout: 600000
15:25:25:>> ProcessWrapper.Execute: Process Output: [SC] ChangeServiceConfig2 FAILED 1072:
The specified service has been marked for deletion.
15:25:25:>> RunProcess.Execute: Failed executing external process. Exception: sc.exe did not complete execution, navigate to D:\K2\NOP58FixPack09\Nintex Automation K2 (5.8) FP09\sc.exe and run the executable.
15:25:25:>> ActionBase.LogWarningsErrors: Logged Warning: Done with action: RunProcess. Success: false
Certainly linked to a strange state of the windows service "K2 Configuration Service".
Generally, rebooting the server itself fix the issue.
Current on the setup, we can have the messages:
"Warning: This computer is scheduled to restart soon. It is strongly recommended to restart the computer before proceeding with this installation."
Or in some cases:
"Another installation process has been detected. Wait for the installation process to finish."
We can have this same type of check before execution of the FP or Update installer or K2 setup manager:
Example of message:
"Warning: Following K2 windows services are marked to be deleted:
{List}. It could generated issue during installer execution. It is strongly recommended to restart the computer before proceeding with this execution."
It will be better to have only one execution to do instead of 2 (One with 'The specified service has been marked for deletion' and one execution after reboot of the server).
Here some web site for reference how to do it:
majorgeeks.com/content/page/the_specified_service_has_been_marked_for_deletion.html (https://majorgeeks.com/content/page/the_specified_service_has_been_marked_for_deletion.html )
HKLM > SYSTEM > CurrentControlSet > Services > SERVICE NAME > DeleteFlag
stackoverflow.com/questions/5321825/verify-if-a-service-is-marked-for-deletion (https://stackoverflow.com/questions/5321825/verify-if-a-service-is-marked-for-deletion )