home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a525 / 24.ddi / INSTALL.ORI < prev    next >
Encoding:
Text File  |  1993-03-02  |  10.3 KB  |  372 lines

  1. #-------------------------------------------------------------------------
  2. #
  3. # FILE
  4. #       INSTALL.ORI
  5. #       V2 installation script language interpreter file.
  6. #
  7. # DESCRIPTION
  8. #       Installation file for the character-mode Windows Run Form and Run
  9. #       Menu disk.
  10. #
  11. # MODIFIED
  12. #   Greg Costanzo 18-July-91
  13. #
  14. #-------------------------------------------------------------------------
  15.  
  16. #-------------------------------------------------------------------------
  17. # Generate symbols for Disk Volume label and Jacket label for disks.
  18. #-------------------------------------------------------------------------
  19. .LABELGEN
  20. u
  21. V60 FOME %u
  22. Run Form and Run Menu for Windows Disk %u
  23.  
  24. # **********************************************************************
  25. # Copy the install.ori file to the distribution disks
  26. # **********************************************************************
  27. .FILES -NOCOPY
  28. INSTALL.ORI       10499
  29.  
  30. # **********************************************************************
  31. # Copy the forms and menu install scripts to Oracle Home, they will
  32. # be deleted later.
  33. # **********************************************************************
  34. .FILES
  35. FORMS.ORI          2627   %ORACLE_HOME%\FORMS.ORI
  36. MENU.ORI           2978   %ORACLE_HOME%\MENU.ORI
  37.  
  38. # **********************************************************************
  39. # Copy the distribution files to the diskettes, menu and forms.ori scripts
  40. # will copy these files to the user's hard disk if chosen.
  41. # **********************************************************************
  42. .FILES -NOCOPY -COMPRESS
  43. RUNFORM.EXE     1073664
  44. IAPLIBW.LIB      326763
  45. IAPSUPW.LIB       46627
  46. IAPOPTS.OBJ        4021
  47. IAPWMAIN.OBJ       1271
  48. ICCVSN.OBJ         1469
  49. RUNFORM.RES        3115
  50. RFW.DEF             418
  51. RFW.MLN             646
  52. RFWM.MLN            859
  53. RFWP.MLN            769
  54. RFWPM.MLN          1045
  55. USDWIN.LIB        49727
  56. XCONSW.OBJ         5226
  57. XUTW.OBJ           1533
  58. SQLXITW.LIB        6221
  59. RUNMENU.EXE     1071104
  60. USDCMDW.OBJ         970
  61. DMCOS2W.OBJ         275
  62. DMCOS3W.OBJ         275
  63. DMFFNC.OBJ         7965
  64. DMGBANW.OBJ        1112
  65. DMUW.OBJ           2990
  66. DMUWMAIN.OBJ       1295
  67. DMXFEOW.OBJ        1177
  68. RUNMENU.RES        2124
  69. RMW.DEF             416
  70. RMW.MLN             887
  71. RMWP.MLN           1043
  72.  
  73. # **********************************************************************
  74. # Initialize variables ...
  75. # **********************************************************************
  76. .FORMS_USAGE=13
  77. .MENU_USAGE=9
  78. .BOTH_USAGE=22
  79. .PRODUCT_NAME=Run Form and Run Menu for Windows
  80. .FORMS_VERSION=3.0.16.11.3
  81. .FORMS_NUMBER=67
  82. .FORMS_NAME=Run Form for Windows
  83. .MENU_VERSION=5.0.11.12.3
  84. .MENU_NUMBER=68
  85. .MENU_NAME=Run Menu for Windows
  86. .FORMS_REQUIRED=3.0.16.11.3
  87. .MENU_REQUIRED=5.0.11.12.3
  88. .WINRSF_REQUIRED=6.0.36.1.0
  89.  
  90. # **********************************************************************
  91. # Check the Oracle register for required product versions ...
  92. # **********************************************************************
  93. .CHECKREG 67
  94.  WINFORMS
  95.  WINFORMS_VERSION
  96.  
  97. .CHECKREG 68
  98.  WINMENU
  99.  WINMENU_VERSION
  100.  
  101. .CHECKREG 66
  102.  WINRSF
  103.  WINRSF_VERSION
  104.  
  105.   .IF (%WINRSF%=="" || %WINRSF_VERSION% < %WINRSF_REQUIRED%)
  106.   .MESSAGE
  107.   %WARNING%
  108.  
  109.   You have not installed Windows Required Support Files %WINRSF_REQUIRED%.
  110.   Please install Windows Required Support Files %WINRSF_REQUIRED% or later
  111.   and then install %PRODUCT_NAME%.
  112.  
  113.     .PAUSE
  114.    .EXIT
  115.   .ENDIF
  116.  
  117. .CLEARSCREEN
  118.  
  119. # **********************************************************************
  120. # Prompt the user with basic information
  121. # **********************************************************************
  122. .<APPBUILDL>
  123. .MESSAGE
  124.  %NORMAL% This routine installs character-mode Run Form and Run Menu for
  125.  Microsoft Windows 3.1.  This product allows you to run forms and menus
  126.  that were generated by SQL*Forms/SQL*Menu for DOS, in the Microsoft
  127.  Windows 3.1 environment.  It has identical keyboard and video
  128.  attributes to SQL*Forms/SQL*Menu for DOS.
  129.  
  130. .PAUSE
  131.  
  132. # **********************************************************************
  133. # Ask user which products should be installed.
  134. # **********************************************************************
  135. .<CHECK_INST>
  136.  
  137. .IF (%INSTALL_CHECKED%!=1)
  138.  .SELECTPROMPT
  139.   PRODUCT
  140.   Would you like to install SQL*Forms, SQL*Menu or both?
  141.   <PRODUCTHELP>
  142.   1 SQL*Forms only
  143.   2 SQL*Menu only
  144.   3 Both
  145.  .IF (%PRODUCT%==999)
  146.   .EXIT
  147.  .ENDIF
  148.  
  149.  .IF ((%PRODUCT%==1) || (%PRODUCT%==3))
  150.  
  151.   .CHECKREG 5
  152.   FORMS
  153.   FORMS_VERSION
  154.  
  155.   .IF (%FORMS%=="" || %FORMS_VERSION% < %FORMS_REQUIRED%)
  156.   .MESSAGE
  157.   %WARNING%
  158.  
  159.   You have not installed SQL*Forms %FORMS_REQUIRED% for DOS.  Please
  160.   install SQL*Forms %FORMS_REQUIRED% for DOS or later and then
  161.   install %PRODUCT_NAME%.
  162.  
  163.     .PAUSE
  164.    .EXIT
  165.   .ENDIF
  166.  .ENDIF
  167.  
  168.  .IF ((%PRODUCT%==2) || (%PRODUCT%==3))
  169.  
  170.   .CHECKREG 6
  171.    MENU
  172.    MENU_VERSION
  173.  
  174.   .IF (%MENU%=="" || %MENU_VERSION% < %MENU_REQUIRED%)
  175.   .MESSAGE
  176.    %WARNING%
  177.  
  178.    You have not installed SQL*Menu %MENU_REQUIRED% for DOS. Please
  179.    install SQL*Menu %MENU_REQUIRED% for DOS or later and then
  180.    install %PRODUCT_NAME%.
  181.  
  182.     .PAUSE
  183.    .EXIT
  184.   .ENDIF
  185.  .ENDIF
  186.  
  187.  .DISK_USAGE=0
  188.  .IF ((%PRODUCT%==1 || %PRODUCT%==3) && %WINFORMS%=="")
  189.   .DISK_USAGE=%DISK_USAGE%+%FORMS_USAGE%
  190.  .ENDIF
  191.  .IF ((%PRODUCT%==2 || %PRODUCT%==3) && %WINMENU%=="")
  192.   .DISK_USAGE=%DISK_USAGE%+%MENU_USAGE%
  193.  .ENDIF
  194.  
  195. # **********************************************************************
  196. # Find out how much space there is on %ORACLE_DISK%.
  197. # **********************************************************************
  198.  .<CHECK_SPACE>
  199.  
  200.  .IF (%WINFORMS%=="" || %WINMENU%=="")
  201.   .IF (%DISK_USAGE% > %FREE_SPACE%)
  202.  
  203.    .SELECTPROMPT
  204.     USER_RESP
  205.     There is insufficient disk space on drive %ORACLE_DISK%: to
  206.     install this product.  Would you like to attempt to install anyway?
  207.     <DISK_SPACE_HELP>
  208.     1     No
  209.     2     Yes
  210.  
  211.    .IF (%USER_RESP%==1)
  212.     .EXIT
  213.    .ENDIF
  214.    .IF (%USER_RESP%==999)
  215.     .GOTO <CHECK_INST>
  216.    .ENDIF
  217.   .ENDIF
  218.  .ENDIF
  219.  
  220.  .IF ((%PRODUCT%==1) || (%PRODUCT%==3))
  221.   .PRODUCT_NO==67
  222.   .VERSION_NO==%FORMS_VERSION%
  223.  .ELSE
  224.   .PRODUCT_NO==68
  225.   .VERSION_NO==%MENU_VERSION%
  226.  .ENDIF
  227.  
  228.  .IF (%WINFORMS%!="" || %WINMENU%!="")
  229.   .SELECTPROMPT
  230.    USER_RESP
  231.    %PRODUCT_NAME% has already been installed.
  232.    Would you like to reinstall it?
  233.    <REINSTALL_HELP>
  234.    1     No
  235.    2     Yes
  236.  
  237.   .IF (%USER_RESP%==1)
  238.    .EXIT
  239.   .ENDIF
  240.   .IF (%USER_RESP%==999)
  241.    .GOTO <CHECK_INST>
  242.   .ENDIF
  243.   .REINSTALL=1
  244.  .ENDIF
  245.  
  246. .CLEARSCREEN
  247.  
  248. # **********************************************************************
  249. # Find out if the user wants userexit support installed
  250. # **********************************************************************
  251.   .MESSAGE
  252.   %NORMAL% Included with this software are files necessary to build
  253.   a customized RUNFORM.EXE or RUNMENU.EXE containing user exits,
  254.   which may be written in C.  In order to build Run Form or Run Menu
  255.   user exits, you will also need the following installed:
  256.  
  257.   Pro*C with Windows support
  258.  
  259.   Tool Utilities with user exit support
  260.   .IF (%PRODUCT%==1 || %PRODUCT%==3)
  261.    .MESSAGE
  262.     %NORMAL%
  263.     SQL*Forms with user exit support
  264.   .ENDIF
  265.   .IF (%PRODUCT%==2 || %PRODUCT%==3)
  266.    .MESSAGE
  267.     %NORMAL%
  268.     SQL*Menu with user exit support
  269.   .ENDIF
  270.  
  271.   .PAUSE
  272.  
  273.  .SELECTPROMPT
  274.   RUNEXIT
  275.   Included with the report-building software are files necessary
  276.   to build a customized report containing user exits, which may
  277.   be written with C.  It is not necessary to install this capability
  278.   unless it is specifically desired.
  279.   Would you like to install user exit support?
  280.   <RUNEXITHELP>
  281.   1 Install support for user exits
  282.   2 Do not install user exit support
  283.  
  284.  .IF (%RUNEXIT%==999)
  285.   .GOTO <APPBUILDL>
  286.  .ENDIF
  287.  
  288. .CLEARSCREEN
  289.  
  290. .IF (%RUNEXIT%==1)
  291.  
  292.  .ACCESS
  293.  %ORACLE_HOME%\PRO
  294.    .IF (%ACCESSRET%==0)
  295.  
  296. # **********************************************************************
  297. # Create the required directories
  298. # **********************************************************************
  299.    .MESSAGE
  300.     %HILITE% Making directory %ORACLE_HOME%\PRO...
  301.  
  302.    .MKDIR
  303.     %ORACLE_HOME%\PRO
  304.  
  305.    .MKDIR
  306.     %ORACLE_HOME%\PRO\LIB
  307.  
  308.    .MKDIR
  309.     %ORACLE_HOME%\PRO\EXIT
  310.  
  311.    .ENDIF
  312. .ENDIF
  313.  
  314. # **********************************************************************
  315. # Run forms.ori or menu.ori scripts if chosen by user.  Delete them from
  316. # installer's hard disk after running.
  317. # **********************************************************************
  318. .IF ((%PRODUCT%==1) || (%PRODUCT%==3))
  319. .RUNSCRIPT %ORACLE_HOME%\FORMS.ORI
  320. .ENDIF
  321.  
  322. .IF ((%PRODUCT%==2) || (%PRODUCT%==3))
  323. .RUNSCRIPT %ORACLE_HOME%\MENU.ORI
  324. .ENDIF
  325.  
  326. .SYSCALL -QUIET
  327. DEL %ORACLE_HOME%\FORMS.ORI
  328.  
  329. .SYSCALL -QUIET
  330. DEL %ORACLE_HOME%\MENU.ORI
  331.  
  332.  .EXIT
  333.  
  334. # **********************************************************************
  335. # Help panels ...
  336. # **********************************************************************
  337. .<DISK_SPACE_HELP>
  338. %PRODUCT_NAME% requires %DISK_USAGE%00K to install.  There is
  339. %FREE_SPACE%00K free on drive %ORACLE_DISK%:.  You may try to
  340. proceed anyway.  Unless you plan to install only a portion of
  341. it or you are reinstalling after an unsuccessful installation,
  342. ORAINST will probably terminate abnormally.
  343.  
  344. .<REINSTALL_HELP>
  345. %PRODUCT_NAME% has an entry in REGISTER.ORA, indicating
  346. that it has been installed previously.  You may either abort
  347. this installation and save the version you have already
  348. installed, or you may reinstall and overwrite the existing
  349. version.  Entry in REGISTER.ORA follows.
  350.  
  351. Product:  %PRODUCT_NO%
  352. Version:  %VERSION_NO%
  353.  
  354. .<PRODUCTHELP>
  355. This installation can either SQL*Forms, SQL*Menu, or both.  Choose
  356. which installation option you would like ORAINST to perform, or press
  357. <ESC> to exit.
  358.  
  359. .<RUNEXITHELP>
  360. If you have a C compiler, you can create programs which can be called by
  361. your SQL*ReportWriter applications.  You must install the corresponding
  362. ORACLE precompiler in order to compile and link these programs
  363. successfully.  You can still build and run complex reports without the
  364. use of user exits.
  365.  
  366. # **********************************************************************
  367. # Update filelist.ora with filenames not found in .FILES commands
  368. # **********************************************************************
  369.  
  370. .<DEINSTALL>
  371.  
  372.