Im setting up a deployment for my first windows service and I have a few questions.
1.
How would
I go about starting a windows service as soon as it is finished being
installed
Or, could I force a reboot after the installation, since the
service is set to auto start after being rebooted
2.
My program also requires that the 'Allow service to Interact with desktop' option is checked for the service's properties. Is their a way to do this as part of the deployment and installation instead of having to do it manually
Thanks

Start Windows Service After Install
KEnglish
I was mistaken, partially at least.
While .NET provides no automatic way to set it, you can do so manually in the registry or via WMI.
The registry method is explained in this Code Project article, while the WMI is explained in a comment to that article.
IndianScorpion
After testing this a while it seems that it is not working. I have the service calling another program every so often and after a few days I check my processes and it has a bunch of this program running but it is never displayed. It seems it only works correct when I stop the service, uncheck the Interact with desktop option, apply, then recheck the box and start the service then it works like its suppose.
Any ideas why it doesnt work when I check the box in code using the registry like I posted in my last post
Thanks
StoneCarver
On several of the products that my company sells that uses Windows Services, we have the following VBS script execute at the end of the installation process. To make it work in yours, just remember to change InsertYourServiceName to the name of your service:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colServiceList = objWMIService.ExecQuery _
("Select * from Win32_Service where Name='InsertYourServiceName'")
For each objService in colServiceList
objService.StartService()
Next
As for programmatically in the Service Installer allowing the service to interact with the desktop... my understanding is that there is no .NET way due to the security policy… I could be wrong though.
Totino
Then to Start the service after installation I just added a ServiceController to my ProjectInstaller for my service and set the servicename property to the name of the service I am installing and put serviceConroller1.start() right after the above code in the same event. So now after installation my program is set to work with desktop and it automatically starts.