windows-users

Will Windows wait for my service on startup?

I've written a service that is to be started automatically. It does some initialization stuff in its OnStart method, including setting up SENS watchers for who logs in. Will Windows wait until my OnStart method is complete before it allows uers to log in, or is it possible that such a login could happen before my watchers are set up, if...

How to get the currently logged in windows user with NAnt

I have a NAnt script that does a build and deployment of an ASP.Net application. This lives on a remote machine that many people log into to perform builds. (this is not automated for various reasons that are irrelevant) Upon success or failure of the Nant script, I have an email being sent out to a team distribution list, stating that...

Setting a window service to run as the current user when it is installed using InstallUtil.exe

Is there a way to install a windows service and automatically set it up to run as the current user without having to manually fill in details each time it installs? We're developing a windows service and want to automate the installation of the service on developer machines so everyone can get up and running on the project very quickly...