home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 29 Fixes_o
/
29-Fixes_o.zip
/
ip20545.3d1
/
CIDINST.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-09-12
|
5KB
|
95 lines
/*******************************************************************************
* ADSTAR Distributed Storage Manager/2 *
* *
* Licensed Materials - Property of IBM *
* *
* 5622-112 (C) Copyright IBM Corporation 1994. *
* All rights reserved. *
* *
* Refer to Copyright Instructions. *
*******************************************************************************/
'@echo off'
call PrintCopyWrite
/******************************************************************************/
/* Change the contents of the InstallFilesDirectory variable to indicate */
/* the drive and directory where the ADSM installation files are located. */
/******************************************************************************/
InstallFilesDirectory = "D:\DSMINST\"
/******************************************************************************/
/* Change the contents of the Action variable to indicate the action you want */
/* performed. The valid actions are: */
/* 'I' for Install */
/* 'D' for Delete */
/* 'U' for Update */
/* 'R' for Restore */
/******************************************************************************/
Action = 'U'
Action = translate( Action ) /* Ensure uppercase */
/******************************************************************************/
/* The ResponseFileName variable should contain the name and path of the */
/* response file that you want to use. */
/******************************************************************************/
ResponseFileName = 'D:\DSMINST\ADSMRESP.DAT'
/******************************************************************************/
/* The ErrorLog variable tells the installer the path and file name for the */
/* error log file. */
/******************************************************************************/
ErrorLog = 'C:\ADSMINST.ERR'
/******************************************************************************/
/* Invoke INSTALL to install the ADSM server using the parameters specified */
/* above. */
/******************************************************************************/
InstallFilesDirectory'INSTALL',
'/A:' || Action,
'/R:' || ResponseFileName,
'/L1:' || ErrorLog,
'/X'
retcode = d2x(rc, 4) /* Save the return code */
select
when Action = 'I' then
ActionMsg = 'Installation'
when Action = 'D' then
ActionMsg = 'Deletion'
when Action = 'R' then
ActionMsg = 'Restore'
when Action = 'U' then
ActionMsg = 'Update'
otherwise
nop
end /* End select */
/******************************************************************************/
/* Issue informational messages based on the return code from INSTALL. */
/******************************************************************************/
say ''
if retcode = 0000 | retcode = FE00 then
say ActionMsg 'of the ADSM Server for OS/2 has completed successfully.'
else
do
say ActionMsg 'of the ADSM Server for OS/2 failed.'
say 'More information regarding the failure is in the file:' ErrorLog
end
say 'INSTALL exited with a return code: 0x'retcode
exit
PrintCopyWrite:
say ''
say 'ADSTAR Distributed Storage Manager/2'
say 'CID Installation Program'
say ''
say 'Licensed Materials - Property of IBM'
say ''
say '5622-112 (C) Copyright IBM Corporation 1994. All rights reserved.'
say 'U.S. Government Users Restricted Rights - Use, duplication or disclosure'
say 'restricted by GSA ADP Schedule Contract with IBM Corporation.'
say ''
return