Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.1 KiB

  1. if [ $# != 1 ]
  2. then
  3. echo "Usage: sh lm.sh [install|remove|enable|disable]"
  4. exit 1
  5. fi
  6. dir=`dirname $0`
  7. function Unregister {
  8. if [ -f "$1" ]
  9. then
  10. echo " Unregistering $1"
  11. if regsvr32 /s /u `echo $1 | tr / \\\\`
  12. then
  13. else
  14. echo " Failed"
  15. exit 1
  16. fi
  17. fi
  18. }
  19. function Register {
  20. if [ -f "$1" ]
  21. then
  22. echo " Registering $1"
  23. if regsvr32 /s `echo $1 | tr / \\\\`
  24. then
  25. else
  26. echo " Failed"
  27. exit 1
  28. fi
  29. fi
  30. }
  31. if [ $1 == "enable" ]
  32. then
  33. echo "Enabling IFELang3"
  34. Register $dir/imlang.dll
  35. exit
  36. fi
  37. if [ $1 == "disable" ]
  38. then
  39. echo "Disabling IFELang3"
  40. Unregister $dir/imlang.dll
  41. exit
  42. fi
  43. if [ $1 == "install" ]
  44. then
  45. echo "Installing IFELang3"
  46. Register $dir/imlang.dll
  47. Register $dir/jpn/imjplm.dll
  48. Register $dir/chs/imchslm.dll
  49. exit
  50. fi
  51. if [ $1 == "remove" ]
  52. then
  53. echo "Removing IFELang3"
  54. echo "Unregistering new DLLs."
  55. Unregister $dir/imlang.dll
  56. Unregister $dir/jpn/imjplm.dll
  57. Unregister $dir/chs/imchslm.dll
  58. exit
  59. fi
  60. echo "Usage: sh lm.sh [install|remove|enable|disable"
  61. exit 1