home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 February / PCWK0296.iso / po7_win / install / windows.shd < prev    next >
Text File  |  1995-01-11  |  3KB  |  87 lines

  1. /* Copyright (c) Oracle Corporation 1993.  All Rights Reserved */
  2. /*****************************************************************************
  3.   NAME
  4.     windows.shd - V3 Shutdown script for Windows products.
  5.  
  6.   DESCRIPTION
  7.     This script performs shutdown functionality.  In particular, it scans
  8.     the reboot list and displays a message telling users to reboot their 
  9.     machines and displaying the files that were modified in the process.
  10.  
  11.   OWNER
  12.     Irene Chen
  13.  
  14.   MODIFIED    DD-MMM-YY  Reason
  15.     zzerhoun  11-JAN-95  Point to release note instead of displaying it
  16.     zzerhoun  04-JAN-95  Display release note, if any
  17.     zzerhoun  28-DEC-94  Added remind_list and remind_helps
  18.     IChen     14-Jul-94  Created.
  19. *****************************************************************************/
  20.  
  21. {
  22.   {bundle_name = bundle_name;}
  23.   ['UNBOUND_VARIABLE: bundle_name = "";]
  24.  
  25.   {
  26.     if (not(empty(remind_list)))
  27.     {
  28.       remind_text = implode(remind_list,"%carriage_return%%carriage_return%");
  29.       remind_help_text = implode(remind_helps,
  30.                                  "%carriage_return%%carriage_return%");
  31.       if (empty(remind_helps))
  32.         information_dialog(remind_text,'NO_CANCEL);
  33.       else
  34.         information_dialog(remind_text,remind_content,remind_help_text,'NO_CANCEL);
  35.     }
  36.   }[ 'UNBOUND_VARIABLE: continue(); ] /* 'remind' may not be bound */      
  37.  
  38.   {  
  39.     if ( problem_reboot )
  40.       information_dialog(path_problem_prompt,
  41.                   path_problem_content,
  42.                  path_problem_help);
  43.  
  44.     if ( autoexec_reboot )
  45.       information_dialog(autoexec_changed_message,
  46.                          autoexec_changed_content,
  47.                          autoexec_changed_help);
  48.  
  49.     if ( not(empty(reboot)) || not(empty(reboot_hints)))
  50.     {
  51.       if (member(reboot,'config) || member(reboot,'autoexec))
  52.         reboot_text = reboot_prompt1;
  53.       else
  54.         reboot_text = reboot_prompt2;
  55.  
  56.       if (member(reboot,'config))
  57.         reboot_text = "%reboot_text%  CONFIG.SYS";
  58.       if (member(reboot,'autoexec))
  59.         reboot_text = "%reboot_text%  AUTOEXEC.BAT";
  60.       while (not(empty(reboot_hints)))
  61.       {
  62.         hint = first(reboot_hints);
  63.  
  64.         reboot_text = "%reboot_text%%carriage_return%%carriage_return%%hint%";
  65.  
  66.         reboot_hints = rest(reboot_hints);
  67.       }
  68.  
  69.       reboot_help_text = "%reboot_text%%carriage_return%%carriage_return%%reboot_help%";
  70.  
  71.       information_dialog(reboot_text,reboot_content,reboot_help_text,'NO_CANCEL);
  72.     }
  73.   }[ 'UNBOUND_VARIABLE: continue(); ] /* 'reboot' may not be bound */  
  74.  
  75.   {
  76.     user_release_note = "%oracle_home%\release.wri";
  77.  
  78.     if (exists(user_release_note))
  79.       information_dialog(user_release_exists_info,'NO_CANCEL);
  80.     else if (member(list(P_O7,P_O7_E,W_O7_W_NT,W_O7_NW,E_O7_W_NT,E_O7_NW),bundle_name))
  81.       information_dialog(user_release_not_exists_info,'NO_CANCEL);
  82.  
  83.   }[ 'default: continue(); ] /* 'user_release_*' may not be bound */  
  84. }
  85.  
  86.  
  87.