.NET Framework 4.8 - How to check that the target system meets the minimum capabilities

Got a problem you cannot solve? Try here.
mihai
Posts: 32
Joined: Fri Nov 29, 2013 3:53 am

.NET Framework 4.8 - How to check that the target system meets the minimum capabilities

Postby mihai » Thu Nov 05, 2020 6:34 am

Hi,

The list of supported client & server operating systems is listed by Microsoft here: https://docs.microsoft.com/en-us/dotnet/framework/get-started/system-requirements#supported-server-operating-systems.

I get this when matching that against the list from InstallAware X6:
Get Exact Operating System Version.png
Get Exact Operating System Version.png (31.89 KiB) Viewed 4941 times


However, I'm unclear on how to use the "Get System Settings" command from InstallAware to perform all these checks. First off, does this command mix client & server operating systems? E.g. will the “Get System Settings” command return true for “Windows Server 2012 R2” minimum capability on “Windows 10”? It would help to understand what it does under the hood - does it just compare the build numbers?

Thanks in advance.

mihai
Posts: 32
Joined: Fri Nov 29, 2013 3:53 am

Re: .NET Framework 4.8 - How to check that the target system meets the minimum capabilities

Postby mihai » Thu Nov 05, 2020 7:48 am

First off, does this command mix client & server operating systems? E.g. will the “Get System Settings” command return true for “Windows Server 2012 R2” minimum capability on “Windows 10”? It would help to understand what it does under the hood - does it just compare the build numbers?

Apparently not, because "Get System Settings" for the "Windows Server 2012" (build number would be 9200) capability returns FALSE on Windows 10 (2004, build number 19041). This is probably a good thing for the task at hand.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: .NET Framework 4.8 - How to check that the target system meets the minimum capabilities

Postby FrancescoT » Thu Nov 05, 2020 11:10 am

it's exactly as you say.

"Get System Settings" for the "Windows Server 2012" (minimum capability) will return FALSE when executed from any non-server version of Windows OS.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

mihai
Posts: 32
Joined: Fri Nov 29, 2013 3:53 am

Re: .NET Framework 4.8 - How to check that the target system meets the minimum capabilities

Postby mihai » Mon Nov 09, 2020 10:36 am

Thanks for the confirmation!

Here's what I have so far, for .NET Framework 4.8.03928. Does this make sense? Any feedback would be highly appreciated.

Code: Select all

Read Registry Key HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\Version into DOTNET48_X86X64

if Variable DOTNET48_X86X64 Greater Than (Version) 4.8.03927
  Set Variable DOTNET48_X86X64 to TRUE
else
  Set Variable DOTNET48_X86X64 to FALSE
end
 
if Variable DOTNET48_X86X64 Equals FALSE
  Set Variable DOTNET48_ABORT to FALSE
  Get Exact OS Level into OS_VERSION
  Get Exact SP Level into OS_SP_NUMBER
   
  Get System Setting Windows with Server Features into IS_WINDOWSSERVER
  if Variable IS_WINDOWSSERVER Equals TRUE
    Get System Setting Windows 2008 R2 into ISATLEAST_WINDOWSSERVER2008R2
    if Variable ISATLEAST_WINDOWSSERVER2008R2 Equals TRUE
      if Variable OS_VERSION Equals 2008R2
        if Variable OS_SP_NUMBER Equals 0
          Comment: Windows Server 2008R2 w/out SP1
          Set Variable DOTNET48_ABORT to TRUE
        end
      end
    else
      Comment: Before Windows Server 2008R2
      Set Variable DOTNET48_ABORT to TRUE
    end
  else
    Comment: Client OS
    Get System Setting Windows 7 into ISATLEAST_WINDOWS7
    if Variable ISATLEAST_WINDOWS7 Equals TRUE
      if Variable OS_VERSION Equals SEVEN
        if Variable OS_SP_NUMBER Equals 0
          Comment: Windows 7 w/out SP1
          Set Variable DOTNET48_ABORT to TRUE
        end
      else
        if Variable OS_VERSION Equals METRO
          Comment: Windows 8
          Set Variable DOTNET48_ABORT to TRUE
        else
          Get System Setting Windows 10 into ISATLEAST_WINDOWS10
          Get System Setting Windows 10 Redstone into ISATLEAST_WINDOWS10_1607
          if Variable ISATLEAST_WINDOWS10 Equals TRUE
            if Variable ISATLEAST_WINDOWS10_1607 Equals FALSE
              Comment: Windows 10 before 1607
              Set Variable DOTNET48_ABORT to TRUE
            end
          end
        end
      end
    else
      Comment: Before Windows 7
      Set Variable DOTNET48_ABORT to TRUE
    end
  end


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 55 guests