Skip to content

Commit 3f1ce73

Browse files
authored
Merge pull request #30 from GerHobbelt/path2
further fixes for in installer batch script when NASM or its installer files are already present on the machine.
2 parents 434b9f6 + cbf3d67 commit 3f1ce73

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
VSNASM
22
=============
3+
34
[![Github All Releases](https://img.shields.io/github/downloads/ShiftMediaProject/VSNASM/total.svg)](https://github.com/ShiftMediaProject/VSNASM/releases)
45
[![GitHub release](https://img.shields.io/github/release/ShiftMediaProject/VSNASM.svg)](https://github.com/ShiftMediaProject/VSNASM/releases/latest)
56
[![GitHub issues](https://img.shields.io/github/issues/ShiftMediaProject/VSNASM.svg)](https://github.com/ShiftMediaProject/VSNASM/issues)

install_script.bat

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -309,18 +309,20 @@ if %ERRORLEVEL% neq 0 (
309309
echo Ensure that this script is run in a shell with the necessary write privileges
310310
goto Terminate
311311
)
312-
REM Check if nasm is alredy found before trying to download it
312+
REM Check if nasm is already found before trying to download it
313313
echo Checking for existing NASM in NASMPATH...
314-
%NASMPATH%\nasm.exe -v >nul 2>&1
315-
if %ERRORLEVEL% equ 0 (
316-
echo Using existing NASM binary from %NASMPATH%...
317-
goto SkipInstallNASM
318-
) else (
319-
echo ..existing NASM not found in NASMPATH.
314+
if exist "%NASMPATH%\nasm.exe" (
315+
"%NASMPATH%\nasm.exe" -v >nul 2>&1
316+
if %ERRORLEVEL% equ 0 (
317+
echo "Using existing NASM binary from %NASMPATH%\nasm.exe..."
318+
goto SkipInstallNASM
319+
) else (
320+
echo "..existing NASM not found in NASMPATH=%NASMPATH%."
321+
)
320322
)
321323
REM Download the latest nasm binary for windows
322324
if exist "%SCRIPTDIR%\nasm_%NASMVERSION%.zip" (
323-
echo Using existing NASM archive...
325+
echo Using existing NASM installer archive...
324326
goto InstallNASM
325327
)
326328
set NASMDOWNLOAD=%NASMDL%/%NASMVERSION%/win%SYSARCH%/nasm-%NASMVERSION%-win%SYSARCH%.zip

0 commit comments

Comments
 (0)