Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 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 September 25th, 2007, 08:27 AM
Registered User
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to set the windows service logon properties.

Hi Friends,

I need to set the logon properties of windows services through coding. I m using the following code :

Me.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalService
Me.serviceProcessInstaller1.Password = "password"
Me.serviceProcessInstaller1.Username = "username"

Service is building perfectly but it shows installation failed at the time of installation.

I also want to set the recovery tab options for the service by coding

Please friends let me know the answer asap.....





Similar Threads
Thread Thread Starter Forum Replies Last Post
Impersonate with windows service for Service A/C vinod_yadav1919 C# 0 October 18th, 2008 02:29 PM
How to dynamically set windows service C# ,asp.ne vinod_yadav1919 C# 6 April 9th, 2008 01:51 AM
Access VBA of Logon Windows junexie Access VBA 1 March 7th, 2007 08:30 AM
Accessing Windows service from a windows app sajid08 C# 1 October 6th, 2006 10:25 AM
How to detect if a user is logon a Windows NT øej Pro VB.NET 2002/2003 1 January 23rd, 2004 10:30 AM





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