Microsoft 365 Best Practices Library · Devices
Intune Win32 apps: a packaging workflow that installs the same way every time
Most business software still arrives as a classic Windows installer: a setup.exe or an MSI file. Intune can install these on every company PC without anyone touching the machine, but only if the app is packaged carefully. This guide walks through the full workflow: test the silent install, wrap it with Microsoft’s packaging tool, write a detection rule that tells the truth, pilot it, and replace old versions cleanly.
Prefer to have it done for you? IT Perfection provides Microsoft Intune management for companies in Irvine, Orange County and Los Angeles County.
Written by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026



Microsoft 365 Best Practices Library › Devices › Win32 app packaging
Why it matters
Software that installs itself, the same way, on every PC
Without central deployment, software is installed by hand. Each PC ends up slightly different: a different version, different options, sometimes installed by a user with administrator rights they should not need. New starters wait for their tools, and nobody can say which machines still run the old version.
A packaged app fixes that. Intune installs it in the background, reports which devices have it, and can replace it when a new version arrives. The price is care at the start: Intune does exactly what the package tells it to, right or wrong.
Parts of a package
What Intune needs to know about an app
| Part | What it is | What goes wrong |
|---|---|---|
| .intunewin file | The installer folder, converted by the Microsoft Win32 Content Prep Tool. | Extra files in the folder make the package huge. |
| Install command | The command line, or a PowerShell script, that installs silently. | A missing silent switch: the install waits for a click nobody can see. |
| Uninstall command | The command that removes the app. | Left blank or untested, so the app cannot be removed or replaced. |
| Install behavior | System (all users of the PC) or User (one person). | User context for an app that needs administrator rights: it fails. |
| Requirements | Architecture, minimum Windows version, optional disk, memory or custom rules. | The app is offered to PCs that cannot run it. |
| Detection rule | How Intune decides the app is present: MSI code, file, registry or script. | Too loose: reported installed when it is not. Too strict: reinstalls again and again. |
| Dependencies | Other Win32 apps that must be installed first. | A runtime is missing and the app will not start. |
| Supersedence | Which older app this one updates or replaces. | Two versions installed side by side. |
Microsoft is clear on one point: Intune does not support interactive installations. Apps must install silently, without dialog boxes or prompts. If a vendor’s installer cannot run silently, ask the vendor for the switches or a different installer before going further.
Detection rules
The detection rule decides everything that follows
After an install, Intune does not trust the installer’s word. It runs the detection rule. If the rule says the app is there, the device is reported as installed. If not, and the app is required, Microsoft says Intune offers the app again within approximately 24 hours. A wrong rule therefore causes either a false “installed” or an endless reinstall.
| Rule type | Checks | Good for |
|---|---|---|
| MSI | Product code, and optionally product version. | Any MSI installer. |
| File | A file or folder: exists, date, version or size. | EXE installers with a main program file. |
| Registry | A key or value: exists, string, integer or version. | Apps that record their version in the registry. |
| Custom script | A PowerShell script: detected when it exits with 0 and writes to standard output. | Cases nothing else can express. Keep it short. |
When several rules are added, all of them must be true for the app to count as installed. Note the setting “Associated with a 32-bit app on 64-bit clients”: it changes which registry and which program folder the rule looks in.
Before you start
What to have ready
- The installer from the vendor. The current version, downloaded from the vendor’s own site.
- The silent switches. From the vendor’s documentation.
- A clean test PC or virtual machine. Not your own, which already has everything installed.
- The Microsoft Win32 Content Prep Tool. Download the latest version; Intune warns when a package was made with an older one.
- A pilot device group. A handful of PCs across departments.
- The licence terms. Check you are licensed to install the software on every targeted PC.
- A naming rule. Vendor, app and version in the app name, so two versions are never confused.
Step by step
Package and deploy an app in eight steps
Test the silent install by hand
On the clean test PC, open an administrator command prompt and run the install command with its silent switches. Nothing should appear on screen. Then run the uninstall command. If either one asks a question, fix that first.
Note what the install changed
Find what proves the app is installed: the MSI product code, the main program file and its version, or a registry value. This becomes the detection rule.
Build the package
Put the installer and only the files it needs in an empty folder. Run the Microsoft Win32 Content Prep Tool, giving it the source folder, the setup file and an output folder. It produces one .intunewin file.
Add the app in Intune
Microsoft Intune admin center › Apps › All Apps › Create › Windows app (Win32)
Select the .intunewin file, then fill in the name, description and publisher. The name is what staff see in the Company Portal, and Microsoft notes that app names must be unique: if two apps share a name, only one appears.
Set the program and requirements
Enter the install and uninstall commands. Choose install behavior System for software that every user of the PC needs. Set the architecture and the minimum Windows version.
Illustration with a made-up app name. Labels are shortened; this is not a screenshot.intune.microsoft.comIllustrationOverviewAll AppsMonitorWindowsApp protectionApp configurationApps › All Apps › Add appProgramInstall commandmsiexec /i "ExampleApp.msi" /qnUninstall commandmsiexec /x "{product code}" /qnInstallation time required (mins)60Install behaviorSystemUserDevice restart behaviorDetermine behavior based on return codesAdd the detection rule
Use the MSI rule for MSI installers, otherwise a file or registry rule tied to the version. Add dependencies if the app needs a runtime that you have also packaged as a Win32 app.
Assign to the pilot group
Assign as Required to the pilot group, or as Available for enrolled devices so pilot users install it from the Company Portal. Check the device install status until every pilot PC reports installed, and open the app on at least one of them.
Roll out, then plan the next version
Assign to the wider group. When a new version arrives, package it as a new app and use supersedence to point it at the old one: turn on “Uninstall previous version” only if the new installer does not upgrade the old version by itself. The new app still needs its own assignment; Microsoft notes that superseding apps are not targeted automatically.
Recommended values
Settings at a glance
| Setting | Recommended |
|---|---|
| App type | Windows app (Win32) for all classic installers, rather than mixing app types |
| Install command | Vendor’s silent switches, tested by hand first |
| Uninstall command | Always filled in and tested |
| Install behavior | System, unless the vendor requires per-user |
| Device restart behavior | Determine behavior based on return codes |
| Installation time required | 60 minutes (default); raise it only for very large apps |
| Detection rule | MSI product code, or a file or registry version check |
| Assignment | Pilot group first, then wider groups |
| New versions | A new app with supersedence to the old one |
Limits and behavior are from Microsoft Learn, Win32 app management in Microsoft Intune, Add, assign, and monitor a Win32 app and Add Win32 app supersedence, checked November 22, 2026. Microsoft recommends using the Win32 app type exclusively when apps install during Windows Autopilot, because mixing Win32 and line-of-business apps there can cause installations to fail.
Check that it works
How to confirm the result
- Pilot devices report installed. The app’s device install status shows installed, not failed or pending.
- The app opens. On a real PC, signed in as a standard user.
- It installed silently. Nobody saw a setup window.
- It does not reinstall. A day later the device still shows installed and the installer has not run again.
- Uninstall works. An Uninstall assignment to one test PC removes it cleanly.
- Requirements hold. A PC that does not meet them shows not applicable, not failed.
- The old version is gone. After supersedence, only one version is present.
Mistakes and rollback
Common mistakes, and how to step back
- No silent switch. The install waits for input until the timeout, then fails.
- Detection by folder only. An empty leftover folder reports the app as installed.
- Detection tied to the wrong version. The rule never matches, so Intune keeps reinstalling.
- Packaging the whole Downloads folder. Every PC downloads files it does not need.
- Testing only on your own PC. It already has the runtimes a clean PC lacks.
- User context for an app that needs admin rights. It fails for every standard user.
- Calling plain powershell.exe. Microsoft notes this launches 32-bit PowerShell; use the Sysnative path when 64-bit is needed.
- Supersedence without an assignment. The new version is ignored.
Rollback. Remove the assignment to stop new installs. To take the app off devices, add an Uninstall assignment for the group. An app that is part of a dependency relationship cannot be deleted until that relationship is removed.
Licenses
Which plan gives you what
| Capability | Typical plan |
|---|---|
| Win32 app deployment, detection, dependencies and supersedence | Microsoft Intune Plan 1: included in Microsoft 365 Business Premium, E3 and E5. |
| Enterprise App Catalog (apps prepared by Microsoft) | A separate Intune add-on. Check Microsoft’s current licensing before relying on it. |
| The software itself | Your own licence with each vendor. Intune does not license the apps it installs. |
Have us do it
Prefer to hand this off?
IT Perfection packages and deploys business applications with Intune for companies in Irvine, Orange County and Los Angeles County: silent install testing, detection rules, a pilot group, rollout, and a routine for replacing old versions. You receive a written scope and a written quote before any work starts.
Next in the library
Related guides
For a formal written audit of your Microsoft 365 tenant, including device management, OC Security Audit, our related cybersecurity brand also led by Ali Hassani, does that work.

Who does the work
Written by Ali Hassani, CISSP, C|CISO
Ali Hassani has 25+ years of hands-on experience in IT operations, cybersecurity, Microsoft infrastructure, network security and Azure, and works with businesses in Irvine, Orange County and Los Angeles County. Design, implementation and troubleshooting work is planned and reviewed by Ali personally.
This guide is for education and planning. It does not replace a professional audit, compliance assessment or vendor engineering review. Updated November 2026.








FAQ
Intune Win32 apps: common questions
What is a Win32 app in Intune?
It is Intune’s app type for classic Windows installers such as EXE and MSI files. The installer is converted to an .intunewin file and deployed with install and uninstall commands, requirements and detection rules.
What is an .intunewin file?
It is the package format Intune uses for Win32 apps. The Microsoft Win32 Content Prep Tool creates it from a folder that contains the installer and its files.
How large can a Win32 app be?
Microsoft’s documentation states that Windows application size is capped at 30 GB per app.
What is a detection rule?
A detection rule tells Intune how to decide whether the app is installed. It can check an MSI product code, a file or folder, a registry value, or run a custom PowerShell script.
Why does Intune keep reinstalling an app?
Usually because the detection rule does not match what the installer puts on the PC. Intune concludes the app is missing and, for required apps, offers it again.
Can an app ask the user questions during installation?
No. Microsoft states that Intune does not support interactive application installations; apps must install silently.
How do I update an app to a new version?
Add the new version as a new Win32 app and set a supersedence relationship to the old one. Choose whether Intune uninstalls the previous version, and assign the new app, because superseding apps are not targeted automatically.
Need this done for your business?
IT Perfection plans, installs and supports this for companies in Irvine and Orange County
The guides explain the steps. If you would rather have it done, planned and documented by an experienced engineer, these are the services that cover it. Design, implementation and troubleshooting work is planned and reviewed by Ali Hassani personally.
Microsoft Intune management
Laptops and phones enrolled, configured and secured from one console.
View serviceEndpoint security, EDR and MDR
Endpoint protection deployed, tuned and watched on every device.
View serviceEndpoint and patch management
Windows and application updates tested and installed on schedule.
View service