From 42f3760f6c0bfa349e8cdc8ed10aef612211aadb Mon Sep 17 00:00:00 2001 From: Thomas Nieto <38873752+ThomasNieto@users.noreply.github.com> Date: Mon, 17 Apr 2023 15:52:55 -0500 Subject: [PATCH] Fix version wildcard (#23) --- src/code/ProgramsProvider.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/code/ProgramsProvider.cs b/src/code/ProgramsProvider.cs index f8e2052..cdda2a9 100644 --- a/src/code/ProgramsProvider.cs +++ b/src/code/ProgramsProvider.cs @@ -97,8 +97,8 @@ private void GetPackage(RegistryKey key, PackageRequest request) request.WritePackage(package); } else if (!keyValues.ContainsKey("DisplayVersion") - && request.Version is null - && request.IsMatch(name)) + && request.IsMatch(name) + && (request.Version is null || request.Version.ToString() == "*")) { package = new PackageInfo(name, null, source, comment, null, keyValues, ProviderInfo); request.WritePackage(package);