Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper usage of command line arguments for installing and naming the service #97

Open
jjwilliams42 opened this issue Jun 27, 2018 · 1 comment

Comments

@jjwilliams42
Copy link

Can you provide documentation for the proper usage of multiple command line arguments together?

We have an Octopus Deploy step to update our Windows Service, and are running this in our script:

./MyService.exe description:MyService$OctopusParameters["Octopus.Environment.Name"] display-name:MyService$OctopusParameters["Octopus.Environment.Name"] name:MyService$OctopusParameters["Octopus.Environment.Name"] action:install

This evaluates to:
./MyService.exe description:MyServiceBeta display-name:MyServiceBeta name:MyServiceBeta action:install

Yet the service is installed with the values I set in Program.Main() using the ServiceRunner<Service>(config => {}) apis (Name = "MY_SERVICE", Description = "My Service", Display Name = "My Service")

Which one should win? Can the command line not overwrite the values in the ServiceRunner?

@PeterKottas
Copy link
Owner

Yeah it seems the service runner overrides the cmd params. Logically it should be the other way around. I'
ll fix this when we accumulate a few issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants