summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.