From d1fb273d20bd658ff4a28b149ff132e65f122255 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 23 Nov 2018 11:57:25 -0500 Subject: fix cryptic error when running installer from inside a zip in Windows --- docs/release-notes.md | 3 +++ src/SMAPI.Installer/windows-install.bat | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 909b46a0..dab514d5 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,5 +1,8 @@ # Release notes ## Upcoming +* For players: + * Fixed cryptic error when running the installer from inside a zip file on Windows. + * For the web UI: * Added stats to compatibility list. * Fixed compatibility list showing beta header when there's no beta in progress. 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 +) -- cgit