w10install/optional/install-python.cmd

24 lines
384 B
Batchfile
Raw Permalink Normal View History

@echo off
call check-for-admin
if %ERRORLEVEL% neq 0 exit /b
set OPT=..\optional
set SOFTWARE=..\software
set EXE=python3-setup.exe
if NOT EXIST %SOFTWARE%\%EXE% (
echo ERROR: %SOFTWARE%\%EXE% not found!
exit /b
)
echo ####### %0 #######
cd %SOFTWARE%
@echo on
%EXE% InstallAllUsers=1 PrependPath=0 /passive
@echo off
cd %OPT%
echo ####### %0 #######