w10install/optional/install-python.cmd
2022-12-27 21:06:09 +01:00

24 lines
384 B
Batchfile

@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 #######