How to fix "[SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion" when installing Artifactory as a service on windows

How to fix "[SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion" when installing Artifactory as a service on windows

AuthorFullName__c
Loren Yeung
articleNumber
000004222
ft:sourceType
Salesforce
FirstPublishedDate
2019-07-08T22:44:39Z
lastModifiedDate
2019-07-31
VersionNumber
3

Subject

Artifactory can fail to start up when installing on Windows Server 2016 or Windows 10, throwing the following error:
[SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion

Affected Versions

Artifactory versions 4.16 and above

Details

The installation can add a 'ఁ' symbol into the registry, which interferes with Artifactory during start up.  

Resolution

Upon further investigation into the registry editor, the ImagePath appears to be incorrect, under:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Artifactory
C:\Users\artifactory\jfrog-artifactory-pro-5.8.3\artifactory-pro-5.8.3\bin\artifactory-service.exe *<SYMBOL>*//RS//artifactory


Correcting this to:
C:\Users\artifactory\jfrog-artifactory-pro-5.8.3\artifactory-pro-5.8.3\bin\artifactory-service.exe //RS//artifactory

fixes the issue