Topshelf.StartParameters icon indicating copy to clipboard operation
Topshelf.StartParameters copied to clipboard

Problem using WithStartParameter

Open SimonHellings opened this issue 7 years ago • 1 comments

Hi; This is a long shot but I've just run into this and think it is a great addition but I've run into a problem.

when I call WithStartParameter it doesn't seem to install correctly

If I use the constant method it appears to work fine: x.WithStartParameter("config", "test", Function(a) myVar = a)

and installing with MyApp.exe install

results in this in my startup params of my service: -config "test"

However this: x.WithStartParameter("config", Function(a) myVar = a)

using MyApp.exe install -config "test" results in this being installed: -tsspconfig "test"

Please advise - I thought I had followed the instructions closely.

Thank you in advance for your time.

SimonHellings avatar Mar 28 '19 01:03 SimonHellings

Hi Sorry for the very late answer (Let's assume I was in another Universe!)

I explained thoroughly why it is working this way in issue #7

r1pper avatar Jul 14 '19 16:07 r1pper