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.

154 lines
6.8 KiB

  1. @echo off
  2. rem
  3. rem SetupBuddy.cmd: This script creates the Remote control Buddy channel
  4. rem under help center
  5. rem History:
  6. rem Rajesh Soy (nsoy) - created, 06/28/2000
  7. rem
  8. rem
  9. rem Set the Expert Channel Directory
  10. rem
  11. rem SrcDir="\\nsoydev3\nt\admin\pchealth\helpctr\rc"
  12. set SrcDir="%SDXROOT%\admin\pchealth\helpctr\rc"
  13. set RADir="%SystemRoot%\PCHealth\helpctr\vendors\CN=Microsoft Corporation,L=Redmond,S=Washington,C=US\Remote Assistance"
  14. set IntDir="%SystemRoot%\PCHealth\helpctr\system\Remote Assistance"
  15. set SysDir="%SystemRoot%\PCHealth\helpctr\system"
  16. rem
  17. rem Create the Buddy Channel Directory
  18. rem
  19. mkdir %RADir%
  20. mkdir %RADir%\Escalation
  21. mkdir %RADir%\Escalation\Common
  22. mkdir %RADir%\Escalation\Email
  23. mkdir %RADir%\Escalation\IM
  24. mkdir %RADir%\Escalation\Unsolicited
  25. mkdir %RADir%\Css
  26. mkdir %RADir%\Common
  27. if /i "%PROCESSOR_ARCHITECTURE%" == "x86" goto copyx86
  28. set ARCH=ia64
  29. goto CopyFiles
  30. :copyx86
  31. set ARCH=i386
  32. :CopyFiles
  33. rem
  34. rem Copy the basic Files
  35. rem
  36. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RAStartPage.htm %IntDir%
  37. copy %SrcDir%\Content\Escalation\ding.wav %IntDir%
  38. copy %SrcDir%\Content\Escalation\obj\%ARCH%\helpeeaccept.htm %IntDir%
  39. copy %SrcDir%\Content\Escalation\obj\%ARCH%\rcstatus.htm %RADir%
  40. copy %SrcDir%\Content\Escalation\obj\%ARCH%\confirm.htm %RADir%
  41. rem
  42. rem Common Files
  43. rem
  44. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCScreen1.htm %RADir%\Escalation\Common
  45. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCScreen2.htm %RADir%\Escalation\Common
  46. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCScreen3.htm %RADir%\Escalation\Common
  47. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCConnection.htm %RADir%\Escalation\Common
  48. copy %SrcDir%\Content\Escalation\Remote_Assistance_Graphic.png %RADir%\Escalation\Common
  49. copy %SrcDir%\Content\Escalation\monitor_left.gif %RADir%\Escalation\Common
  50. copy %SrcDir%\Content\Escalation\monitor_right.gif %RADir%\Escalation\Common
  51. copy %SrcDir%\Content\Escalation\Envelope.gif %RADir%\Escalation\Common
  52. copy %SrcDir%\Content\Escalation\IM_icon.gif %RADir%\Escalation\Common
  53. copy %SrcDir%\Content\Escalation\floppy.gif %RADir%\Escalation\Common
  54. copy %SrcDir%\Content\Escalation\icon_extweb.gif %RADir%\Escalation\Common
  55. copy %SrcDir%\Content\Escalation\address_book.gif %RADir%\Escalation\Common
  56. copy %SrcDir%\Content\Escalation\attention.gif %RADir%\Escalation\Common
  57. copy %SrcDir%\Content\Escalation\arrow.gif %RADir%\Escalation\Common
  58. copy %SrcDir%\Content\Escalation\dis_arrow.bmp %RADir%\Escalation\Common
  59. copy %SrcDir%\Content\Escalation\green_rest_16x.bmp %RADir%\Escalation\Common
  60. copy %SrcDir%\Content\Escalation\blue_rest_16x.bmp %RADir%\Escalation\Common
  61. copy %SrcDir%\Content\Escalation\check.bmp %RADir%\Escalation\Common
  62. copy %SrcDir%\Content\Escalation\buddy.gif %RADir%\Escalation\Common
  63. copy %SrcDir%\Content\Escalation\logon_anim.gif %RADir%\Escalation\Common
  64. copy %SrcDir%\Content\Escalation\buddy_attention.gif %RADir%\Escalation\Common
  65. copy %SrcDir%\Content\Escalation\buddy_away.gif %RADir%\Escalation\Common
  66. copy %SrcDir%\Content\Escalation\buddy_busy.gif %RADir%\Escalation\Common
  67. copy %SrcDir%\Content\Escalation\buddy_none.gif %RADir%\Escalation\Common
  68. copy %SrcDir%\Content\Escalation\buddy_offline.gif %RADir%\Escalation\Common
  69. copy %SrcDir%\Content\Escalation\generic_mail.gif %RADir%\Escalation\Common
  70. copy %SrcDir%\Content\Escalation\info.gif %RADir%\Escalation\Common
  71. copy %SrcDir%\Content\Escalation\messenger_big.gif %RADir%\Escalation\Common
  72. copy %SrcDir%\Content\Escalation\outlook.gif %RADir%\Escalation\Common
  73. copy %SrcDir%\Content\Escalation\outlook_express.gif %RADir%\Escalation\Common
  74. copy %SrcDir%\Content\Escalation\Square_bullet.gif %RADir%\Escalation\Common
  75. copy %SrcDir%\Content\Escalation\Squarebullet.gif %RADir%\Escalation\Common
  76. copy %SrcDir%\Content\Escalation\icon_information_32x.gif %RADir%\Common
  77. copy %SrcDir%\Content\Escalation\icon_warning_32x.gif %RADir%\Common
  78. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RAHelp.htm %RADir%\Common
  79. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCMoreInfo.htm %RADir%\Common
  80. copy %SrcDir%\Content\Escalation\obj\%ARCH%\connissue.htm %RADir%\Common
  81. copy %SrcDir%\Content\Escalation\obj\%ARCH%\LearnInternet.htm %RADir%\Common
  82. copy %SrcDir%\Content\Escalation\obj\%ARCH%\secissue.htm %RADir%\Common
  83. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RAHelp.htm %IntDir%\Common
  84. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCMoreInfo.htm %IntDir%\Common
  85. rem
  86. rem E-mail escalation
  87. rem
  88. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCScreen4.htm %RADir%\Escalation\Email
  89. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCScreen5.htm %RADir%\Escalation\Email
  90. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCScreen6.htm %RADir%\Escalation\Email
  91. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCScreen6_head.htm %RADir%\Escalation\Email
  92. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCInviteStatus.htm %RADir%\Escalation\Email
  93. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCScreen7.htm %RADir%\Escalation\Email
  94. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCScreen8.htm %RADir%\Escalation\Email
  95. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCScreen9.htm %RADir%\Escalation\Email
  96. copy %SrcDir%\Content\Escalation\obj\%ARCH%\RCDetails.htm %RADir%\Escalation\Email
  97. copy %SrcDir%\Content\Escalation\obj\%ARCH%\Reminder.htm %RADir%\Escalation\Email
  98. copy %SrcDir%\Content\Escalation\floppy.gif %RADir%\Escalation\Email
  99. copy %SrcDir%\Content\Escalation\check.gif %RADir%\Escalation\Email
  100. copy %SrcDir%\Content\Escalation\help.gif %RADir%\Escalation\Email
  101. copy %SrcDir%\Content\Escalation\rcscreenshot3.gif %RADir%\Escalation\Email
  102. rem
  103. rem IM escalation
  104. rem
  105. copy %SrcDir%\Content\Escalation\obj\%ARCH%\rcIM.htm %RADir%\Escalation\IM
  106. rem
  107. rem Unsolicited escalation
  108. rem
  109. copy %SrcDir%\Content\Interaction\obj\%ARCH%\unsolicitedrcui.htm %RADir%\Escalation\Unsolicited
  110. rem
  111. rem Style sheets
  112. rem
  113. copy %SrcDir%\Content\Escalation\rcbuddy.css %RADir%\Css
  114. copy %SrcDir%\Content\Escalation\rcbuddy.css %IntDir%\Css
  115. goto Exit_Script
  116. rem
  117. rem Copy Binaries
  118. rem
  119. net stop "Remote Desktop Help Session Manager"
  120. %windir%\system32\regsvr32 /s /u %windir%\system32\rcbdyctl.dll
  121. %windir%\system32\regsvr32 /s /u %windir%\system32\safrcdlg.dll
  122. copy %SDXROOT%\admin\pchealth\helpctr\target\obj\%ARCH%\rcbdyctl.dll %windir%\system32
  123. copy %SDXROOT%\admin\pchealth\helpctr\target\obj\%ARCH%\safrcdlg.dll %windir%\system32
  124. copy %SDXROOT%\admin\pchealth\helpctr\rc\sessres\obj\%ARCH%\safrslv.dll %windir%\system32
  125. copy %SDXROOT%\admin\pchealth\helpctr\target\obj\%ARCH%\safrdm.dll %windir%\system32
  126. %windir%\system32\regsvr32 /s %windir%\system32\rcbdyctl.dll
  127. %windir%\system32\regsvr32 /s %windir%\system32\safrcdlg.dll
  128. net start "Remote Desktop Help Session Manager"
  129. :Exit_Script