• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@IF NOT DEFINED DEBUG_HELPER @ECHO OFF
2
3ECHO Looking for NASM
4
5FOR /F "delims=" %%a IN ('where nasm 2^> NUL') DO (
6  EXIT /B 0
7)
8
9IF EXIST "%ProgramFiles%\NASM\nasm.exe" (
10  SET "Path=%Path%;%ProgramFiles%\NASM"
11  EXIT /B 0
12)
13
14IF EXIST "%ProgramFiles(x86)%\NASM\nasm.exe" (
15  SET "Path=%Path%;%ProgramFiles(x86)%\NASM"
16  EXIT /B 0
17)
18
19if EXIST "%LOCALAPPDATA%\bin\NASM\nasm.exe" (
20  SET "Path=%Path%;%LOCALAPPDATA%\bin\NASM"
21  EXIT /B 0
22)
23
24EXIT /B 1
25