home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 July / PCO_07_97.ISO / filesbbs / OS2 / MSE.ARJ / MSE.ZIP / install.cmd < prev    next >
Encoding:
Text File  |  1997-05-09  |  2.4 KB  |  77 lines

  1. /*
  2.  * MSE installation program
  3.  */
  4. '@Echo off'
  5. 'cls'
  6. /* tell the nice people who we are */
  7. say ''
  8. say ' ┌────────────────────────────────────────────────────────────────────────────┐'
  9. say ' │                                                                            │'
  10. say ' │             MSE Mouse and System Enhancer installation program             │'
  11. say ' ├────────────────────────────────────────────────────────────────────────────┤'
  12. say ' │                      MSE copyright (c) 1997 by M. Kimes                    │'
  13. say ' │                             all rights reserved                            │'
  14. say ' │                                                                            │'
  15. say ' └────────────────────────────────────────────────────────────────────────────┘'
  16. say ''
  17. /* get current directory */
  18. curdir = directory()
  19. /* see if we have what we need to run */
  20. rc = stream('msehook.dll','c','query exists')
  21. if rc = '' then
  22. do
  23.   say 'Sorry, MSEHOOK.DLL not found.  Must not be right directory.  Terminating.'
  24.   exit
  25. end
  26. rc = stream('mse.exe','c','query exists')
  27. if rc = '' then
  28. do
  29.   say 'Sorry, MSE.EXE not found.  Must not be right directory.  Terminating.'
  30.   exit
  31. end
  32. /* load system utility functions */
  33. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  34. call SysLoadFuncs
  35. /* ask where they want the program object */
  36. call charout ,"Create MSE object on [D]esktop, in [S]tartup folder, or [B]oth? [D/S/B] "
  37. /* get input */
  38. dummy = ''
  39. do forever
  40.   dummy = SysGetKey('NOECHO')
  41.   parse upper var dummy dummy
  42.   if dummy = 'D' then leave
  43.   if dummy = 'S' then leave
  44.   if dummy = 'B' then leave
  45. end
  46. /* got input; echo it */
  47. call charout ,dummy
  48. say ''
  49. /* now do it */
  50. if dummy = 'D' then
  51. do
  52.   location = '<WP_DESKTOP>'
  53.   id = '<MSE_DESKTOP>'
  54.   parm = '%'
  55. end
  56. if dummy \= 'D' then
  57. do
  58.   location = '<WP_START>'
  59.   id = '<MSE_START>'
  60.   parm = '/h %'
  61. end
  62. title = 'MSE'
  63. classname = 'WPProgram'
  64. setup = 'OBJECTID='id';EXENAME='curdir'\MSE.EXE;STARTUPDIR='curdir';PARAMETERS='parm
  65. rc = SysCreateObject(classname,title,location,setup,u)
  66. if dummy = 'B' then
  67. do
  68.   location = '<WP_DESKTOP>'
  69.   id = '<MSE_DESKTOP>'
  70.   setup = 'OBJECTID='id';EXENAME='curdir'\MSE.EXE;STARTUPDIR='curdir';PARAMETERS=%'
  71.   rc = SysCreateObject(classname,title,location,setup,u)
  72. end
  73. /* tell the nice people that we're done, run it, terminate. */
  74. say 'MSE installation is complete.'
  75. 'start mse.exe'
  76. exit
  77.