summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorPiotr Strzelczyk <piotr@eps.gda.pl>2009-05-15 22:43:32 +0000
committerPiotr Strzelczyk <piotr@eps.gda.pl>2009-05-15 22:43:32 +0000
commitb9717b974fff2bd29e2a5a583311969f9fa98bdb (patch)
tree879b6cc3a80edc68ae30aa509f35772d79169651 /Master
parentb7827fe5d0581963eb0276ee11543c8b81b1baa0 (diff)
hiding console window for tlmgr gui
git-svn-id: svn://tug.org/texlive/trunk@13105 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/bin/win32/tlmgr-gui.vbs1
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl6
-rw-r--r--Master/tlpkg/tlpsrc/texlive.infra.tlpsrc2
3 files changed, 5 insertions, 4 deletions
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"