From 85595b28c0d98bc33512d9f409770cbfb6bb7cf9 Mon Sep 17 00:00:00 2001 From: Siep Kroonenberg Date: Thu, 4 Jul 2019 18:48:23 +0000 Subject: runscript GUI error messages with vbscript rather than tcl git-svn-id: svn://tug.org/texlive/trunk@51550 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/win32/runscript.tlu | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Master/bin') diff --git a/Master/bin/win32/runscript.tlu b/Master/bin/win32/runscript.tlu index 9a60015f487..a872e00330b 100755 --- a/Master/bin/win32/runscript.tlu +++ b/Master/bin/win32/runscript.tlu @@ -285,8 +285,13 @@ local guimode local function show_error(msg) if guimode then + local err_cmd os.setenv('RUNSCRIPT_ERROR_MESSAGE', msg) - if lfs.isfile(TEXDIR..'/tlpkg/tltcl/tclkit.exe') and + local errmess_path = TEXDIR .. '/texmf-dist/scripts/texlive/tl-errmess.vbs' + local err_cmd = {"wscript", errmess_path:gsub('/','\\')} + if lfs.isfile(errmess_path) then + os.spawn(err_cmd) + elseif lfs.isfile(TEXDIR..'/tlpkg/tltcl/tclkit.exe') and lfs.isfile(TEXDIR..'/tlpkg/tltcl/gui_err.tcl') then os.spawn{TEXDIR..'/tlpkg/tltcl/tclkit.exe', TEXDIR..'/tlpkg/tltcl/gui_err.tcl'} -- cgit v1.2.3