Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detection Method #260

Open
dkattan opened this issue May 21, 2020 · 4 comments
Open

Detection Method #260

dkattan opened this issue May 21, 2020 · 4 comments
Labels
Area-Matching Issue related to correlation between installed package and manifest Issue-Feature This is a feature request for the Windows Package Manager client.

Comments

@dkattan
Copy link

dkattan commented May 21, 2020

Description - Add a detection method property similar to SCCM.

Software packagers do all kinds of dumb things that require custom detection.

  • Not placing a key in the registry at all
  • Including versions in the DisplayName
  • Not including versions in the DisplayVersion
  • Having a DisplayName with special characters that mess with regex (Notepad++)
  • Self-updating by overwriting files in Program Files, but not updating the registry with the new DisplayVersion

Proposed technical implementation details

Detection Script

Include an optional "DetectionScript" field in your package manifest that accepts a PowerShell script that returns a valid semantic version if it is installed, and Null or Empty string if it is not. The script can look at file versions and other places indicative of the actual installed version of the software.

Add regex and version capture support to the name field

For software that places its version in DisplayName and not DisplayVersion, allow a regex pattern to capture the version. I've seen a lot of LOB apps do this. For a DisplayName of "My Ancient LoB Soft Pro 18.7.123" the regex pattern could be "My Ancient LoB Soft Pro (\d+.\d+.\d+)"

@dkattan dkattan added the Issue-Feature This is a feature request for the Windows Package Manager client. label May 21, 2020
@ghost ghost added the Needs-Triage Issue need to be triaged label May 21, 2020
@sschuberth
Copy link

sschuberth commented May 21, 2020

Maybe detection scripts could be shared with those from RuckZuck?

@denelon denelon removed the Needs-Triage Issue need to be triaged label May 28, 2020
@denelon denelon added this to the Package Manager Backlog milestone May 28, 2020
@Trenly
Copy link
Contributor

Trenly commented Jul 9, 2022

@denelon - Is this resolved with the ARP entry matching?

@denelon
Copy link
Contributor

denelon commented Jul 9, 2022

@Trenly not all the use cases above are resolved. Some of them are most likely unactionable at this time. We've been discussing some additional options, and these types of challenges are also what led to:

@Trenly
Copy link
Contributor

Trenly commented Jul 9, 2022

@Trenly not all the use cases above are resolved. Some of them are most likely unactionable at this time. We've been discussing some additional options, and these types of challenges are also what led to:

Ah, makes sense; Thank you

@denelon denelon added the Area-Matching Issue related to correlation between installed package and manifest label Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Matching Issue related to correlation between installed package and manifest Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
None yet
Development

No branches or pull requests

4 participants