G
Guest
I'm trying to install a .NET Windows Service using the ServiceInstaller /
ServiceProcessInstaller classes. I cannot seem to find a way to specify
command line arguments.
I've looked through ServiceInstaller:Install method using reflector and it
appears that it is not possible.
According to the Win32 doco, the CreateService function in advapi32.dll
should be able to accept arguments to the binaryPath parameter. However the
Install method does not allow for this.
ServiceProcessInstaller classes. I cannot seem to find a way to specify
command line arguments.
I've looked through ServiceInstaller:Install method using reflector and it
appears that it is not possible.
According to the Win32 doco, the CreateService function in advapi32.dll
should be able to accept arguments to the binaryPath parameter. However the
Install method does not allow for this.