r1pper / Topshelf.StartParameters

A small extension that enables Topshelf based services to have start parameters
MIT License
28 stars 7 forks source link

Problem using WithStartParameter #5

Open SimonHellings opened 5 years ago

SimonHellings commented 5 years ago

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.

r1pper commented 5 years ago

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