How to pass a parameter to a windows service once and for all at install instead of each start

前端 未结 8 2113
南旧
南旧 2020-12-09 04:13

We have a Windows Service application that can accept command line parameters like:

MyService -option 

So far, when we want to start the

8条回答
  •  感动是毒
    2020-12-09 04:44

    The only thing that worked for me was to add the parameter to the ImagePath on the registry like the following image :

提交回复
热议问题