home *** CD-ROM | disk | FTP | other *** search
/ Oracle Video Server 3.0.3.1 / OVS_3031_NT.iso / win32 / install / orainst.vrf < prev    next >
Encoding:
Text File  |  1997-08-19  |  5.0 KB  |  127 lines

  1. /* Copyright (c) Oracle Corporation 1996.  All Rights Reserved */
  2.  
  3. /*****************************************************************************
  4.   NAME
  5.     orainst.vrf - Windows 32-bit V3 Installation Verify Script
  6.  
  7.   DESCRIPTION
  8.     This script verifies the Windows 32-bit installer.
  9.  
  10.   CREATED
  11.     Siddhartha Agarwal, July 11, 1996
  12.  
  13.   MODIFIED   MM/DD/YY REASON
  14.   vrajkuma   12/27/96 Made OCSM compliant.
  15. *****************************************************************************/
  16.   product_label = product_interface_label(current_product);
  17.  
  18.   ui_product(product_label);
  19.  
  20.   analyzing_dependencies = instantiate(nls("analyzing_dependencies",
  21.                        "Analyzing %%product_label%% Dependencies..."));
  22.  
  23.   ui_action(analyzing_dependencies);
  24.  
  25.    cancelling_install = nls("cancelling_install","Cancelling Installation of %%product_label%%...");
  26.  
  27.   {
  28.     if (not(distribution))
  29.       signal('UNBOUND_VARIABLE);
  30.   }
  31.     [ 'UNBOUND_VARIABLE:
  32.     {
  33.       install_from_distribution = nls("install_from_distribution","In order to install the Installer, please run it from distribution media.");
  34.       signal('FAILURE,install_from_distribution);
  35.     }
  36.     ]
  37.  
  38.  
  39.   doit = TRUE;
  40.  
  41.   if (registered(product_name(current_product)))
  42.     {
  43.       registry = registration(product_name(current_product));
  44.       current_version = product_version(current_product);
  45.       installed_version = registry_version(registry);
  46.  
  47.       if (earlier_version(registry,current_version))
  48.     {
  49.           version_status = 'upgrade;
  50.       if (verbose)
  51.         doit = yesno_dialog(instantiate(reinstall_prompt01),TRUE,
  52.                 instantiate(reinstall_content01),
  53.                 instantiate(reinstall_help01));
  54.       else
  55.         doit = TRUE;
  56.  
  57.       if (not(doit))
  58.         if ((bootstrap) && (product_location(current_product) == ""))
  59.           information_dialog(instantiate(reinstall_prompt02),
  60.                  instantiate(reinstall_content02),
  61.                  instantiate(reinstall_help02),);
  62.     }
  63.       else if (later_version(registry,current_version))
  64.         {
  65.       version_status = 'downgrade;      
  66.       doit = yesno_dialog(instantiate(reinstall_prompt03),FALSE
  67.                   instantiate(reinstall_content03),
  68.                   instantiate(reinstall_help03));
  69.       if (not(doit))              
  70.         if ((bootstrap) && (product_location(current_product) == ""))
  71.               signal('CANCEL,cancel_prompt01);
  72.         }
  73.       else /* if (not(bootstrap)) */
  74.         {
  75.       version_status = 'reinstall;
  76.       if (verbose)
  77.         doit = yesno_dialog(instantiate(reinstall_prompt04),FALSE,
  78.                 instantiate(reinstall_content04),
  79.                 instantiate(reinstall_help04));
  80.       else
  81.         doit = TRUE;
  82.         }
  83.     }
  84.   else
  85.     version_status = 'new_install;
  86.  
  87.   installer_ocsa_in_use = nls("installer_ocsa_in_use", "Installing the Installer is not possible while its executables are in use. %carriage_return%Please make sure that the installed Installer and any Oracle Client Software Agents connected to this machine are shut down, and retry this installation.");
  88.   installer_insufficient_space = nls("installer_insufficient_space", "An error occurred during the copying of the Installer binaries due to an unavailability of sufficient space at the destination location : %ORACLE_HOME%\bin. %carriage_return%Please make sure that there is adequate space available at this location, and retry this installation.");
  89.   if (doit)
  90.     {
  91.       installing_executables = nls("installing_executables","Installing %%product_label%% Executables...");
  92.       installing_resources = nls("installing_resources",
  93.                  "Installing %%product_label%% Resources...");
  94.       installing_scripts = nls("installing_scripts",
  95.                    "Installing %%product_label%% Scripts...");
  96.       recording_name = nls("recording_name","Recording Company Name...");
  97.  
  98.       recording_name_error1 = nls("recording_name_error1","There was a write error recording your name in '%%oracle_home%%\DBS\OI%%nls_abbreviation%%.RES'. Please correct the problem with this file and reinstall the Installer.");
  99.  
  100.       recording_name_error2 = nls("recording_name_error2","There was a write error recording your name in '%%oracle_home%%\DBS\OIUS.RES'. Please correct the problem with this file and reinstall the Installer.");
  101.  
  102.       group_sum = sum(exec, nlb, res, nls_abbreviation, dll, nls_abbreviation,
  103.                       script, nls_abbreviation, deinstl, nls_abbreviation, prodmsg, nls_abbreviation);
  104.       if (platform() == "nt")
  105.         compat_scripts = ntcompat;
  106.       else
  107.         compat_scripts = win95compat;
  108.  
  109.       group_sum = group_sum + sum(compat_scripts);
  110.  
  111.       /* MOH and OCSM related specifications */
  112.       moh_icon_groups = list(list(exec)); /* TODO: switch homes icon missing */
  113.  
  114.       min_ocsm_groups = list(list(res, nls_abbreviation), list(prodmsg, nls_abbreviation), 
  115.                              list(script, nls_abbreviation), list(dll, nls_abbreviation) );
  116.       max_ocsm_groups = list(list(compat_scripts), list(exec), list(deinstl));
  117.  
  118.       return(group_sum);
  119.     }
  120.   else
  121.     {
  122.       ui_action(instantiate(cancelling_install));
  123.       return(0);
  124.     }
  125. }
  126.