WinRAR is still one of the most requested tools on corporate laptops, and Intune can install it silently on every managed Windows device without users seeing anything. This guide packages WinRAR as a Win32 app, adds an optional licence key, and uses a version-aware detection rule so Intune also upgrades old installs. Upgrading matters more than it used to (see the security note below).
Applies to: Microsoft Intune, Windows 10 / 11 (64-bit), WinRAR 7.x.
Security note: WinRAR has had several actively exploited vulnerabilities, including CVE-2023-38831 (fixed in 6.23) and CVE-2025-8088 (fixed in 7.13). Always package the current version, and use the detection rule below so devices with older versions get upgraded automatically.
What you need
- The current 64-bit WinRAR installer from win-rar.com
- The Microsoft Win32 Content Prep Tool (
IntuneWinAppUtil.exe) - Optional: your company's rarreg.key licence file
- The Intune role Application Manager or higher
Step 1: Prepare the package folder
Download the WinRAR Intune scripts (zip) and extract them to C:\Packages\WinRAR. Then:
- Copy the WinRAR installer into the folder and rename it to
winrar.exe. - Optional: copy your
rarreg.keyinto the same folder.
The folder should contain:
C:\Packages\WinRAR\
winrar.exe
rarreg.key (optional)
Install.ps1
Uninstall.ps1
Detect.ps1
Install.ps1 runs the silent install and copies the licence key if one is present:
$ErrorActionPreference = 'Stop'
$proc = Start-Process -FilePath "$PSScriptRoot\winrar.exe" -ArgumentList '/S' -Wait -PassThru
if ($proc.ExitCode -ne 0) { exit $proc.ExitCode }
$key = Join-Path $PSScriptRoot 'rarreg.key'
if (Test-Path $key) {
Copy-Item $key -Destination "$env:ProgramFiles\WinRAR\rarreg.key" -Force
}
exit 0
Uninstall.ps1:
$uninstaller = "$env:ProgramFiles\WinRAR\uninstall.exe"
if (Test-Path $uninstaller) {
$proc = Start-Process -FilePath $uninstaller -ArgumentList '/S' -Wait -PassThru
exit $proc.ExitCode
}
exit 0
Step 2: Create the .intunewin file
IntuneWinAppUtil.exe -c C:\Packages\WinRAR -s Install.ps1 -o C:\Packages\Output
This produces Install.intunewin. For the full walkthrough of the Content Prep Tool, see deploying files to workstations with Intune.
Step 3: Add the app in Intune
In the Intune admin center, go to Apps → Windows → Add → Windows app (Win32) and upload Install.intunewin.

Program settings:
| Setting | Value |
|---|---|
| Install command | powershell.exe -ExecutionPolicy Bypass -File .\Install.ps1 |
| Uninstall command | powershell.exe -ExecutionPolicy Bypass -File .\Uninstall.ps1 |
| Install behavior | System |
| Device restart behavior | No specific action |
Requirements: 64-bit, and the minimum Windows version you support.
Step 4: Detection rule (version-aware)
Choose Use a custom detection script and upload Detect.ps1. Set $MinVersion to the version you're deploying:
$MinVersion = [version]'7.13'
$exe = "$env:ProgramFiles\WinRAR\WinRAR.exe"
if (Test-Path $exe) {
$v = [version](Get-Item $exe).VersionInfo.ProductVersion
if ($v -ge $MinVersion) {
Write-Output "WinRAR $v detected"
exit 0
}
}
exit 1

Intune treats a device as "installed" only when the script exits 0 and writes output. Because the script checks the version, a device with an old WinRAR counts as not installed, and Intune runs the installer, which upgrades it in place.
A simple file-exists check (the method in the original version of this post) also works, but it never upgrades old versions.
Step 5: Assign and monitor
- Assign as Required to a device group for a silent push, or Available to a user group to offer it in Company Portal.
- Check progress under Apps → Windows → WinRAR → Device install status.
- Install logs on the client:
C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\IntuneManagementExtension.log.
Licensing WinRAR (rarreg.key)
A reader asked how to deploy the licence with the install. WinRAR reads rarreg.key from its installation folder, so the Install.ps1 above copies it to C:\Program Files\WinRAR\ straight after installing. To license machines that already have WinRAR, deploy a small Win32 app (or a remediation script) that just copies rarreg.key to that folder.
Updating to a new version
- Replace
winrar.exein the package folder with the new installer. - Bump
$MinVersioninDetect.ps1. - Rebuild the
.intunewinfile and upload it as a new app. - Under Supersedence, set it to supersede the old app without uninstalling it.
Related: Deploy files to workstations with Intune · Install Google Chrome using Intune · Manage dependencies in Microsoft Intune · Deploy CrowdStrike Falcon via Intune