Parameters to Windows Service.. RRS feed

  • Question


    While installing windows service, can we pass parameters to it?

    I have a method in Windows service which I am calling from my Windows Serivice and I need to pass parameters to it at runtime..

    Monday, May 12, 2008 6:13 AM


  • Hi newbie0915,

    As far as I know, while the .Net windows service was being installed, you can do something in the ServiceInstaller and ServiceProcessInstaller events handler, such as calling a method and pass some parameters.




    Thursday, May 15, 2008 8:46 AM