is there a way to set my start parameters in code? i've got a windows service whose ServiceStartMode is manual and requires start parameters. i'd like to change the ServiceStartMode to Automatic and just set some start parameter property so that if the machine were to go down the service automatically starts back up (i.e., not requiring me to manually start the service back up). thanks, arthur
ok, sorry to have wasted your time with this one. all i had to do was grab the config file for the RemotingConfiguration.Configure method to use in OnStart. here's another one though: is there anyway to actually install the service when i run the .net setup project? right now i have to manually call installutil.exe. thanks, arthur
after trying about 20 different things suggested in as many different sites, i realized my service host project also had an installer in it. i simply added the project to the install custom action and it installed the service upon running the setup. it would have been nice if the example i used to create my service (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT15.asp) mentioned this. on the bright side, this was the solution that required the least amount of extra effort.