Skip to content

Fleet-maintained apps: stop GoAnywhere OpenPGP Studio (Windows) before installing - #57881

Merged
allenhouchins merged 3 commits into
mainfrom
allenhouchins/fma-57659-goanywhere-openpgp-windows-b0dd6c
Nov 10, 2026
Merged

allenhouchins merged 3 commits into
mainfrom
allenhouchins/fma-57659-goanywhere-openpgp-windows-b0dd6c

Conversation

@allenhouchins

@allenhouchins allenhouchins commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Related issue: Resolves #57659

GoAnywhere OpenPGP Studio's install4j installer exits 1 when OpenPGPStudio.exe is running. Fleet installs as SYSTEM, outside the user's session, so it can't ask the app to close. The install script now stops any process running from the GoAnywhere OpenPGP Studio install directory before it runs setup, the same way the uninstall script already stops the app. Unsaved work in the app is lost, the same as in other Windows FMAs that stop the app first (for example Beyond Compare).

The Windows open query also guessed goanywhere openpgp studio.exe, which never matches, so the app always looked closed to the patch-when-closed gate. The winget input now sets open_process_names to the real process, openpgpstudio.exe.

Checklist for submitter

  • Timeouts are implemented and retries are limited to avoid infinite loops (Wait-Process -Timeout 30)

Testing

  • QA'd all new/changed functionality manually

Ran as SYSTEM in a Windows 11 ARM64 VM (Parallels) against the real 1.2.3 installer (SHA-256 matches the output). The app was launched as the signed-in user in session 1.

Step Result
Install with the shipped script, app not running exit 0. ARP: GoAnywhere OpenPGP Studio / Fortra / 1.2.3, in C:\Program Files\Fortra\GoAnywhere OpenPGP Studio
Queries with the app installed and closed exists 1 row, patched 1 row, patched with the version bumped to 1.2.4: 0 rows, new open query 1 row
Launch OpenPGPStudio.exe as the user new open query 0 rows (open). Old open query 1 row (wrongly reports closed)
Shipped install script over the running app exit 1, OpenPGPStudio.exe still running with the same PID (reproduces the issue)
Fixed install script over the running app "Stopping OpenPGPStudio (PID 11128)", exit 0, no process left; exists 1, patched 1, open 1
Fixed install script, app not running (reinstall over an existing install) exit 0

go test ./pkg/patch_policy/... ./ee/maintained-apps/... passes. Regenerating the output changed only the install script ref and the open query; the version stayed at 1.2.3.

AI

AI: Claude Code (claude-opus-5-5)

Summary by CodeRabbit

  • Bug Fixes
    • Windows now detects GoAnywhere OpenPGP Studio using its executable name, improving recognition of the app’s running state.
    • Before installation, the installer closes running GoAnywhere OpenPGP Studio processes and waits up to 30 seconds for them to exit. Existing installer options and error handling remain unchanged.

…e installing

The install4j installer exits 1 when OpenPGPStudio.exe is running, and Fleet runs as SYSTEM so it can't ask the app to close. The install script now stops processes under the install directory first, like the uninstall script already does.

The open query guessed 'goanywhere openpgp studio.exe'; the app's process is OpenPGPStudio.exe, so add an open-query override.
@allenhouchins
allenhouchins marked this pull request as ready for review November 6, 2026 05:46
@allenhouchins
allenhouchins requested a review from a team as a code owner November 6, 2026 05:46
Copilot AI balanced review requested due to automatic review settings November 6, 2026 05:46
fleet-release
fleet-release previously approved these changes Nov 6, 2026
@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The app definition now identifies openpgpstudio.exe for open-process detection. Before installation, the script finds processes with executable paths matching the GoAnywhere OpenPGP Studio directory, force-stops them, and waits up to 30 seconds. Installer arguments, exit-code handling, and error handling remain unchanged.

Possibly related PRs

  • fleetdm/fleet#57347: Stops running Windows app processes before installer setup.
  • fleetdm/fleet#57936: Adds open_process_names to Winget manifests and generates Windows open queries from that field.

Severity of issue fixed: Medium

Merge Risk: Minimal · up to f629b

The change makes reinstalling GoAnywhere OpenPGP Studio while it is open stop the app first and then install, as the linked issue requested. Unsaved work in the app is lost by design. If the app cannot be stopped, the install fails with the installer's exit code as before. It is safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title clearly identifies the main change: stopping GoAnywhere OpenPGP Studio before installing it on Windows.
Linked Issues check Passed Issue #57659 requires installation to close GoAnywhere OpenPGP Studio first or complete while it remains open. The install script now finds and force-stops processes whose executable path is under the…
Out of Scope Changes check Passed All changes relate to issue #57659. The install-script update addresses the failed install, the process-name override corrects the app-open query, and the generated Windows output carries those change…
Description check Passed The description identifies the related issue, explains the installer failure and both changes, and reports manual QA and automated test results. It includes the applicable timeout checklist item and t…
Full details: Linked Issues check

Explanation

Issue #57659 requires installation to close GoAnywhere OpenPGP Studio first or complete while it remains open. The install script now finds and force-stops processes whose executable path is under the app's install directory, then waits up to 30 seconds before starting the installer. The generated Windows catalog output reflects the script change. The input manifest also names the actual process, openpgpstudio.exe, for the open query. The PR reports passing the relevant Go tests and manual installation checks.

Full details: Out of Scope Changes check

Explanation

All changes relate to issue #57659. The install-script update addresses the failed install, the process-name override corrects the app-open query, and the generated Windows output carries those changes into the catalog. No unrelated changes appear in the whole-PR diff.

Full details: Description check

Explanation

The description identifies the related issue, explains the installer failure and both changes, and reports manual QA and automated test results. It includes the applicable timeout checklist item and the required AI section. Other template items are not relevant to this Windows app-catalog change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Script Diff Results

ee/maintained-apps/outputs/goanywhere-openpgp-studio/windows.json

=== Install // d871f28a -> e5a2b350 ===

--- /tmp/old.cl6fu6	2026-11-06 05:47:33.252492772 +0000
+++ /tmp/new.0Dy1SQ	2026-11-06 05:47:33.252492772 +0000
@@ -8,6 +8,17 @@
 
 try {
 
+# Setup exits with code 1 while OpenPGP Studio is running. Fleet runs as SYSTEM,
+# outside the user's session, so it can't ask the app to close: stop it
+# first. Unsaved changes are lost.
+$running = Get-Process -ErrorAction SilentlyContinue |
+    Where-Object { $_.Path -like "*\GoAnywhere OpenPGP Studio\*" }
+foreach ($proc in $running) {
+    Write-Host "Stopping $($proc.Name) (PID $($proc.Id)) before installing."
+    Stop-Process -Id $proc.Id -Force -ErrorAction SilentlyContinue
+}
+$running | Wait-Process -Timeout 30 -ErrorAction SilentlyContinue
+
 $process = Start-Process -FilePath "$exeFilePath" `
   -ArgumentList "-q -Dinstall4j.suppressUnattendedReboot=true" -PassThru -Wait
 $exitCode = $process.ExitCode

=== Uninstall Script (no changes) ===

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.

🟢 Approval recommended

There are no active review issues for the GoAnywhere OpenPGP Studio installation and running-app detection changes.

No open issues 🎉

What changed in this PR

Addresses #57659 by stopping GoAnywhere OpenPGP Studio before Windows installation and correcting running-app detection for patch-when-closed policies.

Changes:

  • Stops processes in the app’s install directory and waits up to 30 seconds before launching setup.
  • Uses openpgpstudio.exe for Windows running-app detection.
  • Regenerates the app manifest with the updated script and query, retaining version 1.2.3.
File Description
pkg/​patch_policy/​patch_policy.go Adds the correct Windows process-name override.
ee/​maintained-apps/​outputs/​goanywhere-openpgp-studio/​windows.json Updates the generated open query and embedded install script.
ee/​maintained-apps/​inputs/​winget/​scripts/​goanywhere-openpgp-studio_install.ps1 Stops running app processes before installation.

Review effort: Balanced

@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.54%. Comparing base (1787123) to head (8ddbe90).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #57881      +/-   ##
==========================================
+ Coverage   78.52%   78.54%   +0.02%     
==========================================
  Files        3771     3773       +2     
  Lines      265396   265375      -21     
  Branches    16636    16636              
==========================================
+ Hits       208398   208439      +41     
+ Misses      56798    56736      -62     
  Partials      200      200              
Flag Coverage Δ
backend 79.87% <ø> (+0.02%) ⬆️

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.

@github-actions

Copy link
Copy Markdown
Contributor

Script Diff Results

ee/maintained-apps/outputs/goanywhere-openpgp-studio/windows.json

=== Install // d871f28a -> e5a2b350 ===

--- /tmp/old.GWRtVU	2026-11-10 18:08:05.879969605 +0000
+++ /tmp/new.5tw0gg	2026-11-10 18:08:05.879969605 +0000
@@ -8,6 +8,17 @@
 
 try {
 
+# Setup exits with code 1 while OpenPGP Studio is running. Fleet runs as SYSTEM,
+# outside the user's session, so it can't ask the app to close: stop it
+# first. Unsaved changes are lost.
+$running = Get-Process -ErrorAction SilentlyContinue |
+    Where-Object { $_.Path -like "*\GoAnywhere OpenPGP Studio\*" }
+foreach ($proc in $running) {
+    Write-Host "Stopping $($proc.Name) (PID $($proc.Id)) before installing."
+    Stop-Process -Id $proc.Id -Force -ErrorAction SilentlyContinue
+}
+$running | Wait-Process -Timeout 30 -ErrorAction SilentlyContinue
+
 $process = Start-Process -FilePath "$exeFilePath" `
   -ArgumentList "-q -Dinstall4j.suppressUnattendedReboot=true" -PassThru -Wait
 $exitCode = $process.ExitCode

=== Uninstall Script (no changes) ===

@coderabbitai coderabbitai Bot 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.

Additional comments: 1

ee/maintained-apps/inputs/winget/scripts/goanywhere-openpgp-studio_install.ps1-20-20: 1

20-20: Minor · Functional Correctness · Quick win

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Do not start setup while a matching process still runs.

If Stop-Process fails or Wait-Process reaches its 30-second timeout, the script suppresses the non-terminating error and starts setup anyway. Setup can then encounter the same running-app condition that this change addresses. Check for surviving processes before Start-Process, and report a failure if any remain. (learn.microsoft.com)

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a43a949 and f629bd7.

Files selected for processing: 3

  • ee/maintained-apps/inputs/winget/goanywhere-openpgp-studio.json
  • ee/maintained-apps/inputs/winget/scripts/goanywhere-openpgp-studio_install.ps1
  • ee/maintained-apps/outputs/goanywhere-openpgp-studio/windows.json

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review.

@allenhouchins
allenhouchins merged commit d76fe0a into main Nov 10, 2026
17 checks passed
@allenhouchins
allenhouchins deleted the allenhouchins/fma-57659-goanywhere-openpgp-windows-b0dd6c branch November 10, 2026 18:24
allenhouchins added a commit that referenced this pull request Nov 12, 2026
…lling it (Windows) (#58392)

**Related issue:** Fixes #58043

Burp Suite Community Edition's install4j setup (12.0.2) exits 1 while
`BurpSuiteCommunity.exe` is running, so installing or updating it from
Fleet over an open app fails and leaves the old version running. Fleet
installs as SYSTEM, outside the user's session, so the installer can't
ask the user to close the app. The install script now stops Burp before
it runs setup: the `BurpSuiteCommunity.exe` launcher (which hosts the
JVM in-process) and Burp's bundled Chromium browser
(`burpbrowser\<version>\chrome.exe`, about a dozen processes when it's
open). The uninstall script already stops Burp. Unsaved work in Burp is
lost, the same as in other Windows FMAs that stop the app first
(GoAnywhere OpenPGP Studio in #57881, also install4j; Tableau Prep
Builder in #58355).

It looks in `%ProgramFiles%\BurpSuiteCommunity` and in the
`InstallLocation` of every machine-wide `Burp Suite Community*` /
PortSwigger uninstall entry, because existing installs aren't always in
the directory the script passes to `-dir` (the one in the test VM
wasn't). In each directory it matches only Burp's own files:
`BurpSuiteCommunity.exe`, `jre\`, `burpbrowser\`, and `.install4j\`. So
a Burp install in a shared folder can't pull in unrelated processes.

The Windows open query also guessed `burp suite community edition.exe`,
which never matches, so the app always looked closed to the
patch-when-closed gate. The winget input now sets `open_process_names`
to the real process, `burpsuitecommunity.exe` (the process the soak saw
still running).

Burp Suite Professional (#58021) has the same gap in its own script and
isn't changed here.

# Checklist for submitter

- [x] Timeouts are implemented and retries are limited to avoid infinite
loops (`Wait-Process -Timeout 30`)

## Testing

- [x] QA'd all new/changed functionality manually

- Downloaded the 2026.3.3 x64 installer: SHA-256 matches the output
(`74ba1537…`). It's an install4j 12.0.2 launcher, the same framework as
GoAnywhere OpenPGP Studio, whose identical exit 1 over a running app was
fixed by stopping it first (verified as SYSTEM in #57881).
- Regenerating the output changed only the install script ref and the
open query; the version stayed at 2026.3.3.
- `go test ./ee/maintained-apps/... ./cmd/maintained-apps/...
./pkg/patch_policy/...` passes.

Ran as SYSTEM (`prlctl exec`, the context fleetd uses) in a Windows 11
ARM64 VM (Parallels) against the real 2026.3.3 installer. Burp and its
browser were launched as the signed-in user in session 1.

| Step | Result |
|---|---|
| Fixed script, app not running (reinstall) | exit 0. ARP: `Burp Suite
Community Edition 2026.3.3` / `PortSwigger Web Security` / `2026.3.3` |
| Queries with the app installed and closed | exists 1 row, patched 1
row, patched with the version bumped to 2026.3.4: 0 rows, new open query
1 row |
| Launch Burp and its browser as the user | 12 processes:
`BurpSuiteCommunity.exe` plus 11 `chrome.exe` under `burpbrowser\`; no
separate `java.exe`. New open query **0 rows** (open). Old open query 1
row (wrongly reports closed) |
| Shipped install script over the running app | **exit 1** after 16 s,
`BurpSuiteCommunity.exe` still running with the same PID (reproduces the
issue) |
| Fixed install script over the running app | "Stopping …" for all 12
processes, **exit 0** after 56 s, nothing left running; exists 1,
patched 1, open 1 |

The x64 validator passed on the earlier commits (install, `Found app:
'Burp Suite Community Edition 2026.3.3'`, uninstall).

## AI

**AI:** Claude Code (claude-opus-5-5)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Burp Suite Community’s running application is now detected more
reliably across supported installation locations.
* Before an installation begins, running Burp components are stopped,
and the installer waits for them to exit. This helps avoid conflicts
when updating an installation that is still running.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

This branch was previously deployed

1 inactive deployment
Docker Hub — f629bd78 Deployed Nov 10, 2026 by allenhouchins via publish #114104
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.

Fleet-maintained apps: GoAnywhere OpenPGP Studio (Windows) install fails with exit code 1 while the app is open

3 participants