/nsis-dotnetcore

NSIS installer macros for working with dotnet core runtime installation & version checking

Primary LanguageNSISMIT LicenseMIT

DotNetCore NSIS macro

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. Support for the core runtime only, or for ASP.NET Core runtime, 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.

Usage

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