home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
adpt107f.zip
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-04-20
|
19KB
|
602 lines
/* Begin Install.CMD for AdeptXBBS */
trace on
'@Echo off'
adummy = ''
say ''
say 'April 20, 1996'
say ''
say ''
say 'The developers of AdeptXBBS have made the difficult decision to stop selling'
say 'AdeptXBBS. On April 30, 1996 our underlying license with Mark Kimes will'
say 'lapse and we will no longer have the right to sell AdeptXBBS. We have'
say 'decided that if we cannot sell AdeptXBBS, we will give it away.'
say ''
say 'AdeptSoft of Boca Raton, Florida today announced the Freeware release of'
say 'AdeptXBBS with AdeptREXX. '
say ''
say 'In the near future, AdeptSoft will release limited source code to the public'
say 'domain to enable 3rd party developers to expand the functionality of'
say 'AdeptXBBS. AdeptSoft will continue to hold the copyright to AdeptXBBS.'
say ''
say 'AdeptSoft will periodically release new versions of the Freeware product to'
say 'fix known bugs. '
say ''
say 'AdeptSoft will discontinue its official online support concurrent with the'
say 'freeware release. The AdeptSoft Support BBS (bbs.adeptsoft.com) will close'
say 'on April 30th.'
store = charout(,'Press Enter to continue...')
parse upper pull enterd
say 'A 16 node freeware version will be released on public FTP sites. This'
say 'version will be fully functional. AdeptXBBS Internet module will be'
say 'released as Demoware. This module is in the process of being rewritten and'
say 'the completed Internet module will be distributed at no cost to registered'
say 'sysops. The Internet Module will be made available for sale to'
say 'non-registered sysops.'
say ''
say 'It is our hope that a Freeware product will find a market that the'
say 'shareware product was unable to establish.'
store = charout(,'Press Enter to continue...')
parse upper pull enterd
say 'The developers of AdeptXBBS wish to thank the users, both registered and'
say 'unregistered, who have helped and supported us through the development and'
say 'launch of AdeptXBBS. Developing AdeptXBBS has been a labor of love of over 6'
say 'man years. '
say 'We wish that our baby had found more homes but AdeptXBBS has been on'
say 'artifical support for 12 of the last 15 months. We are no longer in the'
say 'position to devote our lives to'
say 'developing a product that cannot support itself in the marketplace. We would'
say 'have gladly continued if it were not for the stark reality of underlying'
say 'license agreements, license payments, computer costs, Internet lines,'
say 'telephone costs, etc. '
say ''
say 'John Morris, Gordon Zeglinski and John Lawlor'
say ''
store = charout(,'Press Enter to continue...')
parse upper pull enterd
adummy = ''
say ''
say ''
say ''
say ''
say 'Please... Make sure Chatserver.exe is NOT loaded! If it is this install'
say ' will fail without warning. Please make sure that Gatekpr.exe'
say ' is also not running, or any other AdeptXBBS utilities.'
say ''
dummy = charout(,'Do you wish to continue with this install? [y/N] ')
parse upper pull adummy
if left(adummy,1) \= 'Y' then do
exit
end
say ''
say ''
say '
Thank you for Choosing AdeptSoft and AdeptXBBS!!'
say ''
say '
──────────────────────────────────────────────────────────'
say 'C
──────────────────────────────────────────────────────────'
say 'C
▌
▐C
────────────────────────────────────────────────────────'
say 'C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐
'
say 'C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐
'
say 'C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
'
say 'C
▌
▐C ▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐
'
say 'C
▌
▐C ▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐C
▌
▐
'
say 'C
▌
▐C ▐C
───────────────────────────────────────────────────────'
say 'C
──────────────────────────────────────────────────────────'
say '
──────────────────────────────────────────────────────────'
say ''
say ''
say ''
say ''
say ''
say ''
store = charout(,'Press Enter to continue...')
parse upper pull enterd
say ''
say ''
say 'C
┌───────────────────────────────────────────────────────────────────┐
'
say 'C
│
AdeptXBBS
1.07
Installation/Update Program
│
'
say 'C
│ AdeptXBBS is copyright (c) 1996 by AdeptSoft & Mark Kimes │
'
say 'C
│ All rights reserved │
'
say 'C
└───────────────────────────────────────────────────────────────────┘
'
say ''
say ''
rc = stream('adeptins.dat','c','query exists')
if rc = '' then
do
say 'Sorry, ADEPTINS.DAT not found. Must not be right directory. Terminating.'
exit
end
rc = stream('adeptful.dat','c','query exists')
if rc = '' then
do
say 'Sorry, ADEPTFUL.DAT not found. Must not be right directory. Terminating.'
exit
end
curdir = directory()
do
say ''
say 'Please enter the drive letter to install AdeptXBBS (Ex. C:)'
say 'You MUST enter the full drive letter, C: <- Notice the colon'
say '--'
parse upper pull dummy
ADDRESS CMD dummy
ADDRESS CMD "CD\"
ADDRESS CMD "MD ADEPT 2>NUL"
ADDRESS CMD "CD ADEPT"
olddir = curdir
curdir = dummy'\ADEPT'
say ''
say 'Current sub-directory: 'curdir
say ''
say 'Install AdeptXBBS into the current'
dum = charout(, 'sub-directory? [Y/n] ')
parse upper pull dummy
if left(dummy,1) = 'N' then exit
say ''
end
say ''
say 'Installing AdeptXBBS, copying files.. Please wait...'
InsCmd = copy olddir'\*>NUL'
if olddir \= curdir then
do
ADDRESS CMD InsCmd
end
say ''
say '1. Install a Full Copy of AdeptXBBS'
say '2. Upgrade a previous version of AdeptXBBS'
say ''
say '3. Quit'
parse upper pull dummy
if left(dummy,1) = '3' then exit
say ''
say 'Unpacking files, this may take a bit...'
if left(dummy,1) = '1' then
do
InsCmd = 'AdeptFul.dat /o >NUL'
ADDRESS CMD InsCmd
InsCmd = 'AdpLang.dat /o >NUL'
ADDRESS CMD InsCmd
InsCmd = 'AdpMenus.dat /o >NUL'
ADDRESS CMD InsCmd
end
InsCmd = 'AdeptIns.dat /o >NUL'
ADDRESS CMD InsCmd
InsCmd = 'AdeptDLL.dat /o >NUL'
ADDRESS CMD InsCmd
if left(dummy,1) \= 1 then do
say ''
say 'If your LANGUAGE.TEXT is customized you may not want to overwrite'
say 'it.'
say ''
dum = Charout(, 'Is it OK to Overwrite your Language.Text? [Y/n] ')
parse upper pull adummy
if left(adummy,1) \= 'N' then do
say ''
say 'Overwriting your Language.Text file...'
InsCmd = 'AdpLang.dat /o >NUL'
ADDRESS CMD InsCmd
end
end
if left(dummy,1) \= 1 then do
say ''
say 'Would you like to replace your current menus with the latest menus'
say 'included with this version?'
say ''
dum = Charout(, 'Would you like your menus replaced? [Y/n] ')
parse upper pull adummy
if left(adummy,1) \= 'N' then do
say ''
say 'Replacing menu files...'
InsCmd = 'AdpMenus.dat /o >NUL'
ADDRESS CMD InsCmd
end
end
rc = stream('System\Language.Text.Index','c','query exists')
if rc \= '' then
do
ADDRESS CMD 'DEL System\Language.Text.Index'
end
rc = stream('System\Language.Text.Compiled','c','query exists')
if rc \= '' then
do
ADDRESS CMD 'DEL System\Language.Text.Compiled'
end
/* load rexx utility functions */
rc = stream('adept.exe','c','query exists')
if rc = '' then
do
say 'Sorry, ADEPT.EXE not found. Must not be right directory. Terminating.'
exit
end
say ''
say 'If you see any SYS### errors from this point on, please ignore them'
say ''
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
/* say it, then do it */
say "Creating AdeptSoft folder..."
/* first, create AdeptSoft folder */
title = "AdeptSoft"
classname = 'WPFolder'
location = '<WP_DESKTOP>'
setup = 'OBJECTID=<AdeptSoft_Folder>;OPEN=DEFAULT'
result=SysCreateObject(classname,title,location,setup,f)
/* If folder exists, ask before updating */
if result = 0 then
do
existed = 'TRUE'
say ''
say 'The AdeptXBBS folder already exists.'
dum = Charout(, 'Do you really want to create a duplicate? [Y/n] ')
parse upper pull dummy
if left(dummy,1) = 'N' then
do
rc = stream('adept.exe','c','query exists')
if rc = '' then
do
say 'Sorry, ADEPT.EXE not found. Unarchive does not appear to have '
say 'been successful.'
exit
end
do
say ''
say 'Install appears to have been sucessful!'
say ''
end
do
say ''
say 'NOTE: This setup defaults to starting in 'DEMO' mode, enless you are'
say ' upgrading, and have already registered the program. If you are'
say ' a registered sysop and your key has been entered in the'
say ' Config->Register AdeptXBBS box, you will automatically startup'
say ' with the features you registered accessable to you. '
say ''
say ''
say ' If you are not a registered sysop this version of the software will'
say ' run in a timed 1 node evaluation mode. This version of the BBS'
say ' software will run under May 31st, 1996. If you are a registered'
say ' sysop the timer will not effect you.'
say ''
say ''
say ' If the BBS software beeps twice and then exists when you first try'
say ' to run it, read the file wontwork.txt. - thanks.'
say ''
say 'Would you like to setup your copy of'
dum = Charout(, 'AdeptXBBS? ')
parse upper pull dummy
if left(dummy,1) = 'Y' then
do
ADDRESS CMD 'Adept.exe /NODES 2 /SETUP'
end
say ''
end
say 'Thank you for choosing AdeptSoft!'
say ''
ADDRESS CMD "DEL ADPMENUS.DAT"
ADDRESS CMD "DEL ADPLANG.DAT"
ADDRESS CMD "DEL ADEPTINS.DAT"
ADDRESS CMD "DEL ADEPTFUL.DAT"
ADDRESS CMD "DEL ADEPTDLL.DAT"
exit
end
say ''
end
say "Creating objects in AdeptSoft folder..."
/* now, create program objects in AdeptSoft folder */
title = "AdeptXBBS 1 Node"
classname = 'WPProgram'
location = '<AdeptSoft_Folder>'
setup = 'EXENAME='curdir'\ADEPT.EXE;STARTUPDIR='curdir';PARAMETERS=/NODES 1'
call SysCreateObject classname,title,location,setup,u
title = "AdeptXBBS 2 Nodes"
classname = 'WPProgram'
location = '<AdeptSoft_Folder>'
setup = 'EXENAME='curdir'\ADEPT.EXE;STARTUPDIR='curdir';PARAMETERS=/NODES 2'
call SysCreateObject classname,title,location,setup,u
title = "AdeptXBBS in Setup Mode"
classname = 'WPProgram'
location = '<AdeptSoft_Folder>'
setup = 'EXENAME='curdir'\ADEPT.EXE;STARTUPDIR='curdir';PARAMETERS=/NODES 2 /SETUP'
call SysCreateObject classname,title,location,setup,u
rc = stream('xsend.cmd','c','query exists')
if rc \= '' then
do
title = "Send files"
classname = 'WPProgram'
location = '<AdeptSoft_Folder>'
setup = 'EXENAME='curdir'\XSEND.CMD;STARTUPDIR='curdir
if existed = '' then setup = setup';PARAMETERS=%* 'curdir'\\'
call SysCreateObject classname,title,location,setup,u
end
rc = stream('fileedit.exe','c','query exists')
if rc \= '' then
do
title = "File area editor"
classname = 'WPProgram'
location = '<AdeptSoft_Folder>'
setup = 'EXENAME='curdir'\FILEEDIT.EXE;STARTUPDIR='curdir
call SysCreateObject classname,title,location,setup,u
end
rc = stream('mail.cmd','c','query exists')
if rc \= '' then
do
title = "Process mail"
classname = 'WPProgram'
location = '<AdeptSoft_Folder>'
setup = 'EXENAME='curdir'\mail.cmd;STARTUPDIR='curdir
call SysCreateObject classname,title,location,setup,u
end
rc = stream('reindexfiles.exe','c','query exists')
if rc \= '' then
do
title = "Reindex File Database"
classname = 'WPProgram'
location = '<AdeptSoft_Folder>'
setup = 'EXENAME='curdir'\ReIndexFiles.EXE;STARTUPDIR='curdir';PARAMETERS=/NUKE'
call SysCreateObject classname,title,location,setup,u
end
rc = stream('reindexusers.exe','c','query exists')
if rc \= '' then
do
title = "Reindex User File"
classname = 'WPProgram'
location = '<AdeptSoft_Folder>'
setup = 'EXENAME='curdir'\ReIndexUsers.Exe;STARTUPDIR='curdir
call SysCreateObject classname,title,location,setup,u
end
rc = stream('bfsmake.exe','c','query exists')
if rc \= '' then
do
title = "Convert file areas"
classname = 'WPProgram'
location = '<AdeptSoft_Folder>'
setup = 'EXENAME='curdir'\BFSMAKE.EXE;STARTUPDIR='curdir
call SysCreateObject classname,title,location,setup,u
end
rc = stream('xmsg.cmd','c','query exists')
if rc \= '' then
do
title = "Clean up msg areas"
classname = 'WPProgram'
location = '<AdeptSoft_Folder>'
setup = 'EXENAME='curdir'\CLEAN.EXE;STARTUPDIR='curdir
call SysCreateObject classname,title,location,setup,u
end
rc = stream('README.NOW','c','query exists')
if rc \= '' then
do
title = "Must Read!"
classname = 'WPShadow'
location = '<AdeptSoft_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = stream('AdpXBBS.DOC','c','query exists')
if rc \= '' then
do
title = "AdeptXBBS Documentation!"
classname = 'WPShadow'
location = '<AdeptSoft_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = stream('GATEKPR.DOC','c','query exists')
if rc \= '' then
do
title = "Gate Keeper Documentation!"
classname = 'WPShadow'
location = '<AdeptSoft_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = stream('AdpRexx.DOC','c','query exists')
if rc \= '' then
do
title = "AdeptREXX Documentation!"
classname = 'WPShadow'
location = '<AdeptSoft_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = stream('UserMod.Doc','c','query exists')
if rc \= '' then
do
title = "Batch User Modifier"
classname = 'WPShadow'
location = '<AdeptSoft_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = stream('REGISTER.TXT','c','query exists')
if rc \= '' then
do
title = "How to Register"
classname = 'WPShadow'
location = '<AdeptSoft_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = stream('WONTWORK.TXT','c','query exists')
if rc \= '' then
do
title = "Possible fix to a bug"
classname = 'WPShadow'
location = '<AdeptSoft_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = stream('FAQ12-95.TXT','c','query exists')
if rc \= '' then
do
title = "AdeptXBBS Frequently Asked Questions"
classname = 'WPShadow'
location = '<AdeptSoft_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = stream('BUGFORM.TXT','c','query exists')
if rc \= '' then
do
title = "AdeptXBBS Bug Report Form"
classname = 'WPShadow'
location = '<AdeptSoft_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = directory('Menus')
if rc \= '' then
do
call directory curdir
title = "BBS Menus"
classname = 'WPShadow'
location = '<AdeptSoft_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = directory('Text')
if rc \= '' then
do
call directory curdir
title = "BBS Text"
classname = 'WPShadow'
location = '<AdeptXBBS_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = directory('System\SysNews')
if rc \= '' then
do
call directory curdir
title = "BBS System News"
classname = 'WPShadow'
location = '<AdeptSoft_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = directory('System\MiscNews')
if rc \= '' then
do
call directory curdir
title = "BBS Misc. News"
classname = 'WPShadow'
location = '<AdeptSoft_Folder>'
setup = 'SHADOWID='rc
call SysCreateObject classname,title,location,setup,u
end
rc = stream('Adept.HLP','c','query exists')
if rc \= '' then
do
rc = stream('SEEHELP.EXE','c','query exists')
if rc \= '' then
do
title = "AdeptXBBS Online Help"
classname = 'WPProgram'
location = '<AdeptSoft_Folder>'
setup = 'EXENAME='curdir'\SEEHELP.EXE;'
setup = setup'STARTDIR='curdir';PARAMETERS='curdir'\ADEPT.HLP'
call SysCreateObject classname,title,location,setup,f
end
end
rc = stream('adept.exe','c','query exists')
if rc = '' then
do
say 'Sorry, ADEPT.EXE not found. Unarchive does not appear to have '
say 'been successful.'
exit
end
do
say ''
say 'Install appears to have been sucessful!'
say ''
end
do
say ''
say 'NOTE: This setup defaults to starting 2 nodes. Both nodes will be'
say ' started in "'"SETUP"'" mode. This is to be sure that it will'
say ' not interupt anything else that is running.'
say ''
say ' You can setup the BBSs options from the Config pull down on'
say ' the main screen.'
say ''
say ' Be sure to click on Shutdown in order to make sure your settings'
say ' are properly saved.'
say ''
say ' If the BBS software beeps twice and then exists when you first try'
say ' to run it, read the file wontwork.txt - thanks.'
say ''
say 'Would you like to setup your copy of'
dum = Charout(, 'AdeptXBBS? [y/N] ')
parse upper pull dummy
if left(dummy,1) = 'Y' then
do
ADDRESS CMD 'Adept.exe /NODES 2 /SETUP'
end
ADDRESS CMD "DEL ADPMENUS.DAT"
ADDRESS CMD "DEL ADPLANG.DAT"
ADDRESS CMD "DEL ADEPTINS.DAT"
ADDRESS CMD "DEL ADEPTFUL.DAT"
ADDRESS CMD "DEL ADEPTDLL.DAT"
say ''
end
say 'Thank you for choosing AdeptSoft!'
/* END Install Program */