In the 'ProcessInstaller' class Friend WithEvents YourServiceProcessInstaller As System.ServiceProcess.ServiceProcessInstaller Friend WithEvents YourServiceInstaller As System.ServiceProcess.ServiceInstaller <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() Me.YourServiceProcessInstaller = New System.ServiceProcess.ServiceProcessInstaller Me.YourServiceInstaller = New System.ServiceProcess.ServiceInstaller ' 'YourServiceProcessInstaller ' Me.YourServiceProcessInstaller.Account = System.ServiceProcess.ServiceAccount.LocalSystem Me.YourServiceProcessInstaller.Password = Nothing Me.YourServiceProcessInstaller.Username = Nothing ' 'YourServiceInstaller ' Me.YourServiceInstaller.DisplayName = "YourService" Me.YourServiceInstaller.ServiceName = "YourService" Me.YourServiceInstaller.StartType = System.ServiceProcess.ServiceStartMode.Automatic ' 'ProjectInstaller ' Me.Installers.AddRange(New System.Configuration.Install.Installer() {Me.YourServiceProcessInstaller, Me.YourServiceInstaller})
End Sub ps ----- Original Message ----- From: "Alex Smotritsky" <[EMAIL PROTECTED]> To: <ADVANCED-DOTNET@DISCUSS.DEVELOP.COM> Sent: Saturday, December 30, 2006 10:10 AM Subject: [ADVANCED-DOTNET] programmatic account change for a windows service
Is there a way to programmatically change the account that a service runs with? =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
=================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com