[EXT] Re: [UNIV: TeX Live 2020] %tlroot%\bin\win32\tlmgr.bat

Siep Kroonenberg siepo at bitmuis.nl
Sat Jan 30 21:09:35 CET 2021


On Thu, Jan 28, 2021 at 03:30:13PM +0000, Philip Taylor wrote:
> Philip Taylor wrote:
> 
> Ah.  I had thought that it would launch a GUI which would allow me to select from a set of pre-defined actions ...  The real problem is that the diagnostic  does not appear if one launches TLMGR from a Windows Explorer file listing, as I did.  It was only when I edited the first line to read "Echo on" that I was able to read and report the diagnostic.
> 
> The following small modifications to the prelude and postlude of "tlmgr.bat" would allow it to issue an appropriate diagnostic which would remain visible until dismissed by the user even if the file were launched from Windows Explorer —
> 
> @echo off
> 
> [...]
> 
> rem Get TL installation root (w/o trailing backslash)
> set tlroot=%~dp0:
> set tlroot=%tlroot:\bin\win32\:=%
> 
> rem check for gui or null argument
> if x == x%1 goto guibailout
> 
> [...]
> 
> :err_rename_updater
> echo %~nx0: failed to rename "%tlupdater%">&2
> exit /b 1
> 
> :guibailout
> echo Please use tlshell as a GUI for tlmgr && PAUSE
> exit /b 1

I added something of the kind, r57562.

-- 
Siep Kroonenberg


More information about the tex-live mailing list.