blob: 8623f321c61460f1ddaf7d38e1b56636bc877c03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
@echo off
REM make sure we're not running within a zip folder
echo "%~dp0" | findstr /C:"%TEMP%" 1>nul
if %ERRORLEVEL% EQU 0 (
echo "Oops! It looks like you're running the installer from inside a zip file. Make sure you unzip the download first."
pause
exit
)
REM make sure .NET 5 is installed
WHERE dotnet /q
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"
pause
exit
)
REM make sure an antivirus hasn't deleted the installer DLL
if not exist internal\windows\SMAPI.Installer.dll (
echo "Oops! SMAPI can't find its 'internal\windows\SMAPI.Installer.dll' file. Your antivirus might have deleted the file."
pause
exit
)
REM start installer
dotnet internal\windows\SMAPI.Installer.dll
|