Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 29th, 2007, 08:36 PM
Registered User
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Windows Service auto login

I have a windows service that I have to login into every time its reinstalled is there some way I can get it to automatically use the account I am using instead of the Local Service account.

Old November 30th, 2007, 05:04 AM
samjudson's Avatar
Friend of Wrox
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts

If you right click on the service design area and choose Add Installer then Visual Studio should add a ProjectInstaller class with two components. The serviceProcessInstaller component has properties which govern the default user to install the service as, LocalService, NetworkService, LocalSystem or User. User should do what you are after.

/- Sam Judson : Wrox Technical Editor -/

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Auto Start Windows Service virendar23 C# 2005 3 September 15th, 2011 03:16 PM
Impersonate with windows service for Service A/C vinod_yadav1919 C# 0 October 18th, 2008 02:29 PM
How to Auto Start Windows Service virendar23 .NET Framework 2.0 5 April 18th, 2008 11:43 AM
Accessing Windows service from a windows app sajid08 C# 1 October 6th, 2006 10:25 AM
auto refreshing using web service asajids78 .NET Web Services 0 September 11th, 2005 03:17 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.