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.

72 lines
1.6 KiB

  1. @echo off
  2. set server=indiadev
  3. set wbem=%systemroot%\system32\wbem\
  4. set dest=%systemroot%\system32\wbem\EElView
  5. if not exist %dest% mkdir %dest%
  6. rem if exist %wbem%\eelviewer (rd /s /q %wbem%\eelviewer)
  7. if exist %dest% (goto uninst) else (goto inst)
  8. :uninst
  9. echo Uninstalling .....
  10. echo Unregistering Dlls.....
  11. regsvr32 /u /s %dest%\eelview.dll
  12. regsvr32 /u /s %dest%\kalpaxml.dll
  13. for %%i in ( %dest% %dest%\css %dest%\images %dest%\help) do attrib -r %%i\*
  14. if NOT ERRORLEVEL == 0 goto err
  15. del /f /q %dest%\*.*
  16. del /f /q %dest%\css\*.*
  17. del /f /q %dest%\images\*.*
  18. del /f /q %dest%\help\*.*
  19. echo Uninstallation completed
  20. goto inst
  21. :inst
  22. echo Installing....
  23. set dropsrc=%cd%
  24. if "%1"=="ia64" (goto ia64) else (goto i386)
  25. :ia64
  26. if "%2"=="debug" (goto ia64ch) else (goto ia64fr)
  27. :i386
  28. if "%1"=="debug" (goto i386ch) else (goto i386fr)
  29. :ia64ch
  30. set src=%dropsrc%\ia64\checked
  31. goto copyfiles
  32. :ia64fr
  33. set src=%dropsrc%\ia64\free
  34. goto copyfiles
  35. :i386ch
  36. set src=%dropsrc%\i386\checked
  37. goto copyfiles
  38. :i386fr
  39. set src=%dropsrc%\i386\free
  40. goto copyfiles
  41. :copyfiles
  42. echo copy files....
  43. echo %src%
  44. if not exist %dest% mkdir %dest%
  45. if NOT ERRORLEVEL == 0 goto err
  46. for %%i in ( %dest% %dest%\css %dest%\images %dest%\help) do attrib -r %%i\*
  47. xcopy %src% %dest% /sefc
  48. if NOT ERRORLEVEL == 0 goto end
  49. echo Registering Dlls....
  50. regsvr32 /s %dest%\eelview.dll
  51. regsvr32 /s %dest%\kalpaxml.dll
  52. set sys32=%systemroot%\system32\
  53. for %%i in ( %dest% %dest%\css %dest%\images %dest%\help) do attrib +r %%i\*
  54. echo Installation Completed
  55. goto end
  56. :err
  57. @echo on
  58. echo "Encountered error in the operation. Please copy the files manually"
  59. :end