Skip to content

Commit 510f890

Browse files
committed
Update instal script to delete any existing files.
1 parent c594855 commit 510f890

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

install_script.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ if not "%CURRDIR%"=="%CD%" (
145145

146146
REM copy the BuildCustomizations to VCTargets folder
147147
echo Installing build customisations...
148+
del /F /Q "%VCTargetsPath%\BuildCustomizations\yasm.*" 1>NUL 2>NUL
148149
copy /B /Y /V "%SCRIPTDIR%\yasm.*" "%VCTargetsPath%\BuildCustomizations\" 1>NUL 2>NUL
149150
if not exist "%VCTargetsPath%\BuildCustomizations\yasm.props" (
150151
echo Error: Failed to copy build customisations!
@@ -169,6 +170,7 @@ if not exist "%SCRIPTDIR%\yasm\" (
169170

170171
REM copy yasm executable to VC installation folder
171172
echo Installing required YASM release binary...
173+
del /F /Q "%VCINSTALLDIR%\yasm.exe" 1>NUL 2>NUL
172174
move /Y "%SCRIPTDIR%\yasm.exe" "%VCINSTALLDIR%\" 1>NUL 2>NUL
173175
if not exist "%VCINSTALLDIR%\yasm.exe" (
174176
echo Error: Failed to install YASM binary!

0 commit comments

Comments
 (0)