diff options
Diffstat (limited to 'Master/bin')
-rwxr-xr-x | Master/bin/windows/runscript.tlu | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Master/bin/windows/runscript.tlu b/Master/bin/windows/runscript.tlu index 318dbabdcfb..c3f22c3bc88 100755 --- a/Master/bin/windows/runscript.tlu +++ b/Master/bin/windows/runscript.tlu @@ -287,14 +287,11 @@ local function show_error(msg) if guimode then local err_cmd os.setenv('RUNSCRIPT_ERROR_MESSAGE', msg) - local errmess_path = TEXDIR .. '/texmf-dist/scripts/texlive/tl-errmess.vbs' - local err_cmd = {"wscript", errmess_path:gsub('/','\\')} + local errmess_path = TEXDIR .. '/texmf-dist/scripts/texlive/tl-errmess.ps1' + local err_cmd = {"powershell", "-NoLogo", "-WindowStyle", "hidden", + '-ExecutionPolicy', 'Bypass', 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'} end else io.stderr:write(msg, '\n') |