From 1665be4acaf4101aba8b29f2b5b994329b10eda3 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Feb 2009 06:18:19 +0000 Subject: much advanced wizard git-svn-id: svn://tug.org/texlive/trunk@12050 c570f23f-e606-0410-a88d-b1316a301751 --- Master/install-tl | 46 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) (limited to 'Master/install-tl') diff --git a/Master/install-tl b/Master/install-tl index f9dfe4f1752..fa6116a6620 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -411,6 +411,16 @@ if ($opt_profile eq "") { our $MENU_QUIT = 2; our $MENU_ALREADYDONE = 3; $opt_gui = "text" if ($opt_no_gui); + # finally do check for additional screens in the $opt_gui setting: + # format: + # --gui :,,... + # which will passed to run_menu (, , ...) + # + my @runargs; + if ($opt_gui =~ m/^([^:]*):(.*)$/) { + $opt_gui = $1; + @runargs = split ",", $2; + } if (-r "tlpkg/installer/install-menu-${opt_gui}.pl") { require("installer/install-menu-${opt_gui}.pl"); } else { @@ -418,7 +428,7 @@ if ($opt_profile eq "") { tlwarn("Using text mode installer.\n"); require("installer/install-menu-text.pl"); } - my $ret = run_menu(); + my $ret = run_menu(@runargs); if ($ret == $MENU_QUIT) { do_cleanup(); MISSING flushlog(); @@ -1473,12 +1483,42 @@ L. =over 4 -=item B<-gui> +=item B<-gui> [[=]I[:I,...]] + +If no I is given starts the default GUI installer (default on +Windows). + +If I is given loads the given installer module. Currently the +following modules are supported: + +=over 8 + +=item C + +The text mode user interface which is the default on Unix systems, and +can be forced with by giving C as I, or with the C<-no-gui> +switch. + +=item C -If possible, use the GUI installer (default on Windows). This requires +The all-in-one GUI installer which is the default on Windows. It is +also selected when giving the C<-gui> option without any I. + +=item C + +A new wizard like installation menu. This I allows selecting +specific pages of the wizard by giving them as I: + + -gui wizard:welcome,path,scheme,integration,install + +=back + +The C and C modules, and thus also when calling with a +simple C<-gui> (without I) requires the Perl/Tk module (L; if Perl/Tk is not available, installation continues in text mode. + =item B<-no-gui> Use the text mode installer (default except on Windows). -- cgit v1.2.3