views:

9

answers:

1

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. We're using InstallUtil.exe to do the install.

Our service can't run as local service, local system or network service because of the resources it needs access to. We know that it's possible to pass in a username and password but would like to avoid setting up a domain user just so we can automate the install if there's a better option.