.exe and .msi installers) through the Windows app (Win32) app type. Win32 apps must be packaged into .intunewin format using the Microsoft Win32 Content Prep Tool (IntuneWinAppUtil.exe) before they can be uploaded to Intune.
This section contains install and uninstall PowerShell scripts for Win32 apps deployed via Intune.
Packaging apps with IntuneWinAppUtil
Download the Content Prep Tool
Download
IntuneWinAppUtil.exe from the Microsoft Win32 Content Prep Tool repository.Prepare your source folder
Place the installer file (
.msi or .exe) and your install.ps1 / uninstall.ps1 scripts into a single source folder.Run IntuneWinAppUtil
-c— source folder containing your app files-s— the setup file (your install script or installer)-o— output folder for the.intunewinpackage
Upload to Intune
In the Intune admin center, go to Apps > Windows > Add > Windows app (Win32). Upload the
.intunewin file and configure the install/uninstall commands, detection rules, and assignments.Available apps
Azul Zulu OpenJRE
Azul Zulu OpenJRE
Installs the Azul Zulu Build of OpenJDK JRE (version 21.0.4) silently to Uninstall command (Intune):Detection rule: File or registry presence of the installed JRE at
C:\java\jdk21. The install script uses msiexec with the ZuluInstallation and FeatureJavaHome features enabled.The uninstall script dynamically discovers the installed package reference using Get-Package and passes it to msiexec /x for silent removal.Install command (Intune):C:\java\jdk21.The install script references the MSI filename
zulu21.36.17-ca-jre21.0.4-win_x64.msi directly. This file must be included in the same source folder when packaging with IntuneWinAppUtil. Update the filename if using a different Zulu JRE version.SnagIT 2024
SnagIT 2024
Installs SnagIT 2024 silently using an MSI installer combined with an Uninstall command (Intune):
.mst MSI transform file. The transform file allows pre-configuring install options such as license keys and feature sets without modifying the original installer.The uninstall script uses TechSmith’s UninstallerTool_1_2_0.exe to silently remove SnagIT 2024.Install command (Intune):The following files must all be included in your source folder before packaging:
snagit.msi— the SnagIT 2024 MSI installersnagit.mst— the MSI transform file with your configurationUninstallerTool_1_2_0.exe— TechSmith’s silent uninstaller tool
.mst transform file.Datto RMM Agent
Datto RMM Agent
Downloads and installs the Datto RMM (Kaseya) agent directly from the Datto platform using a PowerShell script. No pre-staged installer is required — the script downloads the agent installer at runtime from Datto’s CDN using the configured platform name and Site ID.The script:Detection rule: Service existence — check for the
- Checks whether the Datto RMM service (
CagService) is already installed and exits cleanly if so. - Downloads the agent installer from
https://{Platform}.centrastage.net/csm/profile/downloadAgent/{SiteID}. - Runs the installer silently and removes the temporary installer file.
IntelyCare_Datto_RMM_Agent_Install-Vidal.ps1
Update
$Platform and $SiteID to match your Datto RMM platform name and target site before deploying. The Site ID is found in the Datto RMM portal under your site’s Settings page.CagService Windows service.