Does anyone happen to know what the convention for Windows service key names is, which characters are legal?
Based on the documentation for the underlying C++ structure used to create a service:
The maximum string length is 256 characters. The service control manager database preserves the case of the characters, but service name comparisons are always case insensitive. Forward-slash (/) and backslash (\) are not valid service name characters.
Additionally, the following rules apply to the "Display Name":
This string has a maximum length of 256 characters. The name is case-preserved in the service control manager. Display name comparisons are always case-insensitive.
Additional Information to the Response from Richard Szalay.
According to ServiceInstaller.ServiceName
The ServiceName cannot be null or have zero length. ... It also cannot contain ... characters from the ASCII character set with value less than decimal value 32.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With