From b9717b974fff2bd29e2a5a583311969f9fa98bdb Mon Sep 17 00:00:00 2001 From: Piotr Strzelczyk Date: Fri, 15 May 2009 22:43:32 +0000 Subject: hiding console window for tlmgr gui git-svn-id: svn://tug.org/texlive/trunk@13105 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/win32/tlmgr-gui.vbs | 1 + Master/texmf/scripts/texlive/tlmgr.pl | 6 +++--- Master/tlpkg/tlpsrc/texlive.infra.tlpsrc | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 Master/bin/win32/tlmgr-gui.vbs diff --git a/Master/bin/win32/tlmgr-gui.vbs b/Master/bin/win32/tlmgr-gui.vbs new file mode 100644 index 00000000000..b732ea38d05 --- /dev/null +++ b/Master/bin/win32/tlmgr-gui.vbs @@ -0,0 +1 @@ +WScript.Createobject("Wscript.Shell").Run """" & WScript.ScriptFullName & "\..\tlmgr.bat"" -gui", 0 diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index fab861a322a..6ef37dd6dbf 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -1149,14 +1149,14 @@ sub write_w32_updater { print UPDATER ' @echo off setlocal enableextensions -(set errorlevel=) (set guimode=' . $::gui_mode . ') >nul copy /y "%~dp0..\texmf\scripts\texlive\updater-w32.bat" "%~dp0updater-w32.bat" rem Execute with cmd.exe to avoid problems if 4NT is used rem Keep files write open during execution to signal running state -cmd.exe /c call "%~dp0updater-w32.bat" ' . join(' ',@updater_args) . ' 8^>^>"%~f0" 9^>^>"%~dp0updater-w32.bat" +rem For gui mode console window might be hidden, so open a new one +' . ($::gui_mode ? 'start /wait ' : '') . 'cmd.exe /c title TeX Live Manager 2009^& call "%~dp0updater-w32.bat" ' . join(' ', @updater_args) . ' 8^>^>"%~f0" 9^>^>"%~dp0updater-w32.bat" rem Self-delete without error message about missing file -(if not errorlevel 1 start /b cmd.exe /c del "%~f0" "%~dp0updater-w32.bat") & exit /b %errorlevel% +(if not errorlevel 1 start /b cmd.exe /c del "%~f0" "%~dp0updater-w32.bat") & goto :eof '; close UPDATER; return 0; diff --git a/Master/tlpkg/tlpsrc/texlive.infra.tlpsrc b/Master/tlpkg/tlpsrc/texlive.infra.tlpsrc index 8ac84f626d2..b565d6d20e9 100644 --- a/Master/tlpkg/tlpsrc/texlive.infra.tlpsrc +++ b/Master/tlpkg/tlpsrc/texlive.infra.tlpsrc @@ -54,5 +54,5 @@ binpattern f bin/win32/tl-w32-wrapper.texlua binpattern f/win32 texmf/scripts/texlive/updater-w32.bat # post actions postaction shortcut type=menu name="TeX Live Toplevel Readme Index" cmd=TEXDIR/index.html -postaction shortcut type=menu name="TeX Live Manager" cmd=TEXDIR/bin/win32/tlmgr.bat args=gui hide=1 +postaction shortcut type=menu name="TeX Live Manager" cmd=TEXDIR/bin/win32/tlmgr-gui.vbs hide=1 postaction shortcut type=menu name="Release notes" cmd="http://tug.org/texlive/windows.html" -- cgit v1.2.3