summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-11-23 11:57:25 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-11-23 11:57:25 -0500
commitd1fb273d20bd658ff4a28b149ff132e65f122255 (patch)
tree0aa8492174189e3a7fb8f4db1a71a5f35adc8c16 /src
parentba7d6a0e5119395933e1fe696944cd175ff68eed (diff)
downloadSMAPI-d1fb273d20bd658ff4a28b149ff132e65f122255.tar.gz
SMAPI-d1fb273d20bd658ff4a28b149ff132e65f122255.tar.bz2
SMAPI-d1fb273d20bd658ff4a28b149ff132e65f122255.zip
fix cryptic error when running installer from inside a zip in Windows
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Installer/windows-install.bat9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/SMAPI.Installer/windows-install.bat b/src/SMAPI.Installer/windows-install.bat
index 7a8b409b..d02dd4c6 100644
--- a/src/SMAPI.Installer/windows-install.bat
+++ b/src/SMAPI.Installer/windows-install.bat
@@ -1 +1,8 @@
-START /WAIT /B internal/windows-install.exe
+@echo off
+echo %~dp0 | findstr /C:"%TEMP%" 1>nul
+if not errorlevel 1 (
+ echo Oops! It looks like you're running the installer from inside a zip file. Make sure you unzip the download first.
+ pause
+) else (
+ start /WAIT /B internal/windows-install.exe
+)