Package and Deploy a Win32 App with Microsoft Intune
Before you begin
- Applies to:Microsoft Intune Win32 app deployment to enrolled Windows pilot devices.
- Where to start:Open PowerShell on the Windows packaging workstation. Use the Intune admin center to add the app and assign it.
- What you need:Have an Intune account with app creation and assignment permissions, an enrolled pilot device and group, the approved installer, its silent install and uninstall commands, and a detection method.
Guide tools
This walkthrough packages one approved Windows installer, adds it as an Intune Win32 app, and deploys it to a small device pilot. The installer must support a silent, unattended installation; interactive prompts are not supported by Intune’s Win32 app deployment.
Prepare and Test the Installer
PreflightObtain the approved installer and its vendor documentation. Put only the app’s setup files and required dependencies in a dedicated source folder; keep the Microsoft Win32 Content Prep Tool and output folder elsewhere. On a test device, run and validate the vendor’s silent installation, uninstall, and detection method before packaging. Record the expected product code or installed file and version.
Source folder: C:\Intune\Source\ContosoAppInstaller file: ContosoApp.msi (example name)Vendor silent install tested:Vendor uninstall tested:Detection method identified:Pilot Windows device enrolled and checking in:❯ Illustrative Output (Results Vary)
The installer completes without dialogs, and its installed state can be detected reliably.Create the .intunewin Package
PackagingDownload the latest Microsoft Win32 Content Prep Tool from Microsoft’s linked GitHub repository and extract it outside the source folder. Run the tool with the source directory, setup file, and a separate output directory. Set the source to the folder from Step 1, the installer to its exact filename, and the output to a separate folder. The tool packages all files and subfolders in the source folder, so remove unrelated files before running it.
# In PowerShell, open the folder containing IntuneWinAppUtil.exe first.$Source = "C:\Intune\Source\ContosoApp"$Installer = "ContosoApp.msi"$Output = "C:\Intune\Output".\IntuneWinAppUtil.exe -c $Source -s $Installer -o $Output❯ Illustrative Output (Results Vary)
C:\Intune\Output\ContosoApp.intunewinCreate the Windows Win32 App in Intune
App SetupWhere to click
- Sign in to the Microsoft Intune admin center. Select Apps → All apps → Create.
- Under App type, choose Windows app (Win32), then select Select.
- Select Select app package file, browse to the
.intunewinfile you created, and select OK. - On App information, enter a unique Name, a Description, and the Publisher. Select Next to open Program.
App type: Windows app (Win32)Package: C:\Intune\Output\ContosoApp.intunewinName and publisher: match the approved software recordOwner and support details: documented for the service desk❯ Illustrative Output (Results Vary)
The Intune app wizard accepts the package and opens the app configuration steps.Configure Program, Requirements, and Detection
Install RulesOn the Program page, enter the tested install and uninstall commands. For an MSI, common templates are msiexec.exe /i “ContosoApp.msi” /qn /norestart and msiexec.exe /x PRODUCT-CODE-GUID /qn /norestart; replace the example product code with the actual MSI product code and follow the vendor instructions. Select the installation behavior that matches the installer. On Requirements, set the supported architecture and minimum OS. On Detection rules, use the MSI product code or a reliable file, registry, or script rule so Intune can distinguish installed from missing.
Install command: tested vendor silent commandUninstall command: tested vendor command and actual product identifierInstall behavior: System for machine-wide/admin install; User only when supportedRequirements: architecture and minimum OS verifiedDetection: reliably matches the installed app and version❯ Illustrative Output (Results Vary)
The app configuration describes a silent install, a working uninstall, and a testable detection state.Assign the App to a Small Device Pilot
Pilot AssignmentFinish the wizard, then assign the app as Required to an approved pilot device group. Review the included and excluded groups before saving. Avoid mixing Win32 and line-of-business MSI deployments during classic Windows Autopilot enrollment; Microsoft documents a possible Trusted Installer conflict in that scenario.
Assignment intent: Required for the approved pilotTarget: dedicated test-device groupExclusions: production groups and unrelated devicesAutopilot enrollment: review app-type conflicts before deployment❯ Illustrative Output (Results Vary)
Only the intended pilot devices receive the required app assignment.Monitor Installation and Resolve Failures
ValidationWhere to click
- In Intune, select Apps → All apps → the app you created.
- Under Monitor, select Device install status. Find the pilot device and check its status. Open the device entry to inspect a reported failure.
Find the app’s device installation report first. Allow the device to check in; if needed, sync from Settings > Accounts > Access work or school > Info > Sync or Company Portal. For a failure, compare the Intune error with the installer result, detection rule, and logs under C:\ProgramData\Microsoft\IntuneManagementExtension\Logs, especially AppWorkload.log and IntuneManagementExtension.log.
What you should see · The pilot device reports Installed and the app opens on that device.
If you see something else · If the device is absent or pending, verify pilot group membership and trigger a sync using the steps above. If it reports Failed, open the failure details and compare the installer result and detection rule before expanding the assignment.
Intune admin center > Apps > All Apps > select the appReview: Device install status and per-device resultClient logs: AppWorkload.log and IntuneManagementExtension.logCheck: assignment, silent command, requirements, detection, and return code❯ Illustrative Output (Results Vary)
Record install status and version on each pilot device before expanding the assignment.Undo the pilot deployment
In Intune, select Apps → All apps → your app → Properties → Edit beside Assignments. Remove the pilot group from Required. To remove the installed app too, add that pilot group under Uninstall after checking for other Required assignments and verifying the uninstall command from Step 1. Save the assignments, sync the device, and verify the app is gone from the pilot device.
Your feedback keeps these production procedures accurate and battle-tested.