home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 29 Fixes_o
/
29-Fixes_o.zip
/
ip20561.3d1
/
CIDINST.SMP
< prev
next >
Wrap
Text File
|
1995-12-02
|
5KB
|
113 lines
/*******************************************************************************
* ADSTAR Distributed Storage Manager *
* *
* Licensed Materials - Property of IBM *
* *
* (C) Copyright IBM Corporation 1990, 1995. *
* All rights reserved. *
* *
* Refer to Copyright Instructions. *
*******************************************************************************/
/*******************************************************************************
* This is a sample file to demostrate with CID enablement, an administrator can*
* set up a generic DSM.OPT file. The user installs the product will also *
* get the DSM.OPT file and with the user's node name appended to the file. *
*******************************************************************************/
'@echo off'
parse arg nodename
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 TargetDrive variable to the user's local */
/* drive that contains the ADSM product. */
/******************************************************************************/
TargetDrive = 'C:\ADSM'
/******************************************************************************/
/* The ErrorLog variable tell the installer the path and file name for the */
/* error log file. */
/******************************************************************************/
ErrorLog = 'X:\ADSMINST.ERR'
/******************************************************************************/
/* 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 = 'I'
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'
/******************************************************************************/
/* Invoke INSTALL to install the ADSM server using the parameter specified */
/* above. */
/******************************************************************************/
InstallFilesDirectory'INSTALL',
'/X',
'/A:' || Action,
'/R:' || ResponseFileName,
'/L1:' || ErrorLog
retcode = rc /* 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 infomational messages based on the return code from INSTALL. */
/******************************************************************************/
say ''
if retcode = 0 then
do
copy SourceDrive || 'dsm.opt' TargetDrive
'@echo Nodename' nodename '>>' TargetDrive || '\DSM.OPT'
say ActionMsg 'of the ADSM Client for OS/2 has completed successfully.'
end
else
do
say ActionMsg 'of the ADSM Client for OS/2 failed.'
say 'More information regarding the failure is in the file:' ErrorLog
end
say 'INSTALL exited with a return code: 0x'd2x(retcode, 4)
exit
PrintCopyWrite:
say ''
say 'ADSTAR Distributed Storage Manager'
say 'CID Installation Program'
say ''
say 'Licensed Materials - Property of IBM'
say ''
say '(C) Copyright IBM Corporation 1990, 1995. 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