summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer/assets/windows-install.bat
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Installer/assets/windows-install.bat')
-rw-r--r--src/SMAPI.Installer/assets/windows-install.bat9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/SMAPI.Installer/assets/windows-install.bat b/src/SMAPI.Installer/assets/windows-install.bat
index cb96fc19..2e0be906 100644
--- a/src/SMAPI.Installer/assets/windows-install.bat
+++ b/src/SMAPI.Installer/assets/windows-install.bat
@@ -38,3 +38,12 @@ if not exist "%installerDir%internal\windows\SMAPI.Installer.dll" (
REM start installer
dotnet internal\windows\SMAPI.Installer.dll
+
+REM keep window open if it failed
+if %ERRORLEVEL% NEQ 0 (
+ echo.
+ echo Oops! The SMAPI installer seems to have failed. The error details may be shown above.
+ echo.
+ pause
+ exit
+)