Skip to content

How to deploy CapaInstaller agent from InTune

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

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

    Folder InTune CapaInstaller with the subfolders InTuneOutput and InTunePackageContent

  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.

  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 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.

    Installation type variable in the PowerShell script set to InTune Joined

  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)

    IntuneWinAppUtil.exe command run in an administrator command prompt

  7. The InTune package should now been created.

    CapaInstallerAgentSetup.intunewin file created in the InTuneOutput folder

  8. Go to the Microsoft Intune admin center.

  9. Select Apps in the left menu.

    Apps in the Microsoft Intune admin center menu

  10. Select Windows.

    Windows selected under Apps

  11. Select Create.

    Create button on the Windows apps page

  12. Select Windows App (Win32). and click on select.

    Windows app (Win32) selected as the app type

  13. Select, Select app package file

    Select app package file link

  14. Select the CapaInstallerAgentSetup.intunewin file in the InTune CapaInstaller\InTuneOutput folder.

    CapaInstallerAgentSetup.intunewin selected as the app package file

  15. Set the following App information and click Next. The name and version are examples. Use the version of your CapaInstaller Agent.

    • Name: CapaInstaller Agent 6.7.100
    • Description: This will install the CapaInstaller Agent on the endpoint.
    • Publisher: CapaSystems.com
    • App Version: 6.7.100
    • Logo: Select this logo bellow

    CapaSystems logoApp information tab filled in for the CapaInstaller Agent

  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

    Program tab with the install and uninstall commands

  17. Set the following in the Requirements tab.

    • Operating system architecture: 64-Bit
    • Minimum operating system: Windows 10 - 1607

    Requirements tab with operating system architecture and minimum operating system

  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

    Detection rule for cistub.exe in the CapaInstaller Services folder

  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.

    Assignments tab of the Win32 app

  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

    CapaInstaller Agent listed under Windows apps