Skip to content

fix: check x86 ProgramFiles in DetectionService for non-wildcard paths - #184

Merged
Belim merged 1 commit into
builtbybel:mainfrom
westopia:fix/detection-programfiles-x86
Sep 17, 2026
Merged

Belim merged 1 commit into
builtbybel:mainfrom
westopia:fix/detection-programfiles-x86

Conversation

@westopia

Copy link
Copy Markdown
Contributor

Currently, CheckFile in DetectionService only invokes PathExpander.ResolvePaths when the path contains wildcards (* or ?). For literal paths, it checks File.Exists(expanded) against the 64-bit Program Files path only.

This causes 32-bit applications installed under %ProgramFiles(x86)% to fail detection when their DetectFile signature references %ProgramFiles% without wildcards.

Using ResolvePaths directly ensures both 64-bit and 32-bit Program Files locations are checked, matching the behavior described in PathExpander.

@westopia westopia closed this Sep 17, 2026
@Belim Belim reopened this Sep 17, 2026
@Belim
Belim merged commit f75f0db into builtbybel:main Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants