diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2019-07-04 18:48:23 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2019-07-04 18:48:23 +0000 |
commit | 85595b28c0d98bc33512d9f409770cbfb6bb7cf9 (patch) | |
tree | 0a57a8401651d035cb92559862bfcfe9a8c4be8d | |
parent | ce05cb8b219711b74cbc19898837f9485c598608 (diff) |
runscript GUI error messages with vbscript rather than tcl
git-svn-id: svn://tug.org/texlive/trunk@51550 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/bin/win32/runscript.tlu | 7 | ||||
-rw-r--r-- | Master/texmf-dist/scripts/texlive/tl-errmess.vbs | 7 |
2 files changed, 13 insertions, 1 deletions
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'} diff --git a/Master/texmf-dist/scripts/texlive/tl-errmess.vbs b/Master/texmf-dist/scripts/texlive/tl-errmess.vbs new file mode 100644 index 00000000000..6212afc4181 --- /dev/null +++ b/Master/texmf-dist/scripts/texlive/tl-errmess.vbs @@ -0,0 +1,7 @@ +option explicit + +Dim wsh, envi + +Set wsh = wscript.CreateObject("wscript.shell") +Set envi = wsh.environment("PROCESS") +MsgBox envi("RUNSCRIPT_ERROR_MESSAGE"), vbcritical, "Error"
\ No newline at end of file |