Skip to content

Add WinRAR as a Windows FMA - #47024

Merged
allenhouchins merged 3 commits into
mainfrom
allenhouchins-winrar
Jun 7, 2026
Merged

Add WinRAR as a Windows FMA#47024
allenhouchins merged 3 commits into
mainfrom
allenhouchins-winrar

Conversation

@allenhouchins

@allenhouchins allenhouchins commented Jun 7, 2026

Copy link
Copy Markdown
Member

Summary

Adds WinRAR 7.22.0 as a Fleet-maintained app (Windows / winget RARLab.WinRAR).

Details

  • Installer type: exe (WinRAR self-extracting installer), machine scope → custom install/uninstall scripts (the ingester only auto-generates for machine-scope MSI).
  • Silent install: -s1 — from the winget manifest's documented InstallerSwitches.Silent.
  • Silent uninstall: uninstall.exe /S located via the registry UninstallString, parsed with the defensive 3-shape matcher.
  • Identity: unique_identifier: "WinRAR" + fuzzy_match_name: true → exists query name LIKE 'WinRAR %' AND publisher = 'win.rar GmbH'. Fuzzy match is required because WinRAR's registry DisplayName embeds the version (WinRAR 7.22.0 (64-bit)). Registry Publisher matches the winget locale Publisher, so no program_publisher override.
  • SHA: matches the manifest's en-x64 installer; version 7.22.0 reconciles with osquery's DisplayVersion.
  • Icon: generated component, website PNG, and index.ts map entry (winrar).

Notes / risks

  • Installer URL (https://www.rarlab.com/rar/winrar-x64-722.exe) is version-pinned, so the SHA is stable until the FMA auto-update bumps it.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added WinRAR application support, including version 7.22.0 with automated installation and uninstallation capabilities.
    • Added custom WinRAR icon for improved visibility on the software page.

Add WinRAR package support: new winget input manifest (ee/maintained-apps/inputs/winget/winrar.json), silent install/uninstall PowerShell scripts (winrar_install.ps1, winrar_uninstall.ps1), and outputs for the Windows package (ee/maintained-apps/outputs/winrar/windows.json). Also register the app in outputs/apps.json. Install script runs the self-extracting installer with -s1; uninstall script locates the UninstallString in the registry, stops WinRAR, and runs the uninstaller with /S. Output metadata includes version 7.22.0, installer URL and SHA256, plus script refs.
Add a Winrar SVG React component (frontend/pages/SoftwarePage/components/icons/Winrar.tsx) that embeds the WinRAR PNG as a data URL, update the icons index to export the new component, and add the high‑res PNG asset (website/assets/images/app-icon-winrar-60x60@2x.png). This provides the WinRAR app icon for the SoftwarePage.
Copilot AI review requested due to automatic review settings June 7, 2026 03:52
@allenhouchins
allenhouchins requested a review from a team as a code owner June 7, 2026 03:52
@fleet-release
fleet-release requested a review from eashaw June 7, 2026 03:52

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@coderabbitai

coderabbitai Bot commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9a057e40-6504-403a-9066-712613c6f0c5

📥 Commits

Reviewing files that changed from the base of the PR and between 510e805 and c6f156a.

⛔ Files ignored due to path filters (1)
  • website/assets/images/app-icon-winrar-60x60@2x.png is excluded by !**/*.png
📒 Files selected for processing (7)
  • ee/maintained-apps/inputs/winget/scripts/winrar_install.ps1
  • ee/maintained-apps/inputs/winget/scripts/winrar_uninstall.ps1
  • ee/maintained-apps/inputs/winget/winrar.json
  • ee/maintained-apps/outputs/apps.json
  • ee/maintained-apps/outputs/winrar/windows.json
  • frontend/pages/SoftwarePage/components/icons/Winrar.tsx
  • frontend/pages/SoftwarePage/components/icons/index.ts

Walkthrough

This PR adds WinRAR as a managed Windows application to Fleet. It introduces PowerShell-based installation and uninstallation scripts that handle silent deployment via the installer path environment variable and registry-driven uninstall with process termination. The scripts are wired through Winget manifest and output JSON configurations specifying version 7.22.0 metadata, detection queries, and download details. The frontend receives a new icon component and map entry to display WinRAR alongside other managed software on the Software page.

Possibly related PRs

  • fleetdm/fleet#46311: Both PRs add a new software-specific Winget setup/unsetup and register a corresponding icon by updating frontend/pages/SoftwarePage/components/icons/index.ts's SOFTWARE_NAME_TO_ICON_MAP (WinRAR winrar vs WinSCP winscp).
  • fleetdm/fleet#46423: Both PRs update the same icon registry (frontend/pages/SoftwarePage/components/icons/index.ts's SOFTWARE_NAME_TO_ICON_MAP) and add corresponding Winget/app metadata entries, though each targets a different application (WinRAR vs Burp Suite Community).
  • fleetdm/fleet#46497: Both PRs update the same icon-registration constant (frontend/pages/SoftwarePage/components/icons/index.ts), by adding a new entry to SOFTWARE_NAME_TO_ICON_MAP for the corresponding app (WinRAR vs Cryptomator), but they do not touch the same installer/uninstaller scripts or JSON outputs.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description is mostly complete with comprehensive details about the WinRAR implementation, but the required template checklist items are not addressed or checked off. Add the PR template checklist to indicate which items apply and have been completed; at minimum address data validation, testing, and compatibility verification.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Add WinRAR as a Windows FMA' clearly and concisely summarizes the primary change: adding WinRAR as a Fleet-maintained app for Windows.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch allenhouchins-winrar

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds WinRAR 7.22.0 as a Fleet-maintained Windows app (winget RARLab.WinRAR), including the maintained-app manifest + install/uninstall scripts and wiring up a WinRAR icon in the Software UI.

Changes:

  • Add WinRAR winget input manifest plus PowerShell install/uninstall scripts.
  • Add generated maintained-app output manifests (WinRAR windows.json + apps.json entry).
  • Add a WinRAR icon component and map entry in the Software page icon registry.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
frontend/pages/SoftwarePage/components/icons/Winrar.tsx Adds WinRAR icon SVG wrapper (base64 PNG).
frontend/pages/SoftwarePage/components/icons/index.ts Registers WinRAR icon import and name→icon mapping key (winrar).
ee/maintained-apps/outputs/winrar/windows.json Generated WinRAR Windows maintained-app manifest (queries, installer URL/SHA, embedded scripts).
ee/maintained-apps/outputs/apps.json Adds WinRAR to the generated maintained apps catalog.
ee/maintained-apps/inputs/winget/winrar.json Defines WinRAR winget package input (fuzzy match, scope/type, script paths).
ee/maintained-apps/inputs/winget/scripts/winrar_uninstall.ps1 Adds registry-based uninstall script with defensive UninstallString parsing.
ee/maintained-apps/inputs/winget/scripts/winrar_install.ps1 Adds silent install script for the WinRAR EXE installer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +42 to +44
if ($existingArgs -and $existingArgs -ne '') {
$uninstallArgs = "$existingArgs $uninstallArgs"
}
@codecov

codecov Bot commented Jun 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 67.04%. Comparing base (7edb0ba) to head (c6f156a).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...end/pages/SoftwarePage/components/icons/Winrar.tsx 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #47024      +/-   ##
==========================================
- Coverage   67.04%   67.04%   -0.01%     
==========================================
  Files        2873     2874       +1     
  Lines      225129   225131       +2     
  Branches    11637    11779     +142     
==========================================
+ Hits       150930   150931       +1     
- Misses      60529    60530       +1     
  Partials    13670    13670              
Flag Coverage Δ
frontend 56.97% <50.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@allenhouchins
allenhouchins merged commit e36ae71 into main Jun 7, 2026
28 checks passed
@allenhouchins
allenhouchins deleted the allenhouchins-winrar branch June 7, 2026 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants