summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-23 23:25:51 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-11-28 00:01:51 -0500
commitcb378a1c558dc2c5de9f2ab1ae9ba38b17d2ac7c (patch)
tree1bc55d4878954cf7f166ca66557456f331d811ec /src/SMAPI.Installer
parent51c6ef9443c9d53448d39a97afde8a0fd23eec46 (diff)
downloadSMAPI-cb378a1c558dc2c5de9f2ab1ae9ba38b17d2ac7c.tar.gz
SMAPI-cb378a1c558dc2c5de9f2ab1ae9ba38b17d2ac7c.tar.bz2
SMAPI-cb378a1c558dc2c5de9f2ab1ae9ba38b17d2ac7c.zip
keep installer window open if it crashes
Diffstat (limited to 'src/SMAPI.Installer')
-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
+)