This repository contains macro scripts intended to check whether a particular version of the dotnet core runtime is installed and, if not, install it.
Currently only supports installing the Windows Desktop
runtime and ASP.NET Core
runtime. Support for the core runtime only is not currently implemented.
The platform will be detected during installation and the appropriate runtime installer will be used.
Supports ARM64
, X86
and X86
platforms.
Include the macro header file
!include "DotNetCore.nsh"
Include one or more of the following to ensure the WindowsDesktop runtime for that version of dotnet is installed
!insertmacro CheckDotNetCore 3.1
!insertmacro CheckDotNetCore 5.0
!insertmacro CheckDotNetCore 6.0
!insertmacro CheckDotNetCore 7.0
Include one or more of the following to ensure the AspNetCore runtime for that version of dotnet is installed
!insertmacro CheckAspNetCore 3.1
!insertmacro CheckAspNetCore 5.0
!insertmacro CheckAspNetCore 6.0
!insertmacro CheckAspNetCore 7.0