signal('failure,instantiate(nls("instver_too_early1","The version of the Installer currently running is %%installer_version%%. The installation you have chosen requires version %%required_version%% or later. Please run version %%required_version%% or later in order to perform this installation.")));
no_products_msg = nls("no_products_msg", "There are no items available to install under this selection. Choose OK to continue.");
no_products_help = nls("no_products_help", "No items are available for installation under your selection. Choose OK to continue.");
no_selection_msg = nls("no_selection_msg", "No items were selected to be installed. Choose OK to continue without installing any items, or BACK to select an item to install.");
no_selection_help = nls("no_selection_help", "No items were selected to be installed. If you wish to install an item, choose BACK to return to the selection list. Choose OK to continue without installing any items.");
/* Determine which type of install - Custom Install has a different behaviour */
{
install_type = install_type;
}
[
'UNBOUND_VARIABLE:
install_type = "Custom Installation";
]
{
if(install_type == install_type_custom)
custom_install = TRUE;
else
custom_install = FALSE;
}
[
'UNBOUND_VARIABLE: custom_install = TRUE;
]
/*----Default list of products------------------------------------------*/
selection_prompt = nls("selection_prompt", "Please select the %%prod_label%% you wish to install:");
selection_help = nls("selection_help", "Select the %%prod_label%% you wish to install by selecting the desired item. Multiple items may be selected.%carriage_return%%carriage_return%Single items may be selected by clicking on the item with the mouse or by moving the cursor to the item and using the space bar to select the item. Multiple items may be selected by holding the CTRL key and clicking on the item with the mouse.");
/*----Override if PKG file found----------------------------------------*/
{ execute("%prod_name%.pkg"); }
[ 'FILE_NOT_FOUND: continue(); ]
/*----Check if product list is empty------------------------------------*/
if (empty(products))
{
information_dialog(
instantiate(no_products_msg),
prod_label,
instantiate(no_products_help),
'NO_CANCEL );
return(0);
}
/*----Build list of product labels--------------------------------------*/
labels = list();
dflt_labels = list();
pkg_labels = list(); # the list of labels installed in the regular pkg_install
dflt_pkg_labels = list(); # the list of labels selected by default from the above list
tmp_products = products;
while (not(empty(tmp_products)))
{
prod = first(tmp_products);
label = product_interface_label(prod);
ver = product_version(prod);
entry = "%label% %ver%";
add(labels,entry);
# pkg_labels contains only those products which should be displayed in the regular pkg_install