-If this flag has 'true'
+If this optional flag has 'true'
value, the corresponding product will not appear in the list of
products and will not be installed.
@@ -999,11 +1021,39 @@ automatically by the Installation Wizard when necessary from the main
program. See the next
section for
more information.
-
-Note: If you add new products to be installed with Installation
+
<button> section
+This is optional section. It allows customing of the last "Finish"
+page of the Installation Wizard by adding one or more buttons in the
+lower part of the wizard's window. The script which is attached to each
+such button, can perform some specific action, for example, launch
+the application or show the Release Notes file by using external
+program.
+See here for more details about
+writing scripts.
+
+Attributes:
+
+
label
+
+This is the button text.
+
+
tooltip
+
+The button's tooltip (optional).
+
+
script
+
+The script attached to the button.
+
+
disable
+
+If this optional flag has 'true'
+value, the corresponding button will not appear in the "Finish"
+page - the section of XML file is silently ignored.
+ Note: If you add new products to be installed with Installation
Wizard, you should also provide installation script for this product.
See
-the next section for more details.
+the next section for more details.
Implementing installation
scripts for the new products
@@ -1107,7 +1157,7 @@ of the configuration xml file (see previous section). It should call make_env
procedure to perform pick-up environment procedure for the product.
The calling signature of the product installation
-script is following:
+script is the following: <product_script_name>
<function_name> <temp_folder> <products_directory>
<target_directory>
@@ -1146,6 +1196,58 @@ will automatically search and call your script during the installation
procedure.
+
Customizing Readme
+page buttons
+The Installation Wizard allows customizing the look-n-feel of the last
+"Finish" page. If you want to add one or more buttons to this page in
+order to perform some specific actions at the end of the installation
+(for example, show Release Notes file by using Open Office) you can
+put an additional section to the XML configuration file.
+This is the <button> section
+(see here for more details).
+
+To implement the action which will be performed when the user click on
+the button, you need to create a script and put it to the
+<Install_Wizard_root_directory>/config_files directory.
+There are some obligatory functions which should be implemented in this
+script. These functions are automatically called by the Installation
+Wizard GUI.
+
+
check_enabled()
+
+This procedure is called by the Installation Wizard when the "Finish"
+page is displayed and the status of the buttons should be modified
+according to the installation options. This procedure should return 0
+if the corresponding action can be performed and, thus, the button
+should become enabled. Otherwise, it should return 1 - in this case
+the button will be disabled.
+
+
execute()
+
+This procedure is invoked when the user clicks the button. This
+procedure should return 0 if the corresponding action is done
+successfully and 1 if any error occurs.
+The calling signature of the script is the following:
+<product_script_name>
+<function_name> <target_directory> <temp_folder>
+
where
+
+
<product_script_name> -
+the script name itself (retrieved from the XML configuration xml
+file); <function_name>
+- the name of function;
+<target_directory> - root target directory where product are
+installed to; <temp_folder>
+ - temporary files directory;
+ Note: The standard Installation Wizard buttons "Launch
+SALOME" and "Release Notes" are implemented with this
+feature. Refer to the scripts start_salome.sh and
+release_notes.sh for sample implementation.
+ Note: Any button (even standard) can be ignored by the
+Installation Wizard if the attribute <disable> in the XML
+configuration file is set to the "true" value.