home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a525 / 35.ddi / ORAINST.VRF < prev    next >
Encoding:
Text File  |  1993-03-01  |  4.9 KB  |  96 lines

  1. /* Copyright (c) Oracle Corporation 1992.  All Rights Reserved */
  2. /*****************************************************************************
  3.   NAME
  4.     orainst.vrf - V3.0.9.2 version analysis/product configuration
  5.           script for OS/2 Oracle Installer.
  6.  
  7.   DESCRIPTION
  8.     This script checks dependencies and environment settings for the
  9.     installation of the OS/2 Oracle Installer.
  10.  
  11.   OWNER
  12.     Dan Galatin
  13.  
  14.   MODIFIED    DD-MMM-YY     Reason
  15.     ekabatch  10-JAN-92     Permitted Oracle Home migration.  Made NLS compliant.
  16.     ekabatch  08-AUG-92     Forced a separate Oracle Home.
  17.     ekabatch  07-MAR-92     Normalized.
  18.     ekabatch  28-JAN-92     Created.
  19. *****************************************************************************/
  20. {
  21.   product_label = product_interface_label(current_product);
  22.  
  23.   ui_product(product_label);
  24.  
  25.   analyzing_dependencies = instantiate(nls("analyzing_dependencies",
  26.                        "Analyzing %%product_label%% Dependencies..."));
  27.  
  28.   ui_action(analyzing_dependencies);
  29.  
  30.   {
  31.     if (not(distribution))
  32.       signal('UNBOUND_VARIABLE);
  33.   }
  34.     [ 'UNBOUND_VARIABLE:
  35.     {
  36.       install_from_distribution = nls("install_from_distribution","In order to install the installer, please run it from a distribution diskette or CD-ROM.");
  37.       signal('FAILURE,install_from_distribution);
  38.     }
  39.     ]
  40.  
  41.   doit = TRUE;
  42.  
  43.   if (registered(product_name(current_product)))
  44.     {
  45.       registry = registration(product_name(current_product));
  46.       current_version = product_version(current_product);
  47.       installed_version = registry_version(registry);
  48.  
  49.       if (earlier_version(registry,current_version))
  50.     {
  51.       doit = yesno_dialog(instantiate(reinstall_prompt01),TRUE,
  52.                   instantiate(reinstall_content01),
  53.                   instantiate(reinstall_help01));
  54.  
  55.       if (not(doit))
  56.         if (bootstrap)
  57.           information_dialog(instantiate(reinstall_prompt02),
  58.                  instantiate(reinstall_content02),
  59.                  instantiate(reinstall_help02),);
  60.     }
  61.       else if (later_version(registry,current_version))
  62.     doit = yesno_dialog(instantiate(reinstall_prompt03),FALSE
  63.                 instantiate(reinstall_content03),
  64.                 instantiate(reinstall_help03));
  65.       else /* if (not(bootstrap)) */
  66.     doit = yesno_dialog(instantiate(reinstall_prompt04),FALSE,
  67.                 instantiate(reinstall_content04),
  68.                 instantiate(reinstall_help04));
  69.     }
  70.  
  71.     need_reboot_prompt = nls("need_reboot_prompt","The Oracle Installer has been installed. In order to install Oracle products, please reboot your computer and run the installer from your hard disk.");
  72.     need_reboot_content = nls("need_reboot_content","Reboot Needed");
  73.     need_reboot_help = nls("need_reboot_help","The Oracle Installer has been installed. However, you cannot continue to install other Oracle products until the changes that were made to your CONFIG.SYS file have taken effect. Please reboot your computer and run the installer from your hard disk.");
  74.  
  75.     need_config_changes_prompt = instantiate(nls("need_config_changes_prompt","The Oracle Installer has been installed. In order to install Oracle products, please make the necessary changes to your CONFIG.SYS file, reboot your computer, and run the installer from your hard disk. A sample CONFIG.SYS file can be found in %%boot_drive%%:\CONFIG.NEW. See your 'Getting Started' manual for help with making changes to your CONFIG.SYS file."));
  76.     need_config_changes_content = nls("need_config_changes_content","Changes Needed");
  77.     need_config_changes_help = instantiate(nls("need_config_changes_help","The Oracle Installer has been installed. However, you cannot continue to install other Oracle products until the necessary changes to your CONFIG.SYS file have been made and have taken effect. A sample CONFIG.SYS file can be found in %%boot_drive%%:\CONFIG.NEW. See your 'Getting Started' manual for help with making changes to your CONFIG.SYS file. Please make the necessary changes, reboot your computer, and run the installer from your hard disk."));
  78.  
  79.   if (doit)
  80.     {
  81.       installing_executables = nls("installing_executables","Installing %%product_label%% Executables...");
  82.       installing_resources = nls("installing_resources",
  83.                  "Installing %%product_label%% Resources...");
  84.       installing_scripts = nls("installing_scripts",
  85.                    "Installing %%product_label%% Scripts...");
  86.       recording_name = nls("recording_name","Recording Customer Name...");
  87.  
  88.       recording_name_error1 = nls("recording_name_error1","There was an error recording your name in %%oracle_home%%\DBS\OI%%nls_abbreviation%%.RES. Please correct the problem with this file and reinstall the Installer.");
  89.  
  90.       recording_name_error2 = nls("recording_name_error2","There was an error recording your name in %%oracle_home%%\DBS\OIUS.RES. Please correct the problem with this file and reinstall the Installer.");
  91.               
  92.       return(sum(deinstl,orainst,res,nls_abbreviation));
  93.     }
  94.   else
  95.     return(0);
  96. }