home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: OtherApp
/
OtherApp.zip
/
ellie03.zip
/
DeReg.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-07-06
|
3KB
|
90 lines
/* ╔═════════════════╤══════════════════════════════════════════════════════════╗
║ File last saved │19 Jun 1999 at 09:31:39 [] ║
╟─────────────────┼──────────────────────────────────────────────────────────╢
║ Filename │DeReg.cmd ║
║ Created │19 Jun 1999 at 07:57:27 ║
║ Comment │Deregisters Ellie from a System ║
║ │ ║
╚═════════════════╧══════════════════════════════════════════════════════════╝
*/
if LoadRexxUtil() then exit 88
currver = SysIni(, 'AiG', 'Ellie_Ver')
if currver = 'ERROR:' then do
say ' Notice!:Ellie is not registered on this system..'
currver = '(No Version)'
end
say ' ─────────────────────────────────────────────────────────────────────'
say ' ** Deregister Ellie' currver 'from this system **'
say
say ' This program removes references to Ellie in OS2.INI and destroys'
say ' the Ellie folder (and anything contained within it!!!!)' '07'x
say ' ─────────────────────────────────────────────────────────────────────'
say ' Are you sure you want to continue..?' '07'x
call charout, ' Type YES to continue >___' || copies('08'x,3)
pull ky
select
when translate(ky) = 'YES' then
call Process
otherwise
say ' Aborted!'
end
say ' Program finished.'
EXIT
Process:
EllieObj.0 = 3
EllieObj.1 = '<AIG_ELLIE>' ; EllieObjd.1 = ' Ellie program object'
EllieObj.2 = '<AIG_ELLIE_SETIEXE>' ; EllieObjd.2 = ' Ellie SETI client object'
EllieObj.3 = '<AIG_ELLIE_FLDR>' ; EllieObjd.3 = ' Ellie folder object'
do i = 1 to EllieObj.0
if SysDestroyObject(EllieObj.i) = 1 then
say left(EllieObjd.i, 30) ':' EllieObj.i 'destroyed..'
else
say left(EllieObjd.i, 30) ':' EllieObj.i 'has NOT been destroyed!!'
call SysSleep 1
end
say ' ' EllieObj.0 'objects processed.'
say ' Removing OS2.INI references...'
app = 'AiG'
ky1 = 'Ellie_Home'
ky2 = 'Ellie_Ver'
if SysIni(, app, ky1, 'DELETE:') <> 'ERROR:' then
say ' Ellie_Home removed.'
else
say ' Unable to remove Ellie_Home key from OS2.INI!' '07'x
if SysIni(, app, ky2, 'DELETE:') <> 'ERROR:' then
say ' Ellie_Ver removed.'
else
say ' Unable to remove Ellie_Ver key from OS2.INI!' '07'x
say
say ' To remove this program entirely from your system, delete all files'
say ' in the Ellie directory.'
return
LoadRexxUtil: procedure
if rxFuncQuery('SysLoadFuncs') then do
if rxFuncAdd('SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs') then do
say 'Installation Error! Unable to load RexxUtil library.' '07'x
say 'Please check that you have Rexx installed on your system.' '07'x
return 1; end
call SysLoadFuncs
end
return 0