Skip to content

Fix case-insensitive registry display name check in Windows installer for DistroAV and OBS-NDI#1448

Merged
paulpv merged 6 commits into
masterfrom
copilot/fix-case-insensitive-tests
Apr 22, 2026
Merged

Fix case-insensitive registry display name check in Windows installer for DistroAV and OBS-NDI#1448
paulpv merged 6 commits into
masterfrom
copilot/fix-case-insensitive-tests

Conversation

Copilot AI commented Apr 22, 2026

Copy link
Copy Markdown
Contributor
  • Change both Pos('DistroAV', DisplayNameRegistry) calls to case-insensitive checks using LowerCase()
  • Also check for obs-ndi (old plugin name) in addition to distroav in both HKLM and HKCU registry checks
  • Consolidate duplicate display name check into reusable IsDisplayNameDistroAvOrObsNdi() helper function

@paulpv paulpv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@copilot test for both "obs-ndi" and "distroav", not just "distroav"

Copilot AI commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

@copilot test for both "obs-ndi" and "distroav", not just "distroav"

Done in fa34c95. Both HKLM and HKCU checks now test for either 'distroav' or 'obs-ndi' (case-insensitively) in the DisplayName registry value.

Copilot AI changed the title Fix case-insensitive DistroAV registry display name check in Windows installer Fix case-insensitive registry display name check in Windows installer for DistroAV and OBS-NDI Apr 22, 2026
Copilot AI requested a review from paulpv April 22, 2026 20:54

@paulpv paulpv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@copilot Consolidate duplicate if ( (Pos('distroav', LowerCase(DisplayNameRegistry)) > 0) or (Pos('obs-ndi', LowerCase(DisplayNameRegistry)) > 0) ) into a reusable function

Copilot AI commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Consolidate duplicate if ( (Pos('distroav', LowerCase(DisplayNameRegistry)) > 0) or (Pos('obs-ndi', LowerCase(DisplayNameRegistry)) > 0) ) into a reusable function

Done in a3eb400. Extracted the check into IsDistroAVOrObsNdiDisplayName(DisplayName: String): Boolean which both HKLM and HKCU branches now call.

Copilot AI requested a review from paulpv April 22, 2026 20:59
@paulpv
paulpv marked this pull request as ready for review April 22, 2026 20:59
Copilot AI review requested due to automatic review settings April 22, 2026 20:59
Comment thread cmake/windows/resources/installer-Windows.iss.in Outdated

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

Updates the Inno Setup Windows installer logic to more reliably detect and uninstall legacy DistroAV/OBS-NDI installs by making the registry DisplayName checks case-insensitive and recognizing both the current and historical plugin names.

Changes:

  • Add IsDistroAVOrObsNdiDisplayName() helper to centralize display-name detection logic.
  • Switch the {}_is1 (6.1.0) uninstall gating logic from case-sensitive Pos('DistroAV', ...) to case-insensitive checks.
  • Expand the accepted display-name substrings to include both distroav and obs-ndi.

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

Comment thread cmake/windows/resources/installer-Windows.iss.in Outdated
Copilot AI requested a review from paulpv April 22, 2026 21:02
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
paulpv

This comment was marked as duplicate.

@paulpv paulpv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Trouffman @RayneYoruka @BitRate27 This PR's code looks fine now, but I think we are still trying to figure out why Rayne is weirdly seeing some plugin(s) still uninstall. :/

@Trouffman
Trouffman self-requested a review April 22, 2026 21:11
@paulpv
paulpv merged commit a34ff5e into master Apr 22, 2026
9 checks passed
@paulpv
paulpv deleted the copilot/fix-case-insensitive-tests branch April 22, 2026 21:12
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.

4 participants