home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 29 Fixes_o / 29-Fixes_o.zip / ctw308.zip / cppupd.cmd next >
OS/2 REXX Batch file  |  1997-07-29  |  3KB  |  66 lines

  1. /*****************************************************************************/
  2. /* IBM(R) VisualAge(TM) C++ for OS/2(R), Version 3                           */
  3. /* (C)Copyright IBM Corp. 1995.                                              */
  4. /* - Licensed Material - Program-Property of IBM - All Rights Reserved       */
  5. /*****************************************************************************/
  6. /*********************************************************************/
  7. /* This routine updates the VisualAge C++ for OS/2 product.          */
  8. /*********************************************************************/
  9. "@echo off"
  10.  
  11. /*********************************************************************/
  12. /* Get the CPP main directory and whether shared installed or not    */
  13. /*********************************************************************/
  14. curdir = directory()
  15. cppdir = VALUE(CPPMAIN,,'OS2ENVIRONMENT')
  16. vac_shared = VALUE(VACPP_SHARED,,'OS2ENVIRONMENT')
  17.  
  18. /*********************************************************************/
  19. /* Backup EPFIS.INI file                                             */
  20. /*********************************************************************/
  21. temp = VALUE(USER_INI,,'OS2ENVIRONMENT')
  22. temp = overlay('system\', temp, length(temp) - 6)
  23. epfisini = temp || epfis.ini
  24. epfisbak = cppdir || '\epfis.bak'
  25. copy epfisini epfisbak
  26.  
  27. /*********************************************************************/
  28. /* Set up the names of the files                                     */
  29. /*********************************************************************/
  30. cur_package = cppdir || '\VACPP.pkg'
  31. bak_package = cppdir || '\VACPP.bak'
  32.  
  33. upd_package = 'VACPP.pkg'
  34. upd_icf     = 'VACPP.icf'
  35.  
  36. /*********************************************************************/
  37. /* Backup the current package file                                   */
  38. /*********************************************************************/
  39. copy cur_package bak_package
  40.  
  41. /*********************************************************************/
  42. /* Copy the update package to the current package                    */
  43. /*********************************************************************/
  44. copy upd_package cur_package
  45.  
  46. /*********************************************************************/
  47. /* Copy the catalog file from extras to the install directory        */
  48. /*********************************************************************/
  49. copy upd_icf cppdir
  50.  
  51. /*********************************************************************/
  52. /* Update the desktop using software installer                       */
  53. /*********************************************************************/
  54. prodname = "IBM VisualAge C++ for OS/2"
  55. cppdir||'\epfinsts /A:U /C:'||cppdir||'\VACPP.icf /O:DRIVE /P:'||'"'||prodname'"'||' /S:'||curdir
  56.  
  57. /*********************************************************************/
  58. /* Backup the current package file                                   */
  59. /*********************************************************************/
  60. copy bak_package cur_package
  61. erase bak_package
  62. /*erase cppdir||'\VACPP.icf' - commented for fixpak 7, 97/3/5*/
  63.  
  64. copy epfisbak epfisini
  65. erase epfisbak
  66.