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 >
Wrap
OS/2 REXX Batch file
|
1995-05-15
|
3KB
|
57 lines
/*****************************************************************************/
/* IBM(R) VisualAge(TM) C++ for OS/2(R), Version 3 */
/* (C)Copyright IBM Corp. 1995. */
/* - Licensed Material - Program-Property of IBM - All Rights Reserved */
/*****************************************************************************/
/*********************************************************************/
/* This routine updates the desktop for VisualAge C++ for OS/2. */
/*********************************************************************/
"@echo off"
/*********************************************************************/
/* Get the CPP main directory and whether shared installed or not */
/*********************************************************************/
cppdir = VALUE(CPPMAIN,,'OS2ENVIRONMENT')
vac_shared = VALUE(VACPP_SHARED,,'OS2ENVIRONMENT')
/*********************************************************************/
/* Set up the names of the files */
/*********************************************************************/
cur_package = cppdir || '\VACPP.pkg'
bak_package = cppdir || '\VACPP.bak'
if vac_shared = "FALSE" then /* Product was basic installed */
upd_package = cppdir || '\extras\cppdesk.pkg'
else
upd_package = cppdir || '\shared\cppdesk.pkg'
upd_icf = cppdir || '\extras\cppdesk.icf'
/*********************************************************************/
/* Backup the current package file */
/*********************************************************************/
copy cur_package bak_package
/*********************************************************************/
/* Copy the update package to the current package */
/*********************************************************************/
copy upd_package cur_package
/*********************************************************************/
/* Copy the catalog file from extras to the install directory */
/*********************************************************************/
copy upd_icf cppdir
/*********************************************************************/
/* Update the desktop using software installer */
/*********************************************************************/
prodname = "IBM VisualAge C++ for OS/2"
cppdir||'\epfinsts /A:U /C:'||cppdir||'\cppdesk.icf /O:DRIVE /P:'||'"'||prodname'"'||' /R:'||cppdir||'\extras\cppdesk.rsp'
/*********************************************************************/
/* Backup the current package file */
/*********************************************************************/
copy bak_package cur_package
erase bak_package
erase cppdir||'\cppdesk.icf'