problem registering windows service

hi,

i'm using vs 2005 to develop a windows service, but i have a problem in the registration routine.
the program install and uninstall by command line without problems, but i would like to add a command line parameter in the service registration.
I'm using the TransactedClass installer to register it and a Installer class to register the assembly but i have problems in the definition of the parameter:
1. if I add the parameter in the assemblyPath parameter, all the row is enclosed in " ( "D:\Sorgenti\Web Specials 2\WsService\bin\Debug\WsService.exe -svc" ), and the command line parser handle all as a single command and don't start the service.
2. in i add other parameters in the command line of the InstallContext class i receive an exception when i try to install.

do you know how can i can this paramter

best regards,

luca



Answer this question

problem registering windows service

  • Sivaraman

    I have exactly the same problems

    Does anybody knows a solution


  • problem registering windows service