Hi,
How do you change the Startup Type of a Windows Service with VB.NET?
When using the ServiceControll er you can Start and Stop a Service, but I
can't find anywhere how to change the Startup Type?
Thanks a lot in advance,
Pieter 3 10717
Look at the StartType property of the ServiceInstalle r class.
Hi
You can have this code to start the service automatically :
serviceInstalle r1.StartType =
System.ServiceP rocess.ServiceS tartMode.Automa tic;
This must be added in the ProjectInstalle r class.
,,,
Senthil
"Gabriele G. Ponti" <ggponti.at.hot mail.com> wrote in message
news:u3******** ******@TK2MSFTN GP15.phx.gbl... Look at the StartType property of the ServiceInstalle r class.
"DraguVaso" wrote: Hi,
How do you change the Startup Type of a Windows Service with VB.NET? When using the ServiceControll er you can Start and Stop a Service, but I can't find anywhere how to change the Startup Type?
Thanks a lot in advance,
Pieter This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Matt Rapoport |
last post by:
I'd like to programmatically remove a service or change its startup
type to disabled. I know how to remove it from the command line but
is there another way using the win32 extensions?
I've looked through the win32 help file but when it lists the
arguments for its methods (such as win32service.ChangeServiceConfig)
it doesn't give a dictionary of possible arguments. How can I tell
what int is associated with what Access Type (in...
|
by: DevMountain |
last post by:
I am running the ASP.NET State service on 3 servers and one
workstation. I have set the startup type to 'Automatic' on all
instances.
After rebooting any of these machines, the service does not start and
when I check the startup type it has been chaanged back to manual.
When I start the servie manually it runs fine, so I don't think that
there's a permissions issue.
|
by: Vinay |
last post by:
HI,
I am writing a utility which will list all the services
running on system like services.msc program. Now I want
to display the Startup type of service like
manual/automation.
How can I get that property? I just want to read that
property, and do not want to create new one.
TIA,
|
by: normb |
last post by:
I'm writing a C# app in which I need to get the Startup type of a couple of
services that are registered on the machine. I need to record what the
Startup type value is at the time of program execution. However, I'm not
having much luck getting this done.
Would anyone know how to query a service's Startup type and get the value
(either Automatic, Manual, or Disabled) that is set?
Thanks!
|
by: DraguVaso |
last post by:
Hi,
How do you change the Startup Type of a Windows Service with VB.NET?
When using the ServiceController you can Start and Stop a Service, but I
can't find anywhere how to change the Startup Type?
Thanks a lot in advance,
Pieter
| |
by: rqcoder |
last post by:
Is there a way to change a Service's startup type somewhere in the .net
framework?
I've been messing around with the System.ServiceProcess namespace which
allows me to start, stop and pause services however if the service's
startup type is set to "Disabled" there is no way for me to change it
to Automatic or Manual... attempting to start a disabled service
results in exceptions (i.e. ServiceController.Start).
|
by: NetworkElf |
last post by:
I am trying to write a little utility and it needs to check the startup type
of a given service on a remote machine and, if it is disabled, set it to
manual. I have found out how to do this on the local machine using
ServiceInstaller.StartType, but I cannot seem to find a way to specify the
name of a remote machine to perform this action upon.
I know that ServiceController will allow me to talk to a remote system and
start/stop services,...
|
by: =?Utf-8?B?QW5kcmV3?= |
last post by:
Hi, friends,
I tried to use ServiceController() to find out a service's Startup Type, Log
On As, but could not. Any ideas?
Thanks a lot.
|
by: SwapnilD |
last post by:
I'm creating a webservice in vb.net version 2.0 on my local machine, deploying it to v1.1 on development server and getting an error "Could not create type 'Service'." Below is the code snippet that I wrote to create a web service
- Service.asmx file
<%@ WebService Language="vb" CodeBehind="~/App_Code/Service.vb" Class="Service"%>
- Service.vb file in "App_Code" folder
WebService(Namespace:="http://www.abc.com/Service")> _
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |