fix error running installer from folder paths containing parentheses

This commit is contained in:
Jesse Plamondon-Willard 2021-11-30 20:18:17 -05:00
parent 3342502993
commit f5a0dd1578
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,9 @@
← [README](README.md)
# Release notes
## Upcoming release
* Fixed installer failing on Windows when run from the game folder.
## 3.13.0
Released 30 November 2021 for Stardew Valley 1.5.5 or later.

View File

@ -1,6 +1,6 @@
@echo off
SET installerDir=%~dp0
SET installerDir="%~dp0"
REM make sure we're not running within a zip folder
echo %installerDir% | findstr /C:"%TEMP%" 1>nul
@ -28,7 +28,7 @@ if %ERRORLEVEL% NEQ 0 (
)
REM make sure an antivirus hasn't deleted the installer DLL
if not exist "%installerDir%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.