summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorSiep Kroonenberg <siepo@cybercomm.nl>2024-04-13 09:06:50 +0000
committerSiep Kroonenberg <siepo@cybercomm.nl>2024-04-13 09:06:50 +0000
commit1e31cc5b0586e4394ef5c9c61081693f56cd27a4 (patch)
tree3889f56aee4171d9177a7ce25480bb089a82e1a2 /Master
parent8e60ff2cedf411afaa376fa501446d639405ef4f (diff)
Test for win10 on ARM; rephrasings
git-svn-id: svn://tug.org/texlive/trunk@70934 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/install-tl-windows.bat53
1 files changed, 37 insertions, 16 deletions
diff --git a/Master/install-tl-windows.bat b/Master/install-tl-windows.bat
index de25f3d6154..63016c2c124 100755
--- a/Master/install-tl-windows.bat
+++ b/Master/install-tl-windows.bat
@@ -8,23 +8,48 @@ rem Originally written 2009 by Tomasz M. Trzeciak.
rem Localize environment changes
setlocal enableextensions enabledelayedexpansion
-rem check for version later than vista
+if "x86"=="%PROCESSOR_ARCHITECTURE%" (
+if ""=="%PROCESSOR_ARCHITEW6432%" (
+ echo 32-bit no longer supported.
+ echo See https://tug.org/texlive/windows.html
+ echo about installing the 2022 32-bit release.
+ pause
+ goto eoff
+))
+
+rem check version
+rem output from 'ver' e.g.
+rem 'Microsoft Windows [Version 10.0.22621.382] for w11, and
+rem 'Microsoft Windows [Version 10.0.19042.508] for w10
+rem It is w11 from 10.0.22000 on.for f in
for /f "usebackq tokens=2 delims=[]" %%I in (`ver`) do set ver_str=%%I
set ver_str=%ver_str:* =%
-rem windows 9x, 2000, xp, vista unsupported
+rem only windows 10 and higher officially supported
if %ver_str:~,2% == 4. goto tooold
if %ver_str:~,2% == 5. goto tooold
-if %ver_str:~,3% == 6.0 (
- echo WARNING: Windows 7 is the earliest supported version.
- echo TeX Live 2020 has not been tested on Windows Vista.
+if %ver_str:~,2% == 6. (
+ echo Windows 10 is the oldest officially supported version
+ echo but Windows 7 and 8 should mostly work.
+ echo Windows Vista has not recently been tested and may or may not work.
pause
+ goto winok
)
-if "x86"=="%PROCESSOR_ARCHITECTURE%" (
-if ""=="%PROCESSOR_ARCHITEW6432%" (
- echo 32-bit no longer supported
- pause
- goto eoff
-))
+rem Windows 10 or higher
+if "AMD64" NEQ "%PROCESSOR_ARCHITECTURE%" (
+ if "AMD64" NEQ "%PROCESSOR_ARCHITEW6432%" (
+ rem Assume ARM64; will need windows 11 or later.
+ if %ver_str:~,5% EQU 10.0. (
+ if %ver_str:~10,1% EQU . (
+ if %ver_str:~5,2% LSS 22 (
+ echo On ARM64, only Windows 11 and higher have x86_64 emulation.
+ pause
+ goto eoff
+ )
+ )
+ )
+ )
+)
+:winok
rem version of external perl, if any. used by install-tl.
set extperl=0
@@ -202,12 +227,8 @@ set errlev=0
rem Start installer
if %tcl% == yes (
-rem echo "%wish%" "%instroot%tlpkg\installer\install-tl-gui.tcl" -- %args%
-rem pause
"%wish%" "%instroot%tlpkg\installer\install-tl-gui.tcl" -- %args%
) else (
-rem echo perl "%instroot%install-tl" %args%
-rem pause
perl "%instroot%install-tl" %args%
)
@@ -217,7 +238,7 @@ goto :eoff
:tooold
echo TeX Live does not run on this Windows version.
-echo TeX Live is supported on Windows 7 and later.
+echo TeX Live is officially supported on Windows 10 and later.
pause
:eoff