/* Copyright (c) Oracle Corporation 1992.  All Rights Reserved */
/*****************************************************************************

  NAME
    plus31.ins - V3.0.10.3.1 installation script for SQL*Plus for Windows 3.1

  DESCRIPTION
    This script installs SQL*Plus for Windows 3.1

  OWNER
    Edan Kabatchnik

  MODIFIED    DD-MMM-YY  Reason
    LMurphy   08-SEP-94  Modified for Windows SQL*Plus 3.1.3.5.x
    LMurphy   23-MAY-94  Modified for Windows SQL*Plus 3.1.2.2.6
    shall     04-FEB-93  Created from RSF 7.0 script.
*****************************************************************************/
{
	if (doit)
	{
		ins_ratchet = "3.1.3.5.4A";
		execute("%installer_home%\windows.ins");
		permit_retry_operations = TRUE;

		ui_action(instantiate(prod_label));
		modify("SQLPATH", sqlpath, ora_config,"Oracle");
		modify("PLUS31", plus31, ora_config,"Oracle");
		modify("EXECUTE_SQL", "PLUS31", ora_config, "Oracle");

		if (set_mshelp)
			modify("MSHELP",mshelp,ora_config,"Oracle");

		ui_action(instantiate(installing_scripts));
			copy(deinstl);

		ui_action(instantiate(installing_exec));
			copy(exe);

		ui_action(instantiate(installing_msbs));
			copy(msg, nls_abbreviation);

		ui_action(instantiate(installing_sql));
			copy(sql);

		ui_action(instantiate(installing_help));
			copy(help);
			copy(doc);

		permit_retry_operations = FALSE;

		install(winrsf71);

		ui_product(product_label);

		permit_retry_operations = TRUE;

		ui_action(instantiate(registering));

		register(current_product);
		if (member(selected_products, current_product))
			reference(current_product);
		reference(winrsf71, current_product);

		permit_retry_operations = FALSE;
	}
}
