Skip to content

Running topshelf windows service with dynamic parameters in registry #2

@mehajabeeny

Description

@mehajabeeny

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions