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?