diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-09-23 23:13:17 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-11-28 00:01:51 -0500 |
commit | 51c6ef9443c9d53448d39a97afde8a0fd23eec46 (patch) | |
tree | 13d0f4769bd728011dadbc9220ba2f42a07a5ad8 /src | |
parent | 32ccc8e87294fae4caaf7878ee852ab89b9cfdfd (diff) | |
download | SMAPI-51c6ef9443c9d53448d39a97afde8a0fd23eec46.tar.gz SMAPI-51c6ef9443c9d53448d39a97afde8a0fd23eec46.tar.bz2 SMAPI-51c6ef9443c9d53448d39a97afde8a0fd23eec46.zip |
fix .NET 5 precheck passing if player has .NET Core installed
Diffstat (limited to 'src')
-rw-r--r-- | src/SMAPI.Installer/assets/windows-install.bat | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SMAPI.Installer/assets/windows-install.bat b/src/SMAPI.Installer/assets/windows-install.bat index bd6da962..cb96fc19 100644 --- a/src/SMAPI.Installer/assets/windows-install.bat +++ b/src/SMAPI.Installer/assets/windows-install.bat @@ -19,6 +19,13 @@ if %ERRORLEVEL% NEQ 0 ( pause exit ) +dotnet --info | findstr /C:"Microsoft.WindowsDesktop.App 5." 1>nul +if %ERRORLEVEL% NEQ 0 ( + echo Oops! You must have .NET 5 ^(desktop x64^) installed to use SMAPI: https://dotnet.microsoft.com/download/dotnet/5.0/runtime + echo. + pause + exit +) REM make sure an antivirus hasn't deleted the installer DLL if not exist "%installerDir%internal\windows\SMAPI.Installer.dll" ( |