# CapaOne CustomApp Fails to Install in the Console

> Fix a CapaOne CustomApp that fails to install after being deployed to an endpoint from the CapaInstaller console.

Source: https://docs.capaone.com/capainstaller/troubleshooting/capaone-customapp-fails-to-install-in-the-console/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Problem

When downloading a Custom App from CapaOne deplyoing it to a endpoint in the CapaInstaller console, the installation fails.

**example from failed log:**

*2025-04-04 14:27:10 - Shell\_Execute: Calling function with args: command: 'C:\ProgramData\CiBaseAgent\Temp\tmp-7-Zip\7z2408-x64.exe', arguments: '/S', wait: 'True', windowstyle: '0', mustexist: 'False', workingdirectory: ''*  
*2025-04-04 14:27:10 - \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Something bad happened at line 73: Exception calling "Shell\_Execute" with "6" argument(s): "An error occurred trying to start process 'C:\ProgramData\CiBaseAgent\Temp\tmp-7-Zip\7z2408-x64.exe' with working directory 'C:\Windows\system32'. The system cannot find the file specified."*  
*2025-04-04 14:27:10 - SCRIPT ENDED WITH EXITCODE: -2146233087*

## Solution

The CapaOne CustomApp has a PowerBrick that needs to be updated.

1. Go to your [CapaOne Portal](https://dash.capaone.com/)
2. Select **Applications** under **Windows**.
3. Find your **application**, click on the **3 dots** to the right of the name and select **edit.**

   ![image-20250404-124313.png](/attachments/capainstaller-kb/b71a4924-7d3e-4233-95d6-49fbfb4b2b3c.png)
4. Click on **Open PowerBrick Editor**

   ![image-20250404-124421.png](/attachments/capainstaller-kb/b13f5593-03ac-4dab-90bd-411db2530d9e.png)
5. Click on the **3 dots** to the right of the **PowerBrick with the exclamation mark** and select **Upgrade.**

   ![image-20250404-124512.png](/attachments/capainstaller-kb/edfb4914-d82b-40dd-a695-d5f7abb017fa.png)
6. The exclamation mark is now gone and the PowerBrick has been upgraded.

   ![image-20250404-124822.png](/attachments/capainstaller-kb/809a34ff-154b-4798-8abb-6db88193c166.png)
7. Download the CustomApp and import it into the CapaInstaller console (remember to delete earlier package first)

:::note[Important]
**A PowerBrick needs to be updated in the CustomApp**  
  
**Example from log file:**  
2025-04-04 14:27:10 - Shell\_Execute: Calling function with args: command: 'C:\ProgramData\CiBaseAgent\Temp\tmp-7-Zip\7z2408-x64.exe', arguments: '/S', wait: 'True', windowstyle: '0', mustexist: 'False', workingdirectory: ''  
2025-04-04 14:27:10 - \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Something bad happened at line 73: Exception calling "Shell\_Execute" with "6" argument(s): "An error occurred trying to start process 'C:\ProgramData\CiBaseAgent\Temp\tmp-7-Zip\7z2408-x64.exe' with working directory 'C:\Windows\system32'. The system cannot find the file specified."  
2025-04-04 14:27:10 - SCRIPT ENDED WITH EXITCODE: -2146233087
:::
