summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2023-01-22 10:18:37 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2023-01-22 10:18:37 -0500
commit8ee555c07aaaaa31fe4ceee9e98efa4408192db1 (patch)
tree73c2634ed98a78be5c1e2af0030dca58bb93bf7b /src
parentb4e95a92b33c541d36379d69d3650c5c22ea324c (diff)
downloadSMAPI-8ee555c07aaaaa31fe4ceee9e98efa4408192db1.tar.gz
SMAPI-8ee555c07aaaaa31fe4ceee9e98efa4408192db1.tar.bz2
SMAPI-8ee555c07aaaaa31fe4ceee9e98efa4408192db1.zip
suppress findstr installer error for some players
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Installer/assets/install on Windows.bat4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/SMAPI.Installer/assets/install on Windows.bat b/src/SMAPI.Installer/assets/install on Windows.bat
index b0d9ae81..c61a801e 100644
--- a/src/SMAPI.Installer/assets/install on Windows.bat
+++ b/src/SMAPI.Installer/assets/install on Windows.bat
@@ -4,7 +4,9 @@ setlocal enabledelayedexpansion
SET installerDir="%~dp0"
REM make sure we're not running within a zip folder
-echo %installerDir% | findstr /C:"%TEMP%" 1>nul
+REM The error level is usually 0 (install dir contains temp path), 1 (it doesn't), or 9009 (findstr doesn't exist due to a Windows issue).
+REM If the command doesn't exist, just skip this check.
+echo %installerDir% | findstr /C:"%TEMP%" 1>nul 2>null
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.
echo.