home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 14 / AACD14.ISO / CDTools / S / InstallAutorun.awebrx < prev    next >
Text File  |  1999-12-01  |  820b  |  36 lines

  1. /*
  2.     $VER: InstallAutorun.awebrx 1.0 (24.11.99) (c) Neil Bothwick, Wirenet
  3.     Copies Autorun and its icon to SYS:WBStartup
  4. */
  5.  
  6. options results
  7. address command
  8. parse arg switch
  9.  
  10. if switch = 'REMOVE' then do
  11.     if ~exists('SYS:WBStartup/Autorun') then call ExitMsg('Autorun is not installed')
  12.     call delete('SYS:WBStartup/Autorun')
  13.     call delete('SYS:WBStartup/Autorun.info')
  14.     call ExitMsg('Autorun has been uninstalled')
  15.     end
  16.  
  17. else do
  18.     if exists('SYS:WBStartup/Autorun') then call ExitMsg('Autorun is already installed')
  19.     'copy AACD:CDtools/Autorun/Autorun#(.info) SYS:WBStartup clone quiet'
  20.     if RC > 0 then call ExitMsg('There was an error copying Autorun*Nto your WBStartup drawer')
  21.     else call ExitMsg('Autorun is now installed')
  22.     end
  23.  
  24. exit
  25.  
  26.  
  27. ExitMsg:
  28.     parse arg msg
  29.     'RequestChoice "Amiga Active CD" "'msg'" "OK"'
  30.     exit
  31.  
  32.  
  33.  
  34.  
  35.  
  36.