/* Copyright (c) Oracle Corporation 1993.  All Rights Reserved */
/*****************************************************************************
  NAME
    migate.ins - Netware V3 installation script for the V6 Migration Utility

  DESCRIPTION
    This script installs the V6 Migration Utility.

  OWNER
    Dan Galatin

  MODIFIED    DD-MMM-YY Reason
    dgalatin  25-FEB-93 Created.
*****************************************************************************/
{
  if (bootstrap)
  {
    ui_product(product_label);

    ui_action( instantiate(installing_nlms) );
    copy(nlm);

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

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

    remove_file("%server%\%oracle_home%\orainst\netware.rgs");

    { remove_directory("%server%\%oracle_home%\orainst"); }
     [ 'WRITE_ERROR: continue();
       'OS_ERROR:    continue(); ]

    information_dialog(instantiate(install_done_prompt),
                       install_done_content,
                       instantiate(install_done_help));
  }
  else /* not on bootstrap... */
  {
    if (doit)
    {
      ui_product(product_label);
  
      ui_action( instantiate(installing_scripts) );
      copy(deinstl);
  
      ui_action( instantiate(installing_nlms) );
      copy(nlm);
  
      ui_action( instantiate(installing_msbs) );
      copy(msg, nls_abbreviation);
  
      ui_action( instantiate(installing_sql) );
      copy(sql);
       
      ui_action( instantiate(modifying_server_config) );
      modify("RDBMS70",RDBMS70,"%server%/%ora_config%","=");

      ui_action( instantiate(registering) );
      register(product);
    }
  }
}
