home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv2.zip / VACPP / IBMCPP / BIN / CPPDESK.CMD < prev    next >
OS/2 REXX Batch file  |  1995-05-15  |  3KB  |  57 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 desktop for VisualAge C++ for OS/2.      */
  8. /*********************************************************************/
  9. "@echo off"
  10.  
  11. /*********************************************************************/
  12. /* Get the CPP main directory and whether shared installed or not    */
  13. /*********************************************************************/
  14. cppdir = VALUE(CPPMAIN,,'OS2ENVIRONMENT')
  15. vac_shared = VALUE(VACPP_SHARED,,'OS2ENVIRONMENT')
  16.  
  17. /*********************************************************************/
  18. /* Set up the names of the files                                     */
  19. /*********************************************************************/
  20. cur_package = cppdir || '\VACPP.pkg'
  21. bak_package = cppdir || '\VACPP.bak'
  22.  
  23. if vac_shared = "FALSE" then       /* Product was basic installed    */
  24.  upd_package = cppdir || '\extras\cppdesk.pkg'
  25. else
  26.  upd_package = cppdir || '\shared\cppdesk.pkg'
  27.  
  28. upd_icf     = cppdir || '\extras\cppdesk.icf'
  29.  
  30. /*********************************************************************/
  31. /* Backup the current package file                                   */
  32. /*********************************************************************/
  33. copy cur_package bak_package
  34.  
  35. /*********************************************************************/
  36. /* Copy the update package to the current package                    */
  37. /*********************************************************************/
  38. copy upd_package cur_package
  39.  
  40. /*********************************************************************/
  41. /* Copy the catalog file from extras to the install directory        */
  42. /*********************************************************************/
  43. copy upd_icf cppdir
  44.  
  45. /*********************************************************************/
  46. /* Update the desktop using software installer                       */
  47. /*********************************************************************/
  48. prodname = "IBM VisualAge C++ for OS/2"
  49. cppdir||'\epfinsts /A:U /C:'||cppdir||'\cppdesk.icf /O:DRIVE /P:'||'"'||prodname'"'||' /R:'||cppdir||'\extras\cppdesk.rsp'
  50.  
  51. /*********************************************************************/
  52. /* Backup the current package file                                   */
  53. /*********************************************************************/
  54. copy bak_package cur_package
  55. erase bak_package
  56. erase cppdir||'\cppdesk.icf'
  57.