summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-23 23:12:43 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-11-28 00:01:51 -0500
commit32ccc8e87294fae4caaf7878ee852ab89b9cfdfd (patch)
tree7b93d110dfe44648635b7f4a968b4655e42d6e8b /src
parentb791e854c1f2117f0cc218485ec767a493a3d847 (diff)
downloadSMAPI-32ccc8e87294fae4caaf7878ee852ab89b9cfdfd.tar.gz
SMAPI-32ccc8e87294fae4caaf7878ee852ab89b9cfdfd.tar.bz2
SMAPI-32ccc8e87294fae4caaf7878ee852ab89b9cfdfd.zip
fix installer file precheck failing for some users
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Installer/assets/windows-install.bat6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SMAPI.Installer/assets/windows-install.bat b/src/SMAPI.Installer/assets/windows-install.bat
index 00a2c6fb..bd6da962 100644
--- a/src/SMAPI.Installer/assets/windows-install.bat
+++ b/src/SMAPI.Installer/assets/windows-install.bat
@@ -1,7 +1,9 @@
@echo off
+SET installerDir=%~dp0
+
REM make sure we're not running within a zip folder
-echo "%~dp0" | findstr /C:"%TEMP%" 1>nul
+echo %installerDir% | findstr /C:"%TEMP%" 1>nul
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.
@@ -19,7 +21,7 @@ if %ERRORLEVEL% NEQ 0 (
)
REM make sure an antivirus hasn't deleted the installer DLL
-if not exist internal\windows\SMAPI.Installer.dll (
+if not exist "%installerDir%internal\windows\SMAPI.Installer.dll" (
echo Oops! SMAPI is missing one of its files. Your antivirus might have deleted it.
echo Missing file: %installerDir%internal\windows\SMAPI.Installer.dll
echo.