Uninstalling Klocwork

Uninstalling Klocwork

To avoid duplicate entries in the Windows Control Panel and incorrect plug-in version numbers in your IDEs, uninstall the current version of Klocwork before downgrading to a previous version.

Before you uninstall

If you will be modifying or uninstalling a Server package or connected desktop installation, you must stop the Klocwork Servers first. See Stopping the Klocwork Servers.

If you are uninstalling the Server package, in addition to stopping the servers, you should also make a backup copy of your projects_root directory and any configuration files you modified, such as kwfilter.conf). For Linux and Windows, compiler configuration files are located in <server_install>/config. For more information about backing up data, see Backing up Klocwork data.

While the Windows version of the Klocwork Server package won't uninstall the projects_root directory or configuration files, it's a good idea to make a backup of these directories. For Linux systems, there is no automated uninstall, so make sure you back up your projects_root and any other data files you want to keep and store them outside your Server installation directory. Then you can delete the Server installation directory.

See also Repairing a Windows installation of Klocwork.

Viewing installed components or modifying your installation on Windows

Use the procedure below if you want to remove one or more Klocwork components, or if you need to check what components are currently installed. For example, if you need to uninstall Klocwork before installing a new version, you should check what components are currently installed before uninstalling, so that you can install the same components for the new version.

To view installed components or partially uninstall Klocwork:

  1. In the Start menu, go to Control Panel > Add or Remove Programs .

    Windows: From the Control Panel window, under Programs, select Uninstall a program.

  2. Scroll to and click the Server or desktop plug-in you want information on.
  3. To find information about patches, make sure the Show updates checkbox is selected at the top of the Add or Remove Programs panel.

    The installed patches will be displayed under the Klocwork installation package entry.

  4. Click Change.

    The Welcome screen for the Modification wizard appears.

  5. Click Next.

    The Program Maintenance panel appears.

  6. Select Modify and click Next.
  7. The Custom Setup screen appears. Click through it to see what components (features) are installed.

    This symbol indicates a component that is installed:

  8. If you are simply viewing installed components:
  9. Record which components are installed.
  10. Click Cancel.
  11. Click Yes when asked if you are sure.
  12. Click Finish.
  13. If you want to uninstall certain components, or install components you did not previously install:
  14. For the components you want to uninstall, click This feature will not be available.

    For the components you want to install, click This feature, and all subfeatures, will be installed on local hard drive.

  15. Click Next.

    The Ready to Modify the Program screen appears.

  16. Click Install.

    The features you selected will be modified.

  17. Click Finish.

Uninstalling Klocwork from a Windows machine

To remove a Klocwork software package:

  1. From the Start menu, click All Programs > Klocwork 2023.3.
  2. Select the uninstaller for the component that you want to uninstall.

Uninstalling in unattended mode on Windows

To run uninstallation in unattended mode from a Windows machine, enter the following command:

<installer.exe> /S /v"/qn REMOVE=ALL"

where <installer.exe> is the package you want to uninstall

An uninstallation log file will be saved to %USERPROFILE%\Local Settings\Temp. The log file is named Klocwork<release>-<package>.log. For example, the uninstallation log file for the Klocwork 2021.1 Server package is named Klocwork21.1-Server.log.

Uninstalling on Linux

Viewing installed components on a Linux machine

If you are upgrading to a new version of Klocwork, check what components are currently installed before uninstalling, so that you can install the same components from the new version.

To list installed components (features), run the following command:

kwupdate [option ...] --list

See kwupdate for the full list of options.

To uninstall on Linux, simply delete the Server package and/or desktop plug-in package installation directory.

Uninstalling plug-ins

Eclipse

To uninstall the Klocwork plug-in from Eclipse:

Eclipse 3.4 Eclipse 3.5 and up
  1. From the Help menu, choose Help > Software Updates > Manage Configuration.
  2. The Product Configuration dialog appears.
  3. Expand the items in the navigation pane until you see the Klocwork feature.
  4. Right-click the Klocwork feature and choose Uninstall, and click Yes to confirm that you want to disable this feature.
  1. From the Help menu, choose Help > About Eclipse"
  2. Click Installation Details.
  3. Select the Klocwork plug-in from the list and click Uninstall.

When you're prompted to restart Eclipse, click Yes.

Once Eclipse restarts, the Klocwork buttons and menu items are no longer present. If you haven't uninstalled the Klocwork desktop analysis plug-in for Eclipse, your Klocwork projects remain in their storage location.

IntelliJ IDEA/Android Studio/CLion

  1. Go to File > Settings.
  2. Click Plugins.
  3. Click on the relevant Klocwork plugin (For example, Klocwork Static Analysis for CLion), click the down arrow and select Uninstall.
  4. Confirm you want to uninstall by selecting Yes.
  5. Click Restart IDE and select Restart.
  6. Your IDE will restart and the Klocwork plugin is now removed.

    You must restart IntelliJ IDEA/Android Studio/CLion after uninstallation, before you install a new version of Klocwork.

Klocwork extension for Visual Studio

  1. In Visual Studio, click Help > Add and Remove Help Content.
  2. For the Klocwork Desktop Plugin, click Remove.
  3. Click Update and then close the Help Viewer.
  4. In Visual Studio, go to Tools > Extensions and Updates.
  5. In the list of Installed items, find Klocwork Static Analysis and click Uninstall.
  6. Restart Visual Studio in order for the changes to take effect.