Author Topic: .NET Core Hosting Runtime Bundle  (Read 63 times)

Offline mkmaster78

  • Newbie
  • *
  • Posts: 35
    • View Profile
.NET Core Hosting Runtime Bundle
« on: May 16, 2019, 07:27:09 AM »
The .NET Core Runtime and Hosting Bundle Detection methods need updating I think.  After an update, many machines don't detect unless I run a repair install after and then rescan again, though they in fact installed fine the first time.

Here's what I can tell based on the detection methods in SCUP and what's present on the machine:
There are 4 sets of detections in an OR statement, each of which contains 3 detections in an AND group
Set 1 Detection Method:
a) HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\sharedhost\Version exists
b) HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\sharedhost\Version string is >= '2.2.4.0'
c) HKLM\SOFTWARE\Microsoft\Updates\.NET Core exists

Set 2 Detection Method:
a) HKLM\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x86\sharedhost\Version exists
b) HKLM\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x86\sharedhost\Version string is >= '2.2.4.0'
c) HKLM\SOFTWARE\WOW6432Node\Microsoft\Updates\.NET Core exists

Set 3 Detection Method:
a) HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\sharedhost\Version exists
b) HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\sharedhost\Version string is >= '2.2.4.0'
c) HKLM\SOFTWARE\Microsoft\Updates\.NET Core exists

Set 4 Detection Method:
a) HKLM\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedhost\Version exists
b) HKLM\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sharedhost\Version string is >= '2.2.4.0'
c) HKLM\SOFTWARE\WOW6432Node\Microsoft\Updates\.NET Core exists

Results on machine not detecting (update is installed, but repair not done):
Set 1:
a) Does not exist
b) Does not exist, so comparison no good
c) Does not exist

Set 2:
a) Exists
b) 2.1.5
c) Exists

Set 3:
a) Exists
b) 2.2.4
c) Does not exist

Set 4:
a) Does not exist
b) Does not exist, so comparison no good
c) Exists

Same box after repair install performed:
Set 1:
a) Does not exist
b) Does not exist, so comparison no good
c) Does not exist

Set 2:
a) Exists
b) 2.2.4
c) Exists
Detection occurs because of this set

Set 3:
a) Exists
b) 2.2.4
c) Does not exist

Set 4:
a) Does not exist
b) Does not exist, so comparison no good
c) Exists

These detections seem to work about 85-90% of the time, but not always.  The example machine for this is an x64 Server Core 2016 system.  Please let me know if I can help provide more information.

Offline Admin - Omar

  • Administrator
  • Hero Member
  • *****
  • Posts: 943
    • View Profile
    • Patch My PC
Re: .NET Core Hosting Runtime Bundle
« Reply #1 on: May 16, 2019, 02:22:32 PM »
I've tried to change them in today's catalog update but I couldn't find better rules than the current ones :(
The only alternative is to use the first 2 rules only BUT this will let Hosting Bundle get detected on machines that has only .NET Core Runtime and vice versa !
Because both has the same exact rules and I can't find anything else to use! Please let me know if you found something we can use.. I will keep looking too in the mean time.
« Last Edit: May 16, 2019, 02:29:51 PM by Admin - Omar »

Offline mkmaster78

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: .NET Core Hosting Runtime Bundle
« Reply #2 on: May 16, 2019, 02:51:08 PM »
What about reorganizing them just a bit? This should detect better but should still provide exclusivity (using a shorthand to refer to previous posts set, please let me know if this isn't clear):
AND group
    OR group
        AND Group
            Set 1 a
            Set 1 b
        AND Group
            Set 2 a
            Set 2 b
        AND Group
            Set 3 a
            Set 3 b
        AND Group
            Set 4 a
            Set 4 b
    OR group
        Set 1 c
        Set 2 c

Offline Admin - Omar

  • Administrator
  • Hero Member
  • *****
  • Posts: 943
    • View Profile
    • Patch My PC
Re: .NET Core Hosting Runtime Bundle
« Reply #3 on: May 16, 2019, 03:56:43 PM »
First I forgot to say thanks for reporting all these good details and sorry to hear that this is bothering you and not working as it should, but we will figure this out together :)

So now to be clear on this, you are talking about only "Hosting Bundle" ? Which already contains .NET Core Runtime
Or you are talking about both separately ("Hosting Bundle" & " .NET Core Runtime") ?

Because the sets of rules you mentioned are the "Installed Rules" of "Hosting Bundle".

Offline mkmaster78

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: .NET Core Hosting Runtime Bundle
« Reply #4 on: May 16, 2019, 07:10:25 PM »
Its full name is the ".NET Core Runtime and Hosting Bundle", but if it's easier, we can just call it the Hosting Bundle, for clarity  :)  This is not about the Runtime standalone

Offline Admin - Omar

  • Administrator
  • Hero Member
  • *****
  • Posts: 943
    • View Profile
    • Patch My PC
Re: .NET Core Hosting Runtime Bundle
« Reply #5 on: May 16, 2019, 07:21:13 PM »
Yeah I know, I started calling it "Hosting Bundle" for clarity :)
Ok good to know, your plan looks good! Will test it and if it worked fine then we will update the rules with these ones and it will be in tomorrow's catalog update :)

Offline Justin Chalfant

  • Patch My PC Support
  • Administrator
  • Hero Member
  • *****
  • Posts: 1647
    • View Profile
    • Patch My PC Support
Re: .NET Core Hosting Runtime Bundle
« Reply #6 on: May 17, 2019, 09:14:18 AM »
Can you submit a technical support request https://patchmypc.com/technical-support. I think it would be easier for us to analyze some device(s) with the product installed, but aren't evaluating the update as required. This would help us figure out root cause in our rules why the machine isn't seeing it.

Offline mkmaster78

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: .NET Core Hosting Runtime Bundle
« Reply #7 on: May 20, 2019, 06:49:44 AM »
Support request sent.