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.

163 lines
8.8 KiB

  1. @echo off
  2. if "%2"=="DEL" goto delete
  3. if not "%1"=="" goto exec
  4. setup %1 %2 %3
  5. REM NEVER RETURN
  6. :delete
  7. if exist %1\$$$$.tmp del %1\$$$$.tmp > NUL
  8. if exist %1\_setup.reg del %1\_setup.reg > NUL
  9. goto exit
  10. :exec
  11. echo REGEDIT4>%1\$$$$.tmp
  12. rem *** WIN32CST.DLL ***
  13. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.1\Parsers\Parser 3\Sub-Parsers\Sub-Parser 11]>>%1\$$$$.tmp
  14. echo "Description"="Win32Sub(Cust)">>%1\$$$$.tmp
  15. echo "Location"="%1\win32cst.dll">>%1\$$$$.tmp
  16. echo "ExtensionList"="">>%1\$$$$.tmp
  17. REM !!!
  18. echo "ParserID"=dword:0000000B>>%1\$$$$.tmp
  19. echo "Help"="Win32Sub(Cust)">>%1\$$$$.tmp
  20. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.2\Parsers\Parser 3\Sub-Parsers\Sub-Parser 11]>>%1\$$$$.tmp
  21. echo "Description"="Win32Sub(Cust)">>%1\$$$$.tmp
  22. echo "Location"="%1\win32cst.dll">>%1\$$$$.tmp
  23. echo "ExtensionList"="">>%1\$$$$.tmp
  24. REM !!!
  25. echo "ParserID"=dword:0000000B>>%1\$$$$.tmp
  26. echo "Help"="Win32Sub(Cust)">>%1\$$$$.tmp
  27. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.50\Parsers\Parser 3\Sub-Parsers\Sub-Parser 11]>>%1\$$$$.tmp
  28. echo "Description"="Win32Sub(Cust)">>%1\$$$$.tmp
  29. echo "Location"="%1\win32cst.dll">>%1\$$$$.tmp
  30. echo "ExtensionList"="">>%1\$$$$.tmp
  31. REM !!!
  32. echo "ParserID"=dword:0000000B>>%1\$$$$.tmp
  33. echo "Help"="Win32Sub(Cust)">>%1\$$$$.tmp
  34. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.51\Parsers\Parser 3\Sub-Parsers\Sub-Parser 11]>>%1\$$$$.tmp
  35. echo "Description"="Win32Sub(Cust)">>%1\$$$$.tmp
  36. echo "Location"="%1\win32cst.dll">>%1\$$$$.tmp
  37. echo "ExtensionList"="">>%1\$$$$.tmp
  38. REM !!!
  39. echo "ParserID"=dword:0000000B>>%1\$$$$.tmp
  40. echo "Help"="Win32Sub(Cust)">>%1\$$$$.tmp
  41. rem *** CUSTBIN.DLL ***
  42. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.1\Parsers\Parser 99]>>%1\$$$$.tmp
  43. echo "Description"="BIN: Custom Binary Parser">>%1\$$$$.tmp
  44. echo "Location"="%1\custbin.dll">>%1\$$$$.tmp
  45. echo "ExtensionList"="BIN ">>%1\$$$$.tmp
  46. REM !!!
  47. echo "ParserID"=dword:00000063>>%1\$$$$.tmp
  48. echo "Help"="Custom Binary(.bin) files">>%1\$$$$.tmp
  49. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.1\Parsers\Parser 99\File Types]>>%1\$$$$.tmp
  50. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.1\Parsers\Parser 99\File Types\File Type 1]>>%1\$$$$.tmp
  51. echo "Description"="Custom Binary (BIN) format.">>%1\$$$$.tmp
  52. echo "File Type"=dword:00000001>>%1\$$$$.tmp
  53. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.2\Parsers\Parser 99]>>%1\$$$$.tmp
  54. echo "Description"="BIN: Custom Binary Parser">>%1\$$$$.tmp
  55. echo "Location"="%1\custbin.dll">>%1\$$$$.tmp
  56. echo "ExtensionList"="BIN ">>%1\$$$$.tmp
  57. REM !!!
  58. echo "ParserID"=dword:00000063>>%1\$$$$.tmp
  59. echo "Help"="Custom Binary(.bin) files">>%1\$$$$.tmp
  60. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.2\Parsers\Parser 99\File Types]>>%1\$$$$.tmp
  61. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.2\Parsers\Parser 99\File Types\File Type 1]>>%1\$$$$.tmp
  62. echo "Description"="Custom Binary (BIN) format.">>%1\$$$$.tmp
  63. echo "File Type"=dword:00000001>>%1\$$$$.tmp
  64. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.50\Parsers\Parser 99]>>%1\$$$$.tmp
  65. echo "Description"="BIN: Custom Binary Parser">>%1\$$$$.tmp
  66. echo "Location"="%1\custbin.dll">>%1\$$$$.tmp
  67. echo "ExtensionList"="BIN ">>%1\$$$$.tmp
  68. REM !!!
  69. echo "ParserID"=dword:00000063>>%1\$$$$.tmp
  70. echo "Help"="Custom Binary(.bin) files">>%1\$$$$.tmp
  71. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.50\Parsers\Parser 99\File Types]>>%1\$$$$.tmp
  72. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.50\Parsers\Parser 99\File Types\File Type 1]>>%1\$$$$.tmp
  73. echo "Description"="Custom Binary (BIN) format.">>%1\$$$$.tmp
  74. echo "File Type"=dword:00000001>>%1\$$$$.tmp
  75. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.51\Parsers\Parser 99]>>%1\$$$$.tmp
  76. echo "Description"="BIN: Custom Binary Parser">>%1\$$$$.tmp
  77. echo "Location"="%1\custbin.dll">>%1\$$$$.tmp
  78. echo "ExtensionList"="BIN ">>%1\$$$$.tmp
  79. REM !!!
  80. echo "ParserID"=dword:00000063>>%1\$$$$.tmp
  81. echo "Help"="Custom Binary(.bin) files">>%1\$$$$.tmp
  82. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.51\Parsers\Parser 99\File Types]>>%1\$$$$.tmp
  83. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.51\Parsers\Parser 99\File Types\File Type 1]>>%1\$$$$.tmp
  84. echo "Description"="Custom Binary (BIN) format.">>%1\$$$$.tmp
  85. echo "File Type"=dword:00000001>>%1\$$$$.tmp
  86. rem *** BINDUMP.DLL ***
  87. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.1\Extensions\{FECFAED0-AB87-11d2-951C-00C04F7A8342}]>>%1\$$$$.tmp
  88. echo "Description"="Binary Dump">>%1\$$$$.tmp
  89. echo "Location"="%1\BINDUMP.DLL">>%1\$$$$.tmp
  90. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.1\Extensions\{FECFAED0-AB87-11d2-951C-00C04F7A8342}\{FECFAED2-AB87-11d2-951C-00C04F7A8342}]>>%1\$$$$.tmp
  91. echo "Menu Text"="Load Binary">>%1\$$$$.tmp
  92. echo "Interface ID"=hex:61,8b,5f,c3,4d,fe,d0,11,a5,a1,00,c0,4f,c2,c6,d8>>%1\$$$$.tmp
  93. echo "Interface ID(TEST)"=hex:D0,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  94. echo "Operation ID"=hex:D2,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  95. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.1\Extensions\{FECFAED0-AB87-11d2-951C-00C04F7A8342}\{FECFAED1-AB87-11d2-951C-00C04F7A8342}]>>%1\$$$$.tmp
  96. echo "Menu Text"="Dump Binary">>%1\$$$$.tmp
  97. echo "Interface ID"=hex:61,8b,5f,c3,4d,fe,d0,11,a5,a1,00,c0,4f,c2,c6,d8>>%1\$$$$.tmp
  98. echo "Interface ID(TEST)"=hex:D0,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  99. echo "Operation ID"=hex:D1,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  100. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.2\Extensions\{FECFAED0-AB87-11d2-951C-00C04F7A8342}]>>%1\$$$$.tmp
  101. echo "Description"="Binary Dump">>%1\$$$$.tmp
  102. echo "Location"="%1\BINDUMP.DLL">>%1\$$$$.tmp
  103. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.2\Extensions\{FECFAED0-AB87-11d2-951C-00C04F7A8342}\{FECFAED2-AB87-11d2-951C-00C04F7A8342}]>>%1\$$$$.tmp
  104. echo "Menu Text"="Load Binary">>%1\$$$$.tmp
  105. echo "Interface ID"=hex:61,8b,5f,c3,4d,fe,d0,11,a5,a1,00,c0,4f,c2,c6,d8>>%1\$$$$.tmp
  106. echo "Interface ID(TEST)"=hex:D0,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  107. echo "Operation ID"=hex:D2,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  108. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.2\Extensions\{FECFAED0-AB87-11d2-951C-00C04F7A8342}\{FECFAED1-AB87-11d2-951C-00C04F7A8342}]>>%1\$$$$.tmp
  109. echo "Menu Text"="Dump Binary">>%1\$$$$.tmp
  110. echo "Interface ID"=hex:61,8b,5f,c3,4d,fe,d0,11,a5,a1,00,c0,4f,c2,c6,d8>>%1\$$$$.tmp
  111. echo "Interface ID(TEST)"=hex:D0,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  112. echo "Operation ID"=hex:D1,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  113. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.50\Extensions\{FECFAED0-AB87-11d2-951C-00C04F7A8342}]>>%1\$$$$.tmp
  114. echo "Description"="Binary Dump">>%1\$$$$.tmp
  115. echo "Location"="%1\BINDUMP.DLL">>%1\$$$$.tmp
  116. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.50\Extensions\{FECFAED0-AB87-11d2-951C-00C04F7A8342}\{FECFAED2-AB87-11d2-951C-00C04F7A8342}]>>%1\$$$$.tmp
  117. echo "Menu Text"="Load Binary">>%1\$$$$.tmp
  118. echo "Interface ID"=hex:61,8b,5f,c3,4d,fe,d0,11,a5,a1,00,c0,4f,c2,c6,d8>>%1\$$$$.tmp
  119. echo "Interface ID(TEST)"=hex:D0,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  120. echo "Operation ID"=hex:D2,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  121. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.50\Extensions\{FECFAED0-AB87-11d2-951C-00C04F7A8342}\{FECFAED1-AB87-11d2-951C-00C04F7A8342}]>>%1\$$$$.tmp
  122. echo "Menu Text"="Dump Binary">>%1\$$$$.tmp
  123. echo "Interface ID"=hex:61,8b,5f,c3,4d,fe,d0,11,a5,a1,00,c0,4f,c2,c6,d8>>%1\$$$$.tmp
  124. echo "Interface ID(TEST)"=hex:D0,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  125. echo "Operation ID"=hex:D1,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  126. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.51\Extensions\{FECFAED0-AB87-11d2-951C-00C04F7A8342}]>>%1\$$$$.tmp
  127. echo "Description"="Binary Dump">>%1\$$$$.tmp
  128. echo "Location"="%1\BINDUMP.DLL">>%1\$$$$.tmp
  129. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.51\Extensions\{FECFAED0-AB87-11d2-951C-00C04F7A8342}\{FECFAED2-AB87-11d2-951C-00C04F7A8342}]>>%1\$$$$.tmp
  130. echo "Menu Text"="Load Binary">>%1\$$$$.tmp
  131. echo "Interface ID"=hex:61,8b,5f,c3,4d,fe,d0,11,a5,a1,00,c0,4f,c2,c6,d8>>%1\$$$$.tmp
  132. echo "Interface ID(TEST)"=hex:D0,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  133. echo "Operation ID"=hex:D2,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  134. echo [HKEY_LOCAL_MACHINE\Software\Microsoft\LocStudio 4.51\Extensions\{FECFAED0-AB87-11d2-951C-00C04F7A8342}\{FECFAED1-AB87-11d2-951C-00C04F7A8342}]>>%1\$$$$.tmp
  135. echo "Menu Text"="Dump Binary">>%1\$$$$.tmp
  136. echo "Interface ID"=hex:61,8b,5f,c3,4d,fe,d0,11,a5,a1,00,c0,4f,c2,c6,d8>>%1\$$$$.tmp
  137. echo "Interface ID(TEST)"=hex:D0,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  138. echo "Operation ID"=hex:D1,AE,CF,FE,87,AB,d2,11,95,1C,00,C0,4F,7A,83,42>>%1\$$$$.tmp
  139. jgawk -- '{if($0~\"Location\"){gsub(/\\/,\"\\\\\");}print}' < %1\$$$$.tmp > %1\_setup.reg
  140. :exit