# Uninstall EXE

> Uninstall software using an EXE uninstaller.

Source: https://docs.capaone.com/capaone/application-manager/powerbricks/uninstall-exe/  
Product: CapaOne — a separate CapaSystems product; do not apply this page to any other.

Uninstall software using an EXE uninstaller

## Parameters

#### Executable Path
*Required*

Remember to include the [Download Content] PowerBrick when using $PackageRoot. Ex. $PackageRoot\uninstall.exe

#### Executable Arguments
*Optional*

The arguments to be used during the uninstallation

#### Working Directory Path
*Optional*

The full path of the working directory

#### Await Executable
*Required* — Default: `True`

Wait for the executable to terminate before proceeding

#### Window Style
*Optional* — Default: `Hidden`

The window style to be used during the uninstallation Allowed values: `Hidden`, `Normal`, `Minimized`, `Maximized`.

#### Check Executable Existence
*Required* — Default: `False`

Check if the executable exists before starting the uninstallation

#### Return Code Handles
*Required*

Specify return codes and their status. Unlisted return codes will cause failure. Allowed values: `Success`, `Retry Execution Later`.

## Details

- **Category:** Installer
- **Brick ID:** `Uninstall-EXE`

## Raw JSON definition

**JSON**

```json
{
  "category": "installer",
  "description": "Uninstall software using an EXE uninstaller",
  "developerVendor": "CapaSystems A/S",
  "displayName": null,
  "id": "Uninstall-EXE",
  "name": "Uninstall EXE",
  "parameters": [
    {
      "allowManualInput": null,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "Remember to include the [Download Content] PowerBrick when using $PackageRoot. Ex. $PackageRoot\\uninstall.exe",
      "id": "ProcessPath",
      "name": "Executable Path",
      "regExValidation": "",
      "required": true,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": null,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "The arguments to be used during the uninstallation",
      "id": "ProcessArguments",
      "name": "Executable Arguments",
      "regExValidation": "",
      "required": false,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": null,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "The full path of the working directory",
      "id": "WorkingDirectory",
      "name": "Working Directory Path",
      "regExValidation": "",
      "required": false,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": null,
      "defaultValue": "True",
      "defaultValueObject": null,
      "description": "Wait for the executable to terminate before proceeding",
      "id": "ProcessWait",
      "name": "Await Executable",
      "regExValidation": "",
      "required": true,
      "type": "Boolean",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": null,
      "defaultValue": null,
      "defaultValueObject": {
        "id": "0",
        "name": "Hidden"
      },
      "description": "The window style to be used during the uninstallation",
      "id": "WindowStyle",
      "name": "Window Style",
      "regExValidation": "",
      "required": false,
      "type": "ComboBox",
      "value": null,
      "values": [],
      "valuesObject": [
        {
          "id": "0",
          "name": "Hidden"
        },
        {
          "id": "1",
          "name": "Normal"
        },
        {
          "id": "2",
          "name": "Minimized"
        },
        {
          "id": "3",
          "name": "Maximized"
        }
      ]
    },
    {
      "allowManualInput": null,
      "defaultValue": "False",
      "defaultValueObject": null,
      "description": "Check if the executable exists before starting the uninstallation",
      "id": "CheckProcessExist",
      "name": "Check Executable Existence",
      "regExValidation": "",
      "required": true,
      "type": "Boolean",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": null,
      "defaultValue": [
        {
          "code": 0,
          "option": {
            "name": "Success",
            "id": "success"
          }
        },
        {
          "code": 3010,
          "option": {
            "name": "Success",
            "id": "success"
          }
        }
      ],
      "defaultValueObject": null,
      "description": "Specify return codes and their status. Unlisted return codes will cause failure.",
      "id": "Codehandle",
      "name": "Return Code Handles",
      "regExValidation": "",
      "required": true,
      "type": "CodeHandles",
      "value": null,
      "values": [],
      "valuesObject": [
        {
          "id": "success",
          "name": "Success"
        },
        {
          "id": "retrylater",
          "name": "Retry Execution Later"
        }
      ]
    }
  ],
  "powershell": {
    "base64Encoded": true,
    "function": "RnVuY3Rpb2..."
  },
  "type": "powerbrick",
  "version": "2026.7.2.1"
}
```
