Math-for-Data-Science icon indicating copy to clipboard operation
Math-for-Data-Science copied to clipboard

Running topshelf windows service with dynamic parameters in registry

Open mehajabeeny opened this issue 3 years ago • 0 comments

Facing issue to start a service (using topshelf) when a dynamic parameter is added in registry ImagePath of the service.

Note: I am not talking about -displayname, -servicename, -description and -displayname. Talking about some dynamic parameter (like -filename "confifFile.xml") Is there any particular format to read/write to registry in this case using sc.exe?

Sample: ImagePath C:\service.exe -fileName "configFileName.xml" --> does not work

Can anyone help me in this regard?

mehajabeeny avatar Mar 11 '21 16:03 mehajabeeny