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.

54 lines
1.6 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. REM set SrcDir="\\pchealth\public\rc\proto"
  13. set 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%\newrctool\*.htm %ExpertChannelDir%
  22. copy %SrcDir%\newrctool\*.gif %ExpertChannelDir%
  23. copy %SrcDir%\newrctool\*.js %ExpertChannelDir%
  24. copy %SrcDir%\rctool\*.reg %ExpertChannelDir%
  25. rem copy %SrcDir%\filexfer\UI\*.htm %ExpertChannelDir%
  26. rem
  27. rem Register .msrcincident filetype
  28. rem ToDo: This should be done at setup time by pchealth.inf
  29. rem
  30. pushd %temp%
  31. set RegFile="MSRCIncident.reg"
  32. echo Windows Registry Editor Version 5.00 > %RegFile%
  33. echo [HKEY_CLASSES_ROOT\.MsRcIncident] >> %RegFile%
  34. echo @="MsRcIncident" >> %RegFile%
  35. echo [HKEY_CLASSES_ROOT\MsRcIncident]>> %RegFile%
  36. echo @="Microsoft Remote Control Incident" >> %RegFile%
  37. echo [HKEY_CLASSES_ROOT\MsRcIncident\shell]>> %RegFile%
  38. echo [HKEY_CLASSES_ROOT\MsRcIncident\shell\open]>> %RegFile%
  39. echo [HKEY_CLASSES_ROOT\MsRcIncident\shell\open\command]>> %RegFile%
  40. echo @="%SystemDrive%\\Windows\\PCHealth\\HelpCtr\\Binaries\\HelpCtr.exe -url hcp://CN=Microsoft%%%%20Corporation,L=Redmond,S=Washington,C=US/rcExpert/rctoolScreen1.htm?IncidentFile=%%1" >> %RegFile%
  41. regedit MSRCIncident.reg
  42. popd