![]() maybe keep state if this only can be run onceĮventLogger.Write(String. This behavior can occur if you are running Windows NT on a Dell computer and Windows NT was. When you attempt to enable the Server service for the current hardware profile, the current hardware profile may be missing from the list of profiles or the Enable button may be unavailable. protected virtual void OnCustomCommand(int command) The specified service is disabled and cannot be started. c) Stop the service and then restart it, make sure the ' Startup Type' says 'Automatic ' and started. ![]() b) When the Services window loads, navigate to the Windows Installer service, then double click on it to open it. For that you can override OnCustomCommand and send a pre determined integer to ask the service to perform a particular task for example by calling sc virtualsvc control 128 from the commandline. Method 2: Stop and restart Windows Installer service a) Click on Start-Run, type services.msc, the click on OK. I have already tired going into safemode and turning on disabled services as well as updating windows. Cannot open word or other office applications. You might consider leaving the service running and use a CustomCommand to control if actual work needs to be done. The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. New VirtualServerInit(EventLogger).Run() ĮventLogger.Write("VirtualServerInit code was executed") ![]() ![]() protected override void OnStart(string args) By then the windows service manager already handled the succesful start of your service and hence no error will be sent to the Eventlog when Stop is called. The threadpool will put your workitem on the queue and once a thread it is available it will execute your Run method and then calls Stop on the service. Use a thread to make sure the OnStart method finishes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |