Uninstall a single server on Windows
If you have a complete and functional uninstallation program, you can uninstall WebSphere Portal only or both WebSphere Portal and IBM WAS.
Prerequisites
Prepare to uninstall a single server on WindowsTo uninstall WebSphere Portal using the uninstallation program:
- Run the stopServer.bat WebSphere_Portal -username admin_userid -password foo task, from the WP_PROFILE/bin directory, to stop the WebSphere_Portal server.
- Verify that there are no other installations or uninstallations running.
- Locate and delete the portalinstall.lockfile file, if present, located in the %TEMP% directory; for example,C:/Documents and Settings/Administrator/Local Settings/Temp/portalinstall.lockfile.
The Portal installer creates the portalinstall.lockfile to prevent two installations or uninstallations from running simultaneously. This is a temporary file and ordinarily gets deleted when the installation or uninstallation successfully completes, but it may not get deleted during an aborted or crashed procedure. Until this file is deleted, it will not be possible to initiate another installation.
- Enter one of the following uninstallation commands:
Uninstallation commands
Option Commands Add or Remove Programs Open the Add or Remove Programs application from the Control Panel and select WebSphere Portal. GUI $PORTAL_HOME/uninstall/uninstall.bat Console mode $PORTAL_HOME/uninstall/uninstall.bat -console Silent $PORTAL_HOME/uninstall/uninstall.bat -options "/path/to/installresponse.txt" A sample uninstall response file (uninstallresponse.txt) are located in the setup CD root directory. Do not place the response file in a path that contains a space and do not put a space in the file name.
- Remove any remaining WebSphere Portal directories from directory structure.
- To remove WAS entries from OS's native registry using the native registry tool:
- Read the Windows™ help system for information about using the Windows Registry Editor.
When editing the Windows registry, computer may not function properly if you delete the wrong information. If this happens, see the Windows Help system for information on how to restore the registry.
- Click Start -> Run and then type regedit to start the Windows Registry Editor.
- Delete all entries under the HKEY_CURRENT_USER -> SOFTWARE -> IBM -> WAS Network Deployment, including the WAS entry.
- Run the sc delete service_name from a command prompt to remove a Windows service from the Services list and registry. Click Start -> Control Panel -> Administration Tools -> Services to view the WAS services names.
- Restart the machine, especially if you intend to reinstall WebSphere Portal on the same machine.
Parent
Single server: Uninstalling on Windows
Previous
Prepare to uninstall a single server on Windows
Related tasks
Uninstall manually on Windows