Skip to content

asitdikovs/intune-choco-app-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

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.


Before You Begin

  • 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, use adobereader).

Deploying an App with Intune

  1. Login to Intune Admin Center
    Go to: Apps > Windows > + Create

  2. App Type
    Select: Windows app (Win32)

  3. App Information

    • Upload the chocoInstall.intunewin file (found in this repo).
    • Fill in the required information.
  4. 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"
      
  5. Requirements

    • Select both 32-bit and 64-bit architectures.
    • Set the minimum OS version as needed.
  6. Detection Rules

    • Choose Use a custom detection script.
    • Use chocoAppDetection.ps1 from this repo.
    • Before uploading, edit the script and set:
      $app = "appname"
  7. Other Settings

    • Leave all other options as "No".
    • Skip Dependencies and Supersedence pages.
  8. Assignments

    • Assign the app to the desired user or device groups.

Automatic Updates

Automatic updates are handled by a remediation script.
Find the script and instructions here:
https://github.com/asitdikovs/intune-choco-app-autoupdate


Files in This Repo

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

Additional Notes

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

Releases

No releases published

Packages

 
 
 

Contributors