home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / System / EASys / InstallPack_47 / Remove_EASys! < prev    next >
Text File  |  2000-07-08  |  2KB  |  67 lines

  1. failat 30
  2. stack 20000
  3.  
  4. ; 000625 T.Neidhardt, ft112@fen.baynet.de, EasySystem
  5. ; AmigaShell script
  6. ; removes quick a misinstalled EASys! from harddisk.
  7. ; Call by shell: execute remove_EASys!.script
  8.  
  9. if exists SYS:EASys!/SysDatabase
  10.  echo "*ec*n*n*e[1m Removing*e[0m EASys! from SYS: (10 secs from now) ...*n"
  11.  wait 10
  12.  SYS:EASys!/bin/cliexchange MultiNotify KILL
  13.  SYS:EASys!/bin/cliexchange ToolManager KILL
  14.  
  15.  assign >NIL: EASys!_bin: exists
  16.  if not warn
  17.   path EASys!_bin: REMOVE
  18.   path SYS:EASys!/bin REMOVE
  19.   path EASys!:bin REMOVE
  20.   assign EASys!_bin: C: REMOVE
  21.   assign EASys!_bin: EASys!:bin REMOVE
  22.   assign EASys!_bin: SYS:EASys!/bin REMOVE
  23.   assign EASys!_bin: T:
  24.   assign EASys!: T:
  25.   assign EASys!_rexx: T:
  26.  endif
  27.  
  28.  wait 4
  29.  echo "*ec*n*n Removing current EASys! system (will take about 1 Minute)...*n"
  30.  delete SYS:EASys! FORCE ALL QUIET
  31. endif
  32.  
  33. if exists SYS:StartSys
  34.   echo "*ec*n*n Reconstructing startup*n"
  35.  
  36.   if exists SYS:StartSys
  37.    path SYS:StartSys REMOVE
  38.    path SYS:StartSys/bin REMOVE
  39.   endif
  40.  
  41.   assign >NIL: Profile: exists
  42.   if not warn
  43.    assign Profile: REMOVE
  44.   endif
  45.  
  46.   if exists SYS:StartSys/StartupStandard
  47.    execute SYS:StartSys/StartupStandard
  48.   else
  49.    if exists s:startup-sequence.before_modas
  50.     protect s:startup-sequence +wd
  51.     copy s:startup-sequence.before_modas s:startup-sequence CLONE QUIET
  52.    endif
  53.    if exists s:user-startup.before_modas
  54.     protect s:user-startup +wd
  55.     copy s:user-startup.before_modas s:user-startup CLONE QUIET
  56.    endif
  57.   endif
  58.  
  59.   delete SYS:StartSys#? FORCE ALL QUIET 
  60.   delete SYS:ShutDown#? FORCE ALL QUIET
  61.  endif
  62. endif
  63.  
  64. echo "*n*n Deinstallation done. Please reboot or reinstall."
  65. wait 5
  66.  
  67.