Leaked source code of windows server 2003
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.

76 lines
2.0 KiB

  1. @echo off
  2. rem
  3. rem SetupExpert.cmd: This script creates the Remote control expert channel
  4. rem under help center
  5. rem History:
  6. rem Rajesh Soy (nsoy) - created, 06/21/2000
  7. rem
  8. rem
  9. rem Set the Expert Channel Directory
  10. rem
  11. set ExpertChannelDir="%SystemRoot%\PCHealth\helpctr\vendors\CN=Microsoft Corporation,L=Redmond,S=Washington,C=US\rcExpert"
  12. set SrcDir="\\steveshi02\nt$\admin\pchealth\helpctr\rc"
  13. rem SrcDir="%SDXROOT%\admin\pchealth\helpctr\rc"
  14. rem
  15. rem Create the Expert Channel Directory
  16. rem
  17. mkdir %ExpertChannelDir%
  18. rem
  19. rem Copy over the files for the expert channel
  20. rem
  21. copy %SrcDir%\rctool\UI_IM\*.htm %ExpertChannelDir%
  22. copy %SrcDir%\rctool\UI_IM\*.gif %ExpertChannelDir%
  23. copy %SrcDir%\rctool\UI_IM\*.js %ExpertChannelDir%
  24. rem
  25. rem Copy over the savedlg.dll to %SystemRoot%\system32
  26. rem and register it
  27. rem
  28. if /i "%PROCESSOR_ARCHITECTURE%" == "x86" goto copyx86
  29. set ARCH=ia64
  30. goto copybin
  31. :copyx86
  32. set ARCH=i386
  33. :copybin
  34. copy %SrcDir%\..\target\obj\%ARCH%\safrcdlg.dll %SystemRoot%\system32
  35. regsvr32 %SystemRoot%\system32\safrcdlg.dll
  36. goto Exit_Script
  37. copy %SrcDir%\rctool\*.reg %ExpertChannelDir%
  38. rem
  39. rem Register .msrcincident filetype
  40. rem ToDo: This should be done at setup time by pchealth.inf
  41. rem
  42. pushd %temp%
  43. set RegFile="MSRCIncident.reg"
  44. set HC=%systemdrive%\\windows\\PCHealth\\HelpCtr\\Binaries\\HelpCtr.exe
  45. echo Windows Registry Editor Version 5.00 > %RegFile%
  46. echo [HKEY_CLASSES_ROOT\.MsRcIncident] >> %RegFile%
  47. echo @="MsRcIncident" >> %RegFile%
  48. echo [HKEY_CLASSES_ROOT\MsRcIncident]>> %RegFile%
  49. echo @="Microsoft Remote Control Incident" >> %RegFile%
  50. echo [HKEY_CLASSES_ROOT\MsRcIncident\shell]>> %RegFile%
  51. echo [HKEY_CLASSES_ROOT\MsRcIncident\shell\open]>> %RegFile%
  52. echo [HKEY_CLASSES_ROOT\MsRcIncident\shell\open\command]>> %RegFile%
  53. echo @="%HC% -url hcp://CN=Microsoft%%%%20Corporation,L=Redmond,S=Washington,C=US/rcExpert/rctoolScreen1.htm?IncidentFile=%%1" >> %RegFile%
  54. regedit MSRCIncident.reg
  55. :Exit_Script
  56. popd