# How to deploy CapaInstaller agent from InTune

> Deploy the CapaInstaller Agent from Microsoft Intune, step by step.

Source: https://docs.capaone.com/capainstaller/knowledge-base/how-to-deploy-capainstaller-agent-from-intune/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

The CapaInstaller Agent can be deployed from InTune with these steps.

## Prerequisite

1. Create a folder on your computer called **InTune CapaInstaller**, with a **sub folder called InTuneOutput** and another **sub folder called InTunePackageConten**t (See picture).

   ![image-20250328-125415.png](/attachments/capainstaller-kb/9b065ab8-08da-4d97-96f8-d2f8c4ebc21f.png)
2. Download the Win32-Content-Prep-Tool: <https://github.com/Microsoft/Microsoft-Win32-Content-Prep-Tool> Place the IntuneWinAppUtil.exe In the InTune CapaInstaller folder.
3. You **must** be able to run a **command prompt as administrator.**

## Instructions

1. **Get the CapaInstaller Agent.xml** file and the **CapaInstallerAgentSetup.exe** from your CapaInstaller server. Open a **file explorer** and **browse to** your **CMP point → Resources → AgentInstaller** (C:\CapaInstaller\CMP\Resources\AgentInstaller)
2. **Copy** the **CapaInstaller Agent.xml** file and the **CapaInstallerAgentSetup.exe** to the **InTune CapaInstaller\InTunePackageContent folder.**
3. Download this Powershell script: [InstallCapaAgentinTuneContent.ps1](/attachments/capainstaller-kb/2fcb4771-e7ac-4f3e-8a46-ea70c0a9823b.ps1) and **copy it** to the **InTune CapaInstaller\InTunePackageContent folder.**
4. You can edit the Powershell script and **add a Installation Type** like “InTune Joined”. This makes it easier to locate which agents are deployed from InTune.

   ![image-20250328-130201.png](/attachments/capainstaller-kb/f80c7c71-826a-435f-acfc-2ffc5fa0082b.png)
5. Open a command prompt as administrator and browse to the **InTune CapaInstaller** folder, where the **IntuneWinAppUtil.exe** is placed.
6. Run this command: **IntuneWinAppUtil.exe -c "C:\Temp\InTune CapaInstaller\intunePackageContent" -s CapaInstallerAgentSetup.exe -o "C:\Temp\InTune CapaInstaller\inTuneOutput"** (Note you can always run **IntuneWinAppUtil.exe /?** to get the correct syntax)

   ![image-20250328-131015.png](/attachments/capainstaller-kb/1f1deb10-1b94-4921-9503-59ab53e0a2ed.png)
7. The InTune package should now been created.

   ![image-20250328-131200.png](/attachments/capainstaller-kb/6ec31da4-559b-4829-825d-dc6ef13e1cbd.png)
8. Go to your [Azure Portal](http://portal.azure.com) and select **InTune**.
9. Select **Apps** in the right pane menu.

   ![image-20250328-131411.png](/attachments/capainstaller-kb/31a8c027-75fe-4778-aa4a-09b2ca4a96fc.png)
10. Select **Windows.**

    ![image-20250328-131543.png](/attachments/capainstaller-kb/f10cae77-347c-471a-8b20-365a82dc0c1a.png)
11. Select **Create.**

    ![image-20250328-131636.png](/attachments/capainstaller-kb/2be3805a-74fb-45cb-bef3-396649cd845e.png)
12. Select **Windows App (Win32).** and click on **select**.

    ![image-20250328-131727.png](/attachments/capainstaller-kb/63bedc31-a7d3-4c9d-986d-78b13158c858.png)
13. Select, **Select app package file**

    ![image-20250328-131827.png](/attachments/capainstaller-kb/1a620fb4-ea8e-4807-b511-c74918c6b266.png)
14. Select the **CapaInstallerAgentSetup.intunewin** file in the **InTune CapaInstaller\InTuneOutput folder.**

    ![image-20250328-131943.png](/attachments/capainstaller-kb/c2524a02-2be9-439a-992f-5d3ba72292b1.png)
15. **Set the following App information** and click **Next**  
    - **Name**: CapaInstaller Agent 6.7.100  
    - **Description:** This will install the CapaInstaller Agent on the endpoint.  
    - **Publisher:** [CapaSystems.com](http://CapaSystems.com)  
    - **App Version:** 6.7.100  
    - **Logo:** Select this logo bellow

    ![CapaSystems logo only transparent.png](/attachments/capainstaller-kb/2463107f-9f9f-48ea-ac5e-de22c06db69f.png)![image-20250328-132251.png](/attachments/capainstaller-kb/0dbf1b6d-f064-454a-accf-fead992f566f.png)
16. **Set the following in the Program** tab  
    - **Install Command:** Powershell.exe -NoProfile -ExecutionPolicy ByPass -File .\InstallCapaAgentinTuneContent.ps1  
    - **UnInstall command:** Powershell.exe -NoProfile -ExecutionPolicy ByPass -File .\InstallCapaAgentinTuneContent.ps1  
    - **Installation time required (mins):** 5  
    - **Allow available uninstall:** No  
    - **Install Behavior**: System  
    - **Device restart behavior:** No Specific action

    ![image-20250328-133217.png](/attachments/capainstaller-kb/32a1ee74-3ed1-43ec-9157-a98be81272c7.png)
17. **Set the following in the Requirements** tab.  
    - **Operating system architecture:** 64-Bit  
    - **Minimum operating system:** Windows 10 - 1607

    ![image-20250328-134403.png](/attachments/capainstaller-kb/ac76939a-994a-471d-be2e-83b792e45050.png)
18. In the **detection rule** tab, **select Manually configure detection rules** and click on **+Add.**  
    - **Rule type:** File  
    - **Path:** C:\Program Files\CapaInstaller\Services\Cistub\  
    - **File or folder:** cistub.exe  
    - **Detection method:** File or folder exists  
    - **Associated with a 32-bit app on 64-bit clients:** No

    ![image-20250328-134009.png](/attachments/capainstaller-kb/03bb78e8-da47-4ba9-ab51-4fd5a04f53f1.png)
19. In the **Dependencies** tab, click **Next**.
20. In the **Supersedence** tab, click **Next.**
21. In the **Assignments** tab you can select what groups, users or devices, that the CapaInstaller agent should be deployed to.

    ![image-20250328-134321.png](/attachments/capainstaller-kb/c4297950-9929-42f9-9e1f-085569dbdcbe.png)
22. In the **Review + Create** tab, **check that the information you have provided is correct** and end with **Create.**  
    The application should now be created in the windows → Apps

    ![image-20250328-135327.png](/attachments/capainstaller-kb/da43a020-6a52-4a53-b1a8-47ec283a30bd.png)

:::note[Important]
Remember to select 32-bit in the requirements tab.  
Remember to select Install behavior as system.
:::

## Related

- [How to install MS Outlook App on Android device and configure it using AppConfig](/capainstaller/knowledge-base/how-to-install-ms-outlook-app-on-android-device-and-configure-it-using-appconfig/)
- [How to test certificates](/capainstaller/knowledge-base/how-to-test-certificates/)
- [CapaInstaller log files](/capainstaller/knowledge-base/capainstaller-log-files/)
