This guide describes how to deploy Windows applications using Chocolatey via Microsoft Intune, with automatic updates enabled for apps installed through the Chocolatey package manager.
- All necessary files are located in this repository.
- Installation and uninstallation PowerShell scripts are included for review.
- To find a Chocolatey app, search the Chocolatey Community Repository.
- Note the exact app name as listed on the Chocolatey website (e.g., for
choco install adobereader, useadobereader).
-
Login to Intune Admin Center
Go to: Apps > Windows > + Create -
App Type
Select: Windows app (Win32) -
App Information
- Upload the
chocoInstall.intunewinfile (found in this repo). - Fill in the required information.
- Upload the
-
Program Page
- Change
"appname"to the app you are installing. - Install command:
%WINDIR%\sysnative\WindowsPowershell\v1.0\powershell.exe -executionpolicy bypass -file .\chocoInstall.ps1 -app "appname" - Uninstall command:
%WINDIR%\sysnative\WindowsPowershell\v1.0\powershell.exe -executionpolicy bypass -file .\chocoUninstall.ps1 -app "appname"
- Change
-
Requirements
- Select both 32-bit and 64-bit architectures.
- Set the minimum OS version as needed.
-
Detection Rules
- Choose Use a custom detection script.
- Use
chocoAppDetection.ps1from this repo. - Before uploading, edit the script and set:
$app = "appname"
-
Other Settings
- Leave all other options as "No".
- Skip Dependencies and Supersedence pages.
-
Assignments
- Assign the app to the desired user or device groups.
Automatic updates are handled by a remediation script.
Find the script and instructions here:
https://github.com/asitdikovs/intune-choco-app-autoupdate
chocoInstall.ps1– Installs the specified Chocolatey app.chocoUninstall.ps1– Uninstalls the specified Chocolatey app.chocoAppDetection.ps1– Detection script for Intune deployment.chocoInstall.intunewin– Packaged installer for Intune deployment.
- Review the PowerShell scripts for details on how installation and detection work.
- For questions or improvements, open an issue or pull request in this repository.