This technote provides information on using Microsoft's service control utility to remove a ProjectWise service that will not uninstall. In general, using the control panel's "Add or Remove Programs" dialog should uninstall the software provided for ProjectWise services to run. On occasion, these services get ‘stuck' in the operating system and for one reason or another, refuse to uninstall. Bentley technical support has had reports of this happening, especially when there were more than a few ProjectWise services installed. Microsoft provides a command line utility that (in most cases) will remove the service when the add\remove programs dialog fails. This utility is known as SC.exe standing for ‘Service Control'. It is used for communicating with the service control manger and services.
A working knowledge of Microsoft services, and running DOS commands via a command (DOS) prompt.
Before running the utility you will need to find out the real name of the service. This name can be different from the display name.
1. To find the real name of the service a. Go to control panel \ Administrative tools \ Services. b. Locate the service you want to uninstall. c. Right click on the service and choose properties. d. On the General tab, find the ‘service name’. e. For example; The ProjectWise integration server service name is ’PWAppSrv’.2. To remove the service using the Service Control utility. a. Open a command prompt window. b. Type the following command: SC delete In the example above the command would be: SC delete PWAppSrvNote: If the command is successful you should get the following message[SC] DeleteService SUCCESSYou may need to reboot the computer to refresh the list in the services manager.To see additional switch options for the Service Control utility, simply type SC at the command prompt and hit enter.
On occasion the software may still be listed in add\remove programs even though the service no longer exists. To resolve this problem, run a registry cleaner such as Piriform Ltd’s “CCLEANER” or Microsoft’s “Windows Installer CleanUp Utility.”
If using the SC.exe command does not solve the problem the last resort is to delete the service from the registry and then remove any files associated with the service. 1. Go to start, run and then type regedit. 2. Navigate to the following registry path. HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services 3. Find the service you wish to remove 4. Take note of any paths and files that the service may be using. 5. In the registry editor, right click on the Service folder \ Key you want to remove and choose delete. 6. You will need to reboot the computer to refresh the list in the services manager. Note: ProjectWise services are listed under ProjectWise, except for Orchestration Framework, which is listed under Bentley Orchestration Shepherd.
Product TechNotes and FAQs
Bentley Technical Support KnowledgeBase
Bentley LEARN Server
Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!