How to deploy CapaInstaller agent from InTune
The CapaInstaller Agent can be deployed from InTune with these steps.
Prerequisite
Create a folder on your computer called InTune CapaInstaller, with a sub folder called InTuneOutput and another sub folder called InTunePackageContent (See picture).
Download the Win32-Content-Prep-Tool: GitHub - microsoft/Microsoft-Win32-Content-Prep-Tool: A tool to wrap Win32 App and then it can be uploaded to Intune Place the IntuneWinAppUtil.exe In the InTune CapaInstaller folder.
You must be able to run a command prompt as administrator.
Instructions
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)
Copy the CapaInstaller Agent.xml file and the CapaInstallerAgentSetup.exe to the InTune CapaInstaller\InTunePackageContent folder.
Download this Powershell script: and copy it to the InTune CapaInstaller\InTunePackageContent folder.
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.
Open a command prompt as administrator and browse to the InTune CapaInstaller folder, where the IntuneWinAppUtil.exe is placed.
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)
The InTune package should now been created.
Go to your Azure Portal and select InTune.
Select Apps in the right pane menu.
Select Windows.
Select Create.
Select Windows App (Win32). and click on select.
Select, Select app package file
Select the CapaInstallerAgentSetup.intunewin file in the InTune CapaInstaller\InTuneOutput folder.
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
- App Version: 6.7.100
- Logo: Select this logo bellowSet 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 actionSet the following in the Requirements tab.
- Operating system architecture: 64-Bit
- Minimum operating system: Windows 10 - 1607In 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: NoIn the Dependencies tab, click Next.
In the Supersedence tab, click Next.
In the Assignments tab you can select what groups, users or devices, that the CapaInstaller agent should be deployed to.
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
Remember to select 32-bit in the requirements tab.
Remember to select Install behavior as system.