summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMaster/bin/win32/runscript.tlu7
-rw-r--r--Master/texmf-dist/scripts/texlive/tl-errmess.vbs7
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