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.

1465 lines
97 KiB

  1. OPTION EXPLICIT
  2. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  3. '-----Windows Script Host script to generate components needed to run WSH, HTA, or
  4. '-----ADO (for Microsoft SQL Server connectivity) under Windows PE.
  5. '-----Copyright 2002, Microsoft Corporation
  6. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  7. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  8. '-----DIM & DEFINE VARIABLES, CREATE COM OBJECTS
  9. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  10. DIM strCmdArg, strCmdSwitch, arg, strCmdArray, CDDriveCollection, CDDrive, strOptionalSource, FSO, Folder, HDDColl
  11. DIM HDD, FirstHDD, strAppend, WSHShell, strDesktop, strOptionalDestination, strDestFolder, strSampleDir, strAsk, iAsk
  12. DIM FILE, strCMDExpand, strCMDMid, strJobTitle, strNeedCD, iAmPlatform, iArchDir, strPlatName, strFinalLocation
  13. DIM iAmQuiet,iHaveSource, iHaveDest, iWillBrowse, WshSysEnv, strOSVer, strWantToView, strFolderName, intOneMore
  14. DIM strCMDado, strCMDmsadc, strCMDOle_db, strIDir, strSysDir, makeADO, makeHTA, makeWSH, strComps, strSamples
  15. DIM strcpDirections, strADOcpDirections
  16. Const ForAppending = 8
  17. strJobTitle = "WinPE Optional Component Generation"
  18. SET WshShell = WScript.CreateObject("WScript.Shell")
  19. SET WshSysEnv = WshShell.Environment("SYSTEM")
  20. SET FSO = CreateObject("Scripting.FileSystemObject")
  21. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  22. '-----ERROR OUT IF NOT RUNNING ON Windows NT
  23. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  24. strOSVer = WshSysEnv("OS")
  25. IF strOSVer <> "Windows_NT" THEN
  26. MsgBox "This script must be run on Windows 2000 or a newer version of Microsoft Windows.", vbCritical, "Incorrect Windows Version."
  27. WScript.Quit
  28. END IF
  29. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  30. '-----OFFER/TAKE CMDLINE PARAMETERS AND INTERPRET THEM
  31. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  32. IF WScript.Arguments.Count <> 0 Then
  33. For each arg in WScript.Arguments
  34. strCmdArg = (arg)
  35. strCmdArray = Split(strCmdArg, ":", 2, 1)
  36. IF lcase(strCmdArray(0)) = "/s" or lcase(strCmdArray(0)) = "-s" or lcase(strCmdArray(0)) = "/source" or lcase(strCmdArray(0)) = "-source" THEN
  37. iHaveSource = 1
  38. strOptionalSource = TRIM(strCmdArray(1))
  39. END IF
  40. IF lcase(strCmdArray(0)) = "/d" or lcase(strCmdArray(0)) = "-d" or lcase(strCmdArray(0)) = "/destination" or lcase(strCmdArray(0)) = "-destination" THEN
  41. iHaveDest = 1
  42. strOptionalDestination = TRIM(strCmdArray(1))
  43. END IF
  44. IF lcase(strCmdArray(0)) = "/?" OR lcase(strCmdArray(0)) = "-?" THEN
  45. MsgBox "The following command-line arguments are accepted by this script:"&vbCRLF&vbCRLF&_
  46. """/S:filepath"" - alternate source location other than the CD-ROM drive."&vbCRLF&vbCRLF&"Examples:"&vbCRLF&vbCRLF&_
  47. " /S:C:\"&vbCRLF&_
  48. " -s:Z:\"&vbCRLF&_
  49. " or"&vbCRLF&_
  50. " -S:\\Myserver\Myshare"&vbCRLF&vbCRLF&_
  51. "/D - Destination. Opposite of S - specifies build destination. Otherwise files are placed on the desktop."&vbCRLF&vbCRLF&_
  52. "/ADO - Build ADO (ActiveX Database Objects) for Microsoft SQL Server connectivity"&vbCRLF&_
  53. "/HTA - Build HTA (HTML Applications)"&vbCRLF&_
  54. "/WSH - Build WSH (Windows Script Host)"&vbCRLF&_
  55. "Note that if you do not specify which components, "&_
  56. "or you do not run this script from the command-line, all optional "&_
  57. "components will be installed. If you include HTA, WSH is included"&_
  58. "automatically, and cannot be removed."&vbCRLF&vbCRLF&_
  59. "/64 - build for Itanium. Generates scripts for Windows on the Itanium Processor Family. Requires a copy of Windows XP 64-Bit Edition."&vbCRLF&vbCRLF&_
  60. "/Q - suppress dialogs. This will not confirm success, will notify on failure."&vbCRLF&vbCRLF&_
  61. "/E - explore completed files. Open Explorer to the copied files (can use with /Q).", vbInformation, "Command-line arguments"
  62. WScript.Quit
  63. END IF
  64. IF lcase(strCmdArray(0)) = "/64" OR lcase(strCmdArray(0)) = "-64" THEN
  65. iAmPlatform = "Itanium"
  66. END IF
  67. IF lcase(strCmdArray(0)) = "/q" OR lcase(strCmdArray(0)) = "-q" THEN
  68. iAmQuiet = 1
  69. END IF
  70. IF lcase(strCmdArray(0)) = "/e" OR lcase(strCmdArray(0)) = "-e" THEN
  71. iWillBrowse = 1
  72. END IF
  73. IF lcase(strCmdArray(0)) = "/ado" OR lcase(strCmdArray(0)) = "-ado" THEN
  74. makeADO = 1
  75. END IF
  76. IF lcase(strCmdArray(0)) = "/hta" OR lcase(strCmdArray(0)) = "-hta" THEN
  77. makeHTA = 1
  78. END IF
  79. IF lcase(strCmdArray(0)) = "/wsh" OR lcase(strCmdArray(0)) = "-wsh" THEN
  80. makeWSH = 1
  81. END IF
  82. IF makeHTA = 1 THEN
  83. makeWSH = 1
  84. END IF
  85. Next
  86. ELSE
  87. iHaveSource = 0
  88. END IF
  89. IF makeADO <> 1 AND makeHTA <> 1 AND makeWSH <> 1 THEN
  90. makeADO = 1
  91. makeHTA = 1
  92. makeWSH = 1
  93. END IF
  94. IF iAmQuiet <> 1 THEN
  95. iAmQuiet = 0
  96. END IF
  97. IF iAmPlatform <> "Itanium" THEN
  98. iArchDir = "I386"
  99. strPlatName = "Professional"
  100. ELSE
  101. iArchDir = "IA64"
  102. strPlatName = "64-Bit Edition"
  103. END IF
  104. IF Right(strOptionalDestination, 1) = "\" THEN
  105. strOptionalDestination = Left(strOptionalDestination, LEN(strOptionalDestination)-1)
  106. END IF
  107. IF Right(strOptionalSource, 1) = "\" THEN
  108. strOptionalSource = Left(strOptionalSource, LEN(strOptionalSource)-1)
  109. END IF
  110. IF strOptionalDestination = "" THEN
  111. iHaveDest = 0
  112. ELSEIF INSTR(UCASE(strOptionalDestination), "I386\") <> 0 OR INSTR(UCASE(strOptionalDestination), "IA64\") <> 0 OR INSTR(UCASE(strOptionalDestination), "SYSTEM32") <> 0 THEN
  113. MsgBox "The destination path needs to be the root of your newly created WinPE install - remove any extraneous path information, such as """&iArchDir&""" or ""System32""", vbCritical, "Destination Path Incorrect"
  114. WScript.Quit
  115. END IF
  116. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  117. '-----GENERATE COLLECTION OF CD-ROM DRIVES VIA WMI. PICK FIRST AVAILABLE
  118. '-----ERROR OUT IF NO DRIVES FOUND
  119. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  120. IF iHaveSource = 0 THEN
  121. SET CDDriveCollection = GetObject("winmgmts:").ExecQuery("SELECT * FROM Win32_CDROMDrive")
  122. IF CDDriveCollection.Count < 1 THEN
  123. MsgBox "No CD-ROM drives found, and no alternative location specified. Exiting Script.", vbCritical, "No CD-ROM drive found"
  124. WScript.Quit
  125. END IF
  126. FOR EACH CDDrive IN CDDriveCollection
  127. strOptionalSource = CDDrive.Drive(0)
  128. EXIT FOR
  129. NEXT
  130. END IF
  131. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  132. '-----PROMPT FOR WINDOWS CD - QUIT IF CANCELLED
  133. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  134. IF makeADO = 1 THEN
  135. strComps = " ADO (ActiveX Database Objects) for Microsoft SQL Server connectivity "&vbCrLF
  136. strSamples = " testADO.vbs (to test that ADO connectivity to SQL Server is functioning)"&vbCrLF
  137. END IF
  138. IF makeHTA = 1 THEN
  139. strComps = strComps&" HTA (HTML Applications)"&vbCrLF
  140. strSamples = strSamples&" testHTA.hta (to test that HTML Applications are functioning)"&vbCrLF
  141. END IF
  142. IF makeWSH = 1 THEN
  143. strComps = strComps&" WSH (Windows Script Host)"&vbCrLF
  144. strSamples = strSamples&" testWSH.vbs (to test that Windows Script Host is functioning)"&vbCrLF
  145. END IF
  146. strComps = strComps&vbCrLF
  147. strSamples = strSamples&vbCrLF
  148. IF iAmQuiet = 0 THEN
  149. strNeedCD = MsgBox("This script will place a folder on your desktop containing all necessary files needed to "&_
  150. "install the following optional components in Windows PE:"&vbCrLF&vbCrLF&_
  151. strComps&_
  152. "Please ensure that your "&_
  153. "Windows XP "&strPlatName&" CD, or a mapped drive to a network share of Windows XP "&strPlatName&" is available now at "&_
  154. "this location: "&vbCrLF&vbCrLF&" "&strOptionalSource&vbCrLF&vbCrLF&_
  155. "This script is only designed to be executed on Windows XP, and the resulting components "&_
  156. "are only for use with Windows PE.", 65, strJobTitle)
  157. END IF
  158. IF strNeedCD = 2 THEN
  159. WScript.Quit
  160. END IF
  161. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  162. '-----TEST VIA WMI TO INSURE MEDIA IS PRESENT AND READABLE
  163. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  164. IF iHaveSource = 0 THEN
  165. TestForMedia()
  166. END IF
  167. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  168. '-----TESTS FOR EXISTANCE OF SEVERAL KEY FILES, AND A FILE COUNT IN I386 or IA64 TO INSURE
  169. '-----WINDOWS XP PRO MEDIA
  170. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  171. Validate(iArchDir)
  172. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  173. '-----FIND THE USER'S DESKTOP, AND PUT NEW FOLDER THERE - APPEND TIMESTAMP IF THE FOLDER
  174. '-----ALREADY EXISTS.
  175. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  176. strDesktop = WshShell.SpecialFolders("Desktop")
  177. strFolderName = "WinPE Optional Component Files ("&iArchDir&")"
  178. IF iHaveDest = 0 THEN
  179. strDestFolder = strDesktop&"\"&strFolderName
  180. IF FSO.FolderExists(strDestFolder) THEN
  181. GetUnique()
  182. strDestFolder = strDestFolder&strAppend
  183. strFolderName = strFolderName&strAppend
  184. END IF
  185. ELSE
  186. strDestFolder = strOptionalDestination
  187. END IF
  188. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  189. '-----CHECK FOR FOLDERS AND CREATE IF THEY DON'T EXIST
  190. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  191. strSampleDir = strDestFolder&"\Samples"
  192. CheckNMakeFolder(strDestFolder)
  193. CheckNMakeFolder(strDestFolder&"\"&iArchDir)
  194. CheckNMakeFolder(strDestFolder&"\"&iArchDir&"\Registration")
  195. CheckNMakeFolder(strDestFolder&"\"&iArchDir&"\System32")
  196. CheckNMakeFolder(strSampleDir)
  197. IF makeADO = 1 THEN
  198. CheckNMakeFolder(strDestFolder&"\Program Files")
  199. CheckNMakeFolder(strDestFolder&"\Program Files\Common Files")
  200. CheckNMakeFolder(strDestFolder&"\Program Files\Common Files\System")
  201. CheckNMakeFolder(strDestFolder&"\Program Files\Common Files\System\ado")
  202. CheckNMakeFolder(strDestFolder&"\Program Files\Common Files\System\msadc")
  203. CheckNMakeFolder(strDestFolder&"\Program Files\Common Files\System\Ole db")
  204. strCMDado = """ """&strDestFolder&"\Program Files\Common Files\System\ado\"
  205. strCMDmsadc = """ """&strDestFolder&"\Program Files\Common Files\System\msadc\"
  206. strCMDOle_db = """ """&strDestFolder&"\Program Files\Common Files\System\Ole db\"
  207. END IF
  208. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  209. '-----SET COMMON VARIABLES FOR FILE EXPANSION
  210. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  211. strCMDExpand = "EXPAND """&strOptionalSource&"\"&iArchDir&"\"
  212. strCMDMid = """ """&strDestFolder&"\"&iArchDir&"\System32\"
  213. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  214. '-----SHELL OUT THE EXPANSION OF core WSH Files. (EXE, DLL, OCX)
  215. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  216. IF makeWSH = 1 THEN
  217. WshShell.Run strCMDExpand&"wsh.in_"&strCMDMid&"wsh.inf""", 0, FALSE
  218. WshShell.Run strCMDExpand&"wscript.ex_"&strCMDMid&"wscript.exe""", 0, FALSE
  219. WshShell.Run strCMDExpand&"cscript.ex_"&strCMDMid&"cscript.exe""", 0, FALSE
  220. WshShell.Run strCMDExpand&"jscript.dl_"&strCMDMid&"jscript.dll""", 0, FALSE
  221. WshShell.Run strCMDExpand&"mlang.dl_"&strCMDMid&"mlang.dll""", 0, FALSE
  222. WshShell.Run strCMDExpand&"scrobj.dl_"&strCMDMid&"scrobj.dll""", 0, FALSE
  223. WshShell.Run strCMDExpand&"scrrun.dl_"&strCMDMid&"scrrun.dll""", 0, FALSE
  224. IF iArchDir <> "I386" THEN
  225. WshShell.Run strCMDExpand&"stdole2.tl_"&strCMDMid&"stdole2.tlb""", 0, FALSE
  226. END IF
  227. WshShell.Run strCMDExpand&"urlmon.dl_"&strCMDMid&"urlmon.dll""", 0, FALSE
  228. WshShell.Run strCMDExpand&"vbscript.dl_"&strCMDMid&"vbscript.dll""", 0, FALSE
  229. WshShell.Run strCMDExpand&"wshext.dl_"&strCMDMid&"wshext.dll""", 0, FALSE
  230. WshShell.Run strCMDExpand&"wshom.oc_"&strCMDMid&"wshom.ocx""", 0, FALSE
  231. END IF
  232. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  233. '-----SHELL OUT THE EXPANSION OF core HTA Files. (EXE, TLB, DLL, OCX)
  234. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  235. IF makeHTA = 1 THEN
  236. WshShell.Run strCMDExpand&"mshta.ex_"&strCMDMid&"mshta.exe""", 0, FALSE
  237. WshShell.Run strCMDExpand&"msdatsrc.tl_"&strCMDMid&"msdatsrc.tlb""", 0, FALSE
  238. WshShell.Run strCMDExpand&"mshtml.tl_"&strCMDMid&"mshtml.tlb""", 0, FALSE
  239. WshShell.Run strCMDExpand&"asctrls.oc_"&strCMDMid&"asctrls.ocx""", 0, FALSE
  240. WshShell.Run strCMDExpand&"plugin.oc_"&strCMDMid&"plugin.ocx""", 0, FALSE
  241. WshShell.Run strCMDExpand&"actxprxy.dl_"&strCMDMid&"actxprxy.dll""", 0, FALSE
  242. WshShell.Run strCMDExpand&"advpack.dl_"&strCMDMid&"advpack.dll""", 0, FALSE
  243. WshShell.Run strCMDExpand&"corpol.dl_"&strCMDMid&"corpol.dll""", 0, FALSE
  244. WshShell.Run strCMDExpand&"cryptdlg.dl_"&strCMDMid&"cryptdlg.dll""", 0, FALSE
  245. WshShell.Run strCMDExpand&"ddrawex.dl_"&strCMDMid&"ddrawex.dll""", 0, FALSE
  246. WshShell.Run strCMDExpand&"dispex.dl_"&strCMDMid&"dispex.dll""", 0, FALSE
  247. WshShell.Run strCMDExpand&"dxtmsft.dl_"&strCMDMid&"dxtmsft.dll""", 0, FALSE
  248. WshShell.Run strCMDExpand&"dxtrans.dl_"&strCMDMid&"dxtrans.dll""", 0, FALSE
  249. WshShell.Run strCMDExpand&"hlink.dl_"&strCMDMid&"hlink.dll""", 0, FALSE
  250. WshShell.Run strCMDExpand&"iedkcs32.dl_"&strCMDMid&"iedkcs32.dll""", 0, FALSE
  251. WshShell.Run strCMDExpand&"iepeers.dl_"&strCMDMid&"iepeers.dll""", 0, FALSE
  252. WshShell.Run strCMDExpand&"iesetup.dl_"&strCMDMid&"iesetup.dll""", 0, FALSE
  253. WshShell.Run strCMDExpand&"inseng.dl_"&strCMDMid&"inseng.dll""", 0, FALSE
  254. WshShell.Run strCMDExpand&"itircl.dl_"&strCMDMid&"itircl.dll""", 0, FALSE
  255. WshShell.Run strCMDExpand&"itss.dl_"&strCMDMid&"itss.dll""", 0, FALSE
  256. WshShell.Run strCMDExpand&"licmgr10.dl_"&strCMDMid&"licmgr10.dll""", 0, FALSE
  257. WshShell.Run strCMDExpand&"mshtml.dl_"&strCMDMid&"mshtml.dll""", 0, FALSE
  258. WshShell.Run strCMDExpand&"mshtmled.dl_"&strCMDMid&"mshtmled.dll""", 0, FALSE
  259. WshShell.Run strCMDExpand&"msrating.dl_"&strCMDMid&"msrating.dll""", 0, FALSE
  260. WshShell.Run strCMDExpand&"mstime.dl_"&strCMDMid&"mstime.dll""", 0, FALSE
  261. WshShell.Run strCMDExpand&"pngfilt.dl_"&strCMDMid&"pngfilt.dll""", 0, FALSE
  262. WshShell.Run strCMDExpand&"sendmail.dl_"&strCMDMid&"sendmail.dll""", 0, FALSE
  263. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  264. '-----CREATE the INF to associate HTAS.
  265. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  266. SET FILE = fso.CreateTextFile(strDestFolder&"\"&iArchDir&"\System32\HTA.inf", True)
  267. FILE.WriteLine (";;; HTA simple file association Information File")
  268. FILE.WriteLine (";;; Copyright (c) 2001 Microsoft Corporation")
  269. FILE.WriteLine (";;; 06/12/01 09:31:03 (X86 2490)")
  270. FILE.WriteLine (";;;")
  271. FILE.WriteLine ("")
  272. FILE.WriteLine ("[Version]")
  273. FILE.WriteLine ("Signature = ""$Chicago$""")
  274. FILE.WriteLine ("AdvancedINF=2.0")
  275. FILE.WriteLine ("")
  276. FILE.WriteLine ("[DefaultInstall]")
  277. FILE.WriteLine ("AddReg = AddReg.Extensions")
  278. FILE.WriteLine ("")
  279. FILE.WriteLine ("[AddReg.Extensions]")
  280. FILE.WriteLine ("")
  281. FILE.WriteLine ("; .HTA")
  282. FILE.WriteLine ("HKCR, "".HTA"","""",,""HTAFile""")
  283. FILE.WriteLine ("HKCR, ""HTAFile"","""",,""%DESC_DOTHTA%""")
  284. FILE.WriteLine ("HKCR, ""HTAFile"",""IsShortcut"",,""Yes""")
  285. FILE.WriteLine ("HKCR, ""HTAFile\DefaultIcon"","""",FLG_ADDREG_TYPE_EXPAND_SZ,""%11%\MSHTA.exe,1""")
  286. FILE.WriteLine ("HKCR, ""HTAFile\Shell\Open"","""",,""%MENU_OPEN%""")
  287. FILE.WriteLine ("HKCR, ""HTAFile\Shell\Open\Command"",,FLG_ADDREG_TYPE_EXPAND_SZ,""%11%\MSHTA.exe """"%1"""" %*""")
  288. FILE.WriteLine ("")
  289. FILE.WriteLine ("")
  290. FILE.WriteLine ("[Strings]")
  291. FILE.WriteLine ("; Localizable strings")
  292. FILE.WriteLine ("DESC_DOTHTA = ""Microsoft Windows HTML Application""")
  293. FILE.WriteLine ("")
  294. FILE.WriteLine ("MENU_OPEN = ""&Open""")
  295. FILE.WriteLine ("MENU_CONOPEN = ""Open &with Command Prompt""")
  296. FILE.WriteLine ("MENU_DOSOPEN = ""Open &with MS-DOS Prompt""")
  297. FILE.WriteLine ("MENU_EDIT = ""&Edit""")
  298. FILE.WriteLine ("MENU_PRINT = ""&Print""")
  299. FILE.Close
  300. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  301. '-----CREATE the INF to install MSHTML.
  302. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  303. SET FILE = fso.CreateTextFile(strDestFolder&"\"&iArchDir&"\System32\mshtml.inf", True)
  304. FILE.WriteLine("[Version]")
  305. FILE.WriteLine("Signature=""$CHICAGO$""")
  306. FILE.WriteLine("[Reg]")
  307. FILE.WriteLine("ComponentName=mshtml.DllReg")
  308. FILE.WriteLine("ComponentVersion=6.0")
  309. FILE.WriteLine("AdvOptions=36")
  310. FILE.WriteLine("AddReg=Classes.Reg, Protocols.Reg, InetPrint.Reg, Misc.Reg")
  311. FILE.WriteLine("DelReg=BaseDel.Reg, !RemoveInsertable")
  312. FILE.WriteLine("NoBackupPlatform=NT5.1")
  313. FILE.WriteLine("[!RemoveInsertable]")
  314. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%\Insertable""")
  315. FILE.WriteLine("[RegCompatTable]")
  316. FILE.WriteLine("ComponentName=mshtml.DllReg")
  317. FILE.WriteLine("ComponentVersion=6.0")
  318. FILE.WriteLine("AdvOptions=36")
  319. FILE.WriteLine("AddReg=CompatTable.Reg")
  320. FILE.WriteLine("NoBackupPlatform=NT5.1")
  321. FILE.WriteLine("[RegUrlCompatTable]")
  322. FILE.WriteLine("ComponentName=mshtml.DllReg")
  323. FILE.WriteLine("ComponentVersion=6.0")
  324. FILE.WriteLine("AdvOptions=36")
  325. FILE.WriteLine("AddReg=UrlCompatTable.Reg")
  326. FILE.WriteLine("DelReg=UrlCompatTableDel.Reg")
  327. FILE.WriteLine("NoBackupPlatform=NT5.1")
  328. FILE.WriteLine("[RegJPEG]")
  329. FILE.WriteLine("ComponentName=mshtml.Install")
  330. FILE.WriteLine("ComponentVersion=6.0")
  331. FILE.WriteLine("AdvOptions=36")
  332. FILE.WriteLine("AddReg=JPEG.Inst")
  333. FILE.WriteLine("NoBackupPlatform=NT5.1")
  334. FILE.WriteLine("[RegJPG]")
  335. FILE.WriteLine("ComponentName=mshtml.Install")
  336. FILE.WriteLine("ComponentVersion=6.0")
  337. FILE.WriteLine("AdvOptions=36")
  338. FILE.WriteLine("AddReg=JPG.Inst")
  339. FILE.WriteLine("NoBackupPlatform=NT5.1")
  340. FILE.WriteLine("[RegJPE]")
  341. FILE.WriteLine("ComponentName=mshtml.Install")
  342. FILE.WriteLine("ComponentVersion=6.0")
  343. FILE.WriteLine("AdvOptions=36")
  344. FILE.WriteLine("AddReg=JPE.Inst")
  345. FILE.WriteLine("NoBackupPlatform=NT5.1")
  346. FILE.WriteLine("[RegPNG]")
  347. FILE.WriteLine("ComponentName=mshtml.Install")
  348. FILE.WriteLine("ComponentVersion=6.0")
  349. FILE.WriteLine("AdvOptions=36")
  350. FILE.WriteLine("AddReg=PNG.Inst")
  351. FILE.WriteLine("NoBackupPlatform=NT5.1")
  352. FILE.WriteLine("[RegPJPG]")
  353. FILE.WriteLine("ComponentName=mshtml.Install")
  354. FILE.WriteLine("ComponentVersion=6.0")
  355. FILE.WriteLine("AdvOptions=36")
  356. FILE.WriteLine("AddReg=PJPG.Inst")
  357. FILE.WriteLine("NoBackupPlatform=NT5.1")
  358. FILE.WriteLine("[RegXBM]")
  359. FILE.WriteLine("ComponentName=mshtml.Install")
  360. FILE.WriteLine("ComponentVersion=6.0")
  361. FILE.WriteLine("AdvOptions=36")
  362. FILE.WriteLine("AddReg=XBM.Inst")
  363. FILE.WriteLine("NoBackupPlatform=NT5.1")
  364. FILE.WriteLine("[RegGIF]")
  365. FILE.WriteLine("ComponentName=mshtml.Install")
  366. FILE.WriteLine("ComponentVersion=6.0")
  367. FILE.WriteLine("AdvOptions=36")
  368. FILE.WriteLine("AddReg=GIF.Inst")
  369. FILE.WriteLine("NoBackupPlatform=NT5.1")
  370. FILE.WriteLine("[Unreg]")
  371. FILE.WriteLine("ComponentName=mshtml.DllReg")
  372. FILE.WriteLine("AdvOptions=260")
  373. FILE.WriteLine("NoBackupPlatform=NT5.1")
  374. FILE.WriteLine("[Install]")
  375. FILE.WriteLine("ComponentName=mshtml.Install")
  376. FILE.WriteLine("ComponentVersion=6.0")
  377. FILE.WriteLine("AdvOptions=36")
  378. FILE.WriteLine("AddReg=FileAssoc.Inst, MIME.Inst, Misc.Inst")
  379. FILE.WriteLine("DelReg=BaseDel.Inst,IE3TypeLib,mshtmlwbTypeLib")
  380. FILE.WriteLine("NoBackupPlatform=NT5.1")
  381. FILE.WriteLine("[Uninstall]")
  382. FILE.WriteLine("ComponentName=mshtml.Install")
  383. FILE.WriteLine("AdvOptions=260")
  384. FILE.WriteLine("NoBackupPlatform=NT5.1")
  385. FILE.WriteLine("[Classes.Reg]")
  386. FILE.WriteLine("HKCR,CLSID\%CLSID_IImgCtx%,,,""IImgCtx""")
  387. FILE.WriteLine("HKCR,CLSID\%CLSID_IImgCtx%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  388. FILE.WriteLine("HKCR,CLSID\%CLSID_IImgCtx%\InProcServer32,""ThreadingModel"",,""Apartment""")
  389. FILE.WriteLine("HKCR,CLSID\%CLSID_IImgCtx%\ProgID,,,""IImgCtx""")
  390. FILE.WriteLine("HKCR,CLSID\%CLSID_CBackgroundPropertyPage%,,,""Microsoft HTML Background Page""")
  391. FILE.WriteLine("HKCR,CLSID\%CLSID_CBackgroundPropertyPage%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  392. FILE.WriteLine("HKCR,CLSID\%CLSID_CBackgroundPropertyPage%\InProcServer32,""ThreadingModel"",,""Apartment""")
  393. FILE.WriteLine("HKCR,CLSID\%CLSID_CCDAnchorPropertyPage%,,,""Microsoft HTML Anchor Page""")
  394. FILE.WriteLine("HKCR,CLSID\%CLSID_CCDAnchorPropertyPage%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  395. FILE.WriteLine("HKCR,CLSID\%CLSID_CCDAnchorPropertyPage%\InProcServer32,""ThreadingModel"",,""Apartment""")
  396. FILE.WriteLine("HKCR,CLSID\%CLSID_CCDGenericPropertyPage%,,,""Microsoft HTML Generic Page""")
  397. FILE.WriteLine("HKCR,CLSID\%CLSID_CCDGenericPropertyPage%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  398. FILE.WriteLine("HKCR,CLSID\%CLSID_CCDGenericPropertyPage%\InProcServer32,""ThreadingModel"",,""Apartment""")
  399. FILE.WriteLine("HKCR,CLSID\%CLSID_CDwnBindInfo%,,,""Microsoft HTML DwnBindInfo""")
  400. FILE.WriteLine("HKCR,CLSID\%CLSID_CDwnBindInfo%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  401. FILE.WriteLine("HKCR,CLSID\%CLSID_CDwnBindInfo%\InProcServer32,""ThreadingModel"",,""Apartment""")
  402. FILE.WriteLine("HKCR,CLSID\%CLSID_CInlineStylePropertyPage%,,,""Microsoft HTML Inline Style Page""")
  403. FILE.WriteLine("HKCR,CLSID\%CLSID_CInlineStylePropertyPage%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  404. FILE.WriteLine("HKCR,CLSID\%CLSID_CInlineStylePropertyPage%\InProcServer32,""ThreadingModel"",,""Apartment""")
  405. FILE.WriteLine("HKCR,CLSID\%CLSID_HTMLWindowProxy%,,,""Microsoft HTML Window Security Proxy""")
  406. FILE.WriteLine("HKCR,CLSID\%CLSID_HTMLWindowProxy%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  407. FILE.WriteLine("HKCR,CLSID\%CLSID_HTMLWindowProxy%\InProcServer32,""ThreadingModel"",,""Apartment""")
  408. FILE.WriteLine("HKCR,CLSID\%CLSID_JSProtocol%,,,""Microsoft HTML Javascript Pluggable Protocol""")
  409. FILE.WriteLine("HKCR,CLSID\%CLSID_JSProtocol%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  410. FILE.WriteLine("HKCR,CLSID\%CLSID_JSProtocol%\InProcServer32,""ThreadingModel"",,""Apartment""")
  411. FILE.WriteLine("HKCR,CLSID\%CLSID_ResProtocol%,,,""Microsoft HTML Resource Pluggable Protocol""")
  412. FILE.WriteLine("HKCR,CLSID\%CLSID_ResProtocol%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  413. FILE.WriteLine("HKCR,CLSID\%CLSID_ResProtocol%\InProcServer32,""ThreadingModel"",,""Apartment""")
  414. FILE.WriteLine("HKCR,CLSID\%CLSID_AboutProtocol%,,,""Microsoft HTML About Pluggable Protocol""")
  415. FILE.WriteLine("HKCR,CLSID\%CLSID_AboutProtocol%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  416. FILE.WriteLine("HKCR,CLSID\%CLSID_AboutProtocol%\InProcServer32,""ThreadingModel"",,""Apartment""")
  417. FILE.WriteLine("HKCR,CLSID\%CLSID_MailtoProtocol%,,,""Microsoft HTML Mailto Pluggable Protocol""")
  418. FILE.WriteLine("HKCR,CLSID\%CLSID_MailtoProtocol%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  419. FILE.WriteLine("HKCR,CLSID\%CLSID_MailtoProtocol%\InProcServer32,""ThreadingModel"",,""Apartment""")
  420. FILE.WriteLine("HKCR,CLSID\%CLSID_SysimageProtocol%,,,""Microsoft HTML Resource Pluggable Protocol""")
  421. FILE.WriteLine("HKCR,CLSID\%CLSID_SysimageProtocol%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  422. FILE.WriteLine("HKCR,CLSID\%CLSID_SysimageProtocol%\InProcServer32,""ThreadingModel"",,""Apartment""")
  423. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLDocument%"",,,""HTML Document""")
  424. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLDocument%\BrowseInPlace"",,,""""")
  425. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLDocument%\DefaultIcon"",,%REG_EXPAND_SZ%,""%IEXPLORE%,1""")
  426. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLDocument%\InProcServer32"",,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  427. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLDocument%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  428. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLDocument%\MiscStatus"",,,""2228625""")
  429. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLDocument%\ProgID"",,,""htmlfile""")
  430. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLDocument%\Version"",,,""6.0""")
  431. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLDocument%\EnablePlugin\.css"",,%REG_EXPAND_SZ%,""PointPlus plugin""")
  432. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTADocument%"",,,""Microsoft HTA Document 6.0""")
  433. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTADocument%\BrowseInPlace"",,,""""")
  434. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTADocument%\InProcServer32"",,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  435. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTADocument%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  436. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTADocument%\MiscStatus"",,,""2228625""")
  437. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTADocument%\Version"",,,""6.0""")
  438. FILE.WriteLine("HKCR,""CLSID\%CLSID_MHTMLDocument%"",,,""MHTML Document""")
  439. FILE.WriteLine("HKCR,""CLSID\%CLSID_MHTMLDocument%\BrowseInPlace"",,,""""")
  440. FILE.WriteLine("HKCR,""CLSID\%CLSID_MHTMLDocument%\DefaultIcon"",,%REG_EXPAND_SZ%,""%IEXPLORE%,1""")
  441. FILE.WriteLine("HKCR,""CLSID\%CLSID_MHTMLDocument%\InProcServer32"",,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  442. FILE.WriteLine("HKCR,""CLSID\%CLSID_MHTMLDocument%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  443. FILE.WriteLine("HKCR,""CLSID\%CLSID_MHTMLDocument%\MiscStatus"",,,""2228625""")
  444. FILE.WriteLine("HKCR,""CLSID\%CLSID_MHTMLDocument%\ProgID"",,,""mhtmlfile""")
  445. FILE.WriteLine("HKCR,""CLSID\%CLSID_MHTMLDocument%\Version"",,,""6.0""")
  446. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLPluginDocument%"",,,""Microsoft HTML Document 6.0""")
  447. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLPluginDocument%\BrowseInPlace"",,,""""")
  448. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLPluginDocument%\InProcServer32"",,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  449. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLPluginDocument%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  450. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLPluginDocument%\MiscStatus"",,,""0""")
  451. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLPluginDocument%\ProgID"",,,""htmlfile_FullWindowEmbed""")
  452. FILE.WriteLine("HKCR,CLSID\%CLSID_HTMLServerDoc%,,,""Microsoft HTML Server Document 6.0""")
  453. FILE.WriteLine("HKCR,CLSID\%CLSID_HTMLServerDoc%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  454. FILE.WriteLine("HKCR,CLSID\%CLSID_HTMLServerDoc%\InProcServer32,""ThreadingModel"",,""Apartment""")
  455. FILE.WriteLine("HKCR,CLSID\%CLSID_HTMLLoadOptions%,,,""Microsoft HTML Load Options""")
  456. FILE.WriteLine("HKCR,CLSID\%CLSID_HTMLLoadOptions%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  457. FILE.WriteLine("HKCR,CLSID\%CLSID_HTMLLoadOptions%\InProcServer32,""ThreadingModel"",,""Apartment""")
  458. FILE.WriteLine("HKCR,CLSID\%CLSID_IntDitherer%,,,""IntDitherer Class""")
  459. FILE.WriteLine("HKCR,CLSID\%CLSID_IntDitherer%\InProcServer32,,131072,%_SYS_MOD_PATH%")
  460. FILE.WriteLine("HKCR,CLSID\%CLSID_IntDitherer%\InProcServer32,""ThreadingModel"",,""Apartment""")
  461. FILE.WriteLine("HKCR,""CLSID\%CLSID_CrSource%"",,,""Microsoft CrSource 4.0""")
  462. FILE.WriteLine("HKCR,""CLSID\%CLSID_CrSource%\BrowseInPlace"",,,""""")
  463. FILE.WriteLine("HKCR,""CLSID\%CLSID_CrSource%\DefaultIcon"",,%REG_EXPAND_SZ%,""%IEXPLORE%,1""")
  464. FILE.WriteLine("HKCR,""CLSID\%CLSID_CrSource%\EnablePlugin\.css"",,%REG_EXPAND_SZ%,""PointPlus plugin""")
  465. FILE.WriteLine("HKCR,""CLSID\%CLSID_CrSource%\InProcServer32"",,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  466. FILE.WriteLine("HKCR,""CLSID\%CLSID_CrSource%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  467. FILE.WriteLine("HKCR,""CLSID\%CLSID_CrSource%\MiscStatus"",,,""2228625""")
  468. FILE.WriteLine("HKCR,""CLSID\%CLSID_CrSource%\ProgID"",,,""CrSource""")
  469. FILE.WriteLine("HKCR,""CLSID\%CLSID_CrSource%\Version"",,,""4.0""")
  470. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%"",,,""Microsoft Scriptlet Component""")
  471. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%\Control""")
  472. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%\InProcServer32"",,,""%_MOD_PATH%""")
  473. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  474. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%\MiscStatus"",,,""0""")
  475. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%\MiscStatus\1"",,,""131473""")
  476. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%\ProgID"",,,""ScriptBridge.ScriptBridge.1""")
  477. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%\Programmable""")
  478. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%\ToolboxBitmap32"",,,""%IEXPLORE%,1""")
  479. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%\TypeLib"",,,""{3050f1c5-98b5-11cf-bb82-00aa00bdce0b}""")
  480. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%\Version"",,,""4.0""")
  481. FILE.WriteLine("HKCR,""CLSID\%CLSID_Scriptlet%\VersionIndependentProgID"",,,""ScriptBridge.ScriptBridge""")
  482. FILE.WriteLine("HKCR,""CLSID\%CLSID_CPeerHandler%"",,,""Microsoft Scriptlet Element Behavior Handler""")
  483. FILE.WriteLine("HKCR,""CLSID\%CLSID_CPeerHandler%\InProcServer32"",,,""%_MOD_PATH%""")
  484. FILE.WriteLine("HKCR,""CLSID\%CLSID_CPeerHandler%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  485. FILE.WriteLine("HKCR,""CLSID\%CLSID_CPeerHandler%\ProgID"",,,""Scriptlet.Behavior""")
  486. FILE.WriteLine("HKCR,""CLSID\%CLSID_CHiFiUses%"",,,""Microsoft Scriptlet HiFiTimer Uses""")
  487. FILE.WriteLine("HKCR,""CLSID\%CLSID_CHiFiUses%\InProcServer32"",,,""%_MOD_PATH%""")
  488. FILE.WriteLine("HKCR,""CLSID\%CLSID_CHiFiUses%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  489. FILE.WriteLine("HKCR,""CLSID\%CLSID_CHiFiUses%\ProgID"",,,""Scriptlet.HiFiTimer""")
  490. FILE.WriteLine("HKCR,""CLSID\%CLSID_CRecalcEngine%"",,,""Microsoft HTML Recalc""")
  491. FILE.WriteLine("HKCR,""CLSID\%CLSID_CRecalcEngine%\InProcServer32"",,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  492. FILE.WriteLine("HKCR,""CLSID\%CLSID_CRecalcEngine%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  493. FILE.WriteLine("HKCR,""CLSID\%CLSID_CSvrOMUses%"",,,""Microsoft Scriptlet svr om Uses""")
  494. FILE.WriteLine("HKCR,""CLSID\%CLSID_CSvrOMUses%\InProcServer32"",,,""%_MOD_PATH%""")
  495. FILE.WriteLine("HKCR,""CLSID\%CLSID_CSvrOMUses%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  496. FILE.WriteLine("HKCR,""CLSID\%CLSID_CSvrOMUses%\ProgID"",,,""Scriptlet.SvrOm""")
  497. FILE.WriteLine("HKCR,""CLSID\%CLSID_CHtmlComponentConstructor%"",,,""Microsoft Html Component""")
  498. FILE.WriteLine("HKCR,""CLSID\%CLSID_CHtmlComponentConstructor%\InProcServer32"",,,""%_MOD_PATH%""")
  499. FILE.WriteLine("HKCR,""CLSID\%CLSID_CHtmlComponentConstructor%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  500. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLPopup%"",,,""Microsoft Html Popup Window""")
  501. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLPopup%\InProcServer32"",,,""%_MOD_PATH%""")
  502. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLPopup%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  503. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLPopupDoc%"",,,""Microsoft Html Document for Popup Window""")
  504. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLPopupDoc%\InProcServer32"",,,""%_MOD_PATH%""")
  505. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLPopupDoc%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  506. FILE.WriteLine("HKCR,""CLSID\%CLSID_CAnchorBrowsePropertyPage%"",,,""%Microsoft Anchor Element Browse Property Page%""")
  507. FILE.WriteLine("HKCR,""CLSID\%CLSID_CAnchorBrowsePropertyPage%\InProcServer32"",,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  508. FILE.WriteLine("HKCR,""CLSID\%CLSID_CAnchorBrowsePropertyPage%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  509. FILE.WriteLine("HKCR,""CLSID\%CLSID_CImageBrowsePropertyPage%"",,,""%Microsoft Image Element Browse Property Page%""")
  510. FILE.WriteLine("HKCR,""CLSID\%CLSID_CImageBrowsePropertyPage%\InProcServer32"",,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  511. FILE.WriteLine("HKCR,""CLSID\%CLSID_CImageBrowsePropertyPage%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  512. FILE.WriteLine("HKCR,""CLSID\%CLSID_CDocBrowsePropertyPage%"",,,""%Microsoft Document Browse Property Page%""")
  513. FILE.WriteLine("HKCR,""CLSID\%CLSID_CDocBrowsePropertyPage%\InProcServer32"",,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  514. FILE.WriteLine("HKCR,""CLSID\%CLSID_CDocBrowsePropertyPage%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  515. FILE.WriteLine("HKCR,CLSID\%CLSID_ExternalFrameworkSite%,,,""Microsoft HTML External Document""")
  516. FILE.WriteLine("HKCR,CLSID\%CLSID_ExternalFrameworkSite%\InProcServer32,,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  517. FILE.WriteLine("HKCR,CLSID\%CLSID_ExternalFrameworkSite%\InProcServer32,""ThreadingModel"",,""Apartment""")
  518. FILE.WriteLine("HKCR,""CLSID\%CLSID_TridentAPI%"",,,""%Trident API%""")
  519. FILE.WriteLine("HKCR,""CLSID\%CLSID_TridentAPI%\InProcServer32"",,%REG_EXPAND_SZ%,""%_SYS_MOD_PATH%""")
  520. FILE.WriteLine("HKCR,""CLSID\%CLSID_TridentAPI%\InProcServer32"",""ThreadingModel"",,""Apartment""")
  521. FILE.WriteLine("[Protocols.Reg]")
  522. FILE.WriteLine("HKCR,""PROTOCOLS\Handler\javascript"",""CLSID"",,""%CLSID_JSProtocol%""")
  523. FILE.WriteLine("HKCR,""PROTOCOLS\Handler\vbscript"",""CLSID"",,""%CLSID_JSProtocol%""")
  524. FILE.WriteLine("HKCR,""PROTOCOLS\Handler\about"",""CLSID"",,""%CLSID_AboutProtocol%""")
  525. FILE.WriteLine("HKCR,""PROTOCOLS\Handler\res"",""CLSID"",,""%CLSID_ResProtocol%""")
  526. FILE.WriteLine("HKCR,""PROTOCOLS\Handler\mailto"",""CLSID"",,""%CLSID_MailtoProtocol%""")
  527. FILE.WriteLine("HKCR,""PROTOCOLS\Handler\sysimage"",""CLSID"",,""%CLSID_SysImageProtocol%""")
  528. FILE.WriteLine("[CompatTable.Reg]")
  529. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility"", ""Version"",,""5.16""")
  530. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_VivoViewer%"", ""Compatibility Flags"",%REG_COMPAT%,0x8")
  531. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_MSInvestorNews%"", ""Compatibility Flags"",%REG_COMPAT%,0x180")
  532. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_ActiveMovie%"", ""Compatibility Flags"",%REG_COMPAT%,0x10000")
  533. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_Plugin%"", ""Compatibility Flags"",%REG_COMPAT%,0x20")
  534. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_AppletOCX%"", ""Compatibility Flags"",%REG_COMPAT%,0x10000")
  535. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_SaxCanvas%"", ""Compatibility Flags"",%REG_COMPAT%,0x820")
  536. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_MediaPlayer%"", ""Compatibility Flags"",%REG_COMPAT%,0x110000")
  537. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_CitrixWinframe%"", ""Compatibility Flags"",%REG_COMPAT%,0x1000")
  538. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_GregConsDieRoll%"", ""Compatibility Flags"",%REG_COMPAT%,0x2020")
  539. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_VActive%"", ""Compatibility Flags"",%REG_COMPAT%,0x8")
  540. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_IEMenu%"", ""Compatibility Flags"",%REG_COMPAT%,0x20")
  541. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_WebBrowser%"", ""Compatibility Flags"",%REG_COMPAT% ,0x21")
  542. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_Forms3Optionbutton%"", ""Compatibility Flags"",%REG_COMPAT%,0x1")
  543. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_SurroundVideo%"", ""Compatibility Flags"",%REG_COMPAT%,0x40")
  544. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_SheridanCommand%"", ""Compatibility Flags"",%REG_COMPAT%,0x2000")
  545. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_MCSITree%"", ""Compatibility Flags"",%REG_COMPAT%,0x820")
  546. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_MSTreeView%"", ""Compatibility Flags"",%REG_COMPAT%,0x20")
  547. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_Acrobat%"", ""Compatibility Flags"",%REG_COMPAT%,0x8008")
  548. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_MSInvestor%"", ""Compatibility Flags"",%REG_COMPAT%,0x10")
  549. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_PowerPointAnimator%"", ""Compatibility Flags"",%REG_COMPAT%,0x240")
  550. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_PowerPointAnimator%"", ""MiscStatus Flags"",%REG_COMPAT%,0x180")
  551. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_NCompassBillboard%"", ""Compatibility Flags"",%REG_COMPAT%,0x4000")
  552. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_NCompassLightboard%"", ""Compatibility Flags"",%REG_COMPAT%,0x4000")
  553. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_ProtoviewTreeView%"", ""Compatibility Flags"",%REG_COMPAT%,0x4000")
  554. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_ActiveEarthTime%"", ""Compatibility Flags"",%REG_COMPAT%,0x4000")
  555. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_LeadControl%"", ""Compatibility Flags"",%REG_COMPAT%,0x4000")
  556. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_TextX%"", ""Compatibility Flags"",%REG_COMPAT%,0x2000")
  557. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_IISForm%"", ""Compatibility Flags"",%REG_COMPAT%,0x2")
  558. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_GreetingsUpload%"", ""Compatibility Flags"",%REG_COMPAT%,0x20")
  559. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_GreetingsDownload%"", ""Compatibility Flags"",%REG_COMPAT%,0x20")
  560. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_COMCTLTree%"", ""Compatibility Flags"",%REG_COMPAT%,0x820")
  561. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_COMCTLProg%"", ""Compatibility Flags"",%REG_COMPAT%,0x820")
  562. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_COMCTLListview%"", ""Compatibility Flags"",%REG_COMPAT%,0x820")
  563. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_COMCTLImageList%"", ""Compatibility Flags"",%REG_COMPAT%,0x820")
  564. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_COMCTLSbar%"", ""Compatibility Flags"",%REG_COMPAT%,0x820")
  565. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_MCSIMenu%"", ""Compatibility Flags"",%REG_COMPAT%,0x20")
  566. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_MSNVer%"", ""Compatibility Flags"",%REG_COMPAT%,0x20")
  567. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_RichTextCtrl%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  568. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_IETimer%"", ""Compatibility Flags"",%REG_COMPAT%,0x20")
  569. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_SubScr%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  570. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_Scriptlet%"", ""Compatibility Flags"",%REG_COMPAT%,0x20")
  571. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_OldXsl%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  572. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_MMC%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  573. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_IE4ShellFolderIcon%"", ""Compatibility Flags"",%REG_COMPAT%,0x20000")
  574. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_IE4ShellPieChart%"", ""Compatibility Flags"",%REG_COMPAT%,0x20000")
  575. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_RealAudio%"", ""Compatibility Flags"",%REG_COMPAT%,0x10000")
  576. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_WebCalc%"", ""Compatibility Flags"",%REG_COMPAT%,0x40000")
  577. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_AnswerList%"", ""Compatibility Flags"",%REG_COMPAT%,0x80000")
  578. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_PreLoader%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  579. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_EyeDog%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  580. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_ImgAdmin%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  581. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_ImgThumb%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  582. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_HHOpen%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  583. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_RegWiz%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  584. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_SetupCtl%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  585. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_ImgEdit%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  586. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_ImgEdit2%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  587. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_ImgScan%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  588. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_IELabel%"", ""Compatibility Flags"",%REG_COMPAT%,0x40000")
  589. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_HomePubRender%"", ""Compatibility Flags"",%REG_COMPAT%,0x00100000")
  590. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_MGIPhotoSuiteBtn%"", ""Compatibility Flags"",%REG_COMPAT%,0x00200000")
  591. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_MGIPhotoSuiteSlider%"", ""Compatibility Flags"",%REG_COMPAT%,0x00200000")
  592. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_MGIPrintShopSlider%"", ""Compatibility Flags"",%REG_COMPAT%,0x00200000")
  593. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_RunLocExe%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  594. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_Launchit2%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  595. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\ActiveX Compatibility\%CLSID_MS_MSHTA%"", ""Compatibility Flags"",%REG_COMPAT%,0x400")
  596. FILE.WriteLine("[UrlCompatTable.Reg]")
  597. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility"", ""Version"",,""5.1""")
  598. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\~/CWIZINTR.HTM"",""Compatibility Flags"",%REG_COMPAT%,0x4")
  599. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\~/CONNWIZ.HTM"",""Compatibility Flags"",%REG_COMPAT%,0x4")
  600. FILE.WriteLine("[UrlCompatTableDel.Reg]")
  601. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\_:/WIN31/ENG/DEMOBIN/START.HTM""")
  602. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\_:/WIN31/ENG/DEMOBIN/TOOLBAR.HTM""")
  603. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\_:/WIN31/ENG/DEMOBIN/WEL2.HTM""")
  604. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\_:/WIN31/ENG/DEMOBIN/WELCOME.HTM""")
  605. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\_:/WIN95/ENG/DEMOBIN/CONTBAR.HTM""")
  606. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\_:/WIN95/ENG/DEMOBIN/START.HTM""")
  607. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\_:/WIN95/ENG/DEMOBIN/TOOLBAR.HTM""")
  608. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\_:/WIN95/ENG/DEMOBIN/WELCOME.HTM""")
  609. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\_:/WIN95/WEBPAGES/CACHED/CARPOINT/DEFAULT.HTM""")
  610. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\_:/WIN31/ENG/DEMOBIN/WEL2.HTM""")
  611. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\_:/WIN31/ENG/DEMOBIN/WELCOME.HTM""")
  612. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\URL Compatibility\_:/WIN95/ENG/DEMOBIN/WELCOME.HTM""")
  613. FILE.WriteLine("[InetPrint.Reg]")
  614. FILE.WriteLine("HKCR,""InternetShortcut\shell\print\command"",,%REG_EXPAND_SZ%,""rundll32.exe %_SYS_MOD_PATH%,PrintHTML """"%%1""""""")
  615. FILE.WriteLine("HKCR,""InternetShortcut\shell\printto\command"",,%REG_EXPAND_SZ%,""rundll32.exe %_SYS_MOD_PATH%,PrintHTML """"%%1"""" """"%%2"""" """"%%3"""" """"%%4""""""")
  616. FILE.WriteLine("HKCR,""htmlfile\shell\print\command"",,%REG_EXPAND_SZ%,""rundll32.exe %_SYS_MOD_PATH%,PrintHTML """"%%1""""""")
  617. FILE.WriteLine("HKCR,""htmlfile\shell\printto\command"",,%REG_EXPAND_SZ%,""rundll32.exe %_SYS_MOD_PATH%,PrintHTML """"%%1"""" """"%%2"""" """"%%3"""" """"%%4""""""")
  618. FILE.WriteLine("[Misc.Reg]")
  619. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\Version Vector"", ""IE"",,""6.0000""")
  620. FILE.WriteLine("HKCR,IImgCtx,,,""IImgCtx""")
  621. FILE.WriteLine("HKCR,IImgCtx\CLSID,,,%CLSID_IImgCtx%")
  622. FILE.WriteLine("HKCR,Scriptlet.Behavior,,,""Element Behavior Handler""")
  623. FILE.WriteLine("HKCR,Scriptlet.Behavior\CLSID,,,%CLSID_CPeerHandler%")
  624. FILE.WriteLine("HKCR,Scriptlet.HiFiTimer,,,""HiFiTimer Uses""")
  625. FILE.WriteLine("HKCR,Scriptlet.HiFiTimer\CLSID,,,%CLSID_CHiFiUses%")
  626. FILE.WriteLine("HKCR,Scriptlet.SvrOm,,,""Server OM Uses""")
  627. FILE.WriteLine("HKCR,Scriptlet.SvrOm\CLSID,,,%CLSID_CSvrOMUses%")
  628. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%,,,""CoGIFFilter Class""")
  629. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\InProcServer32,,,%_MOD_PATH%")
  630. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\InProcServer32,""ThreadingModel"",,""Apartment""")
  631. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\ProgID,,,""GIFFilter.CoGIFFilter.1""")
  632. FILE.WriteLine("HKCR,GIFFilter.CoGIFFilter,,,""CoGIFFilter Class""")
  633. FILE.WriteLine("HKCR,GIFFilter.CoGIFFilter\CLSID,,,%CLSID_IImageDecodeFilter%")
  634. FILE.WriteLine("HKCR,GIFFilter.CoGIFFilter.1,,,""CoGIFFilter Class""")
  635. FILE.WriteLine("HKCR,GIFFilter.CoGIFFilter.1\CLSID,,,%CLSID_IImageDecodeFilter%")
  636. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%,,,""CoJPEGFilter Class""")
  637. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\InProcServer32,,,%_MOD_PATH%")
  638. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\InProcServer32,""ThreadingModel"",,""Apartment""")
  639. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\ProgID,,,""JPEGFilter.CoJPEGFilter.1""")
  640. FILE.WriteLine("HKCR,JPEGFilter.CoJPEGFilter,,,""CoJPEGFilter Class""")
  641. FILE.WriteLine("HKCR,JPEGFilter.CoJPEGFilter\CLSID,,,%CLSID_IImageDecodeFilter%")
  642. FILE.WriteLine("HKCR,JPEGFilter.CoJPEGFilter.1,,,""CoJPEGFilter Class""")
  643. FILE.WriteLine("HKCR,JPEGFilter.CoJPEGFilter.1\CLSID,,,%CLSID_IImageDecodeFilter%")
  644. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%,,,""CoBMPFilter Class""")
  645. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\InProcServer32,,,%_MOD_PATH%")
  646. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\InProcServer32,""ThreadingModel"",,""Apartment""")
  647. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\ProgID,,,""BMPFilter.CoBMPFilter.1""")
  648. FILE.WriteLine("HKCR,BMPFilter.CoBMPFilter,,,""CoBMPFilter Class""")
  649. FILE.WriteLine("HKCR,BMPFilter.CoBMPFilter\CLSID,,,%CLSID_IImageDecodeFilter%")
  650. FILE.WriteLine("HKCR,BMPFilter.CoBMPFilter.1,,,""CoBMPFilter Class""")
  651. FILE.WriteLine("HKCR,BMPFilter.CoBMPFilter.1\CLSID,,,%CLSID_IImageDecodeFilter%")
  652. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%,,,""CoWMFFilter Class""")
  653. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\InProcServer32,,,%_MOD_PATH%")
  654. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\InProcServer32,""ThreadingModel"",,""Apartment""")
  655. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\ProgID,,,""WMFFilter.CoWMFFilter.1""")
  656. FILE.WriteLine("HKCR,WMFFilter.CoWMFFilter,,,""CoWMFFilter Class""")
  657. FILE.WriteLine("HKCR,WMFFilter.CoWMFFilter\CLSID,,,%CLSID_IImageDecodeFilter%")
  658. FILE.WriteLine("HKCR,WMFFilter.CoWMFFilter.1,,,""CoWMFFilter Class""")
  659. FILE.WriteLine("HKCR,WMFFilter.CoWMFFilter.1\CLSID,,,%CLSID_IImageDecodeFilter%")
  660. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%,,,""CoICOFilter Class""")
  661. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\InProcServer32,,,%_MOD_PATH%")
  662. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\InProcServer32,""ThreadingModel"",,""Apartment""")
  663. FILE.WriteLine("HKCR,CLSID\%CLSID_IImageDecodeFilter%\ProgID,,,""ICOFilter.CoICOFilter.1""")
  664. FILE.WriteLine("HKCR,ICOFilter.CoICOFilter,,,""CoICOFilter Class""")
  665. FILE.WriteLine("HKCR,ICOFilter.CoICOFilter\CLSID,,,%CLSID_IImageDecodeFilter%")
  666. FILE.WriteLine("HKCR,ICOFilter.CoICOFilter.1,,,""CoICOFilter Class""")
  667. FILE.WriteLine("HKCR,ICOFilter.CoICOFilter.1\CLSID,,,%CLSID_IImageDecodeFilter%")
  668. FILE.WriteLine("[FileAssoc.Inst]")
  669. FILE.WriteLine("HKCR,"".bmp"",""Content Type"",,""image/bmp""")
  670. FILE.WriteLine("HKCR,"".css"",""Content Type"",,""text/css""")
  671. FILE.WriteLine("HKCR,"".htc"",""Content Type"",,""text/x-component""")
  672. FILE.WriteLine("HKCR,"".dib"",""Content Type"",,""image/bmp""")
  673. FILE.WriteLine("HKCR,""htmlfile"",,,""HTML Document""")
  674. FILE.WriteLine("HKCR,""htmlfile\BrowseInPlace"",,,""""")
  675. FILE.WriteLine("HKCR,""htmlfile\CLSID"",,,""%CLSID_HTMLDocument%""")
  676. FILE.WriteLine("HKCR,""ScriptBridge.ScriptBridge"",,,""Microsoft Scriptlet Component""")
  677. FILE.WriteLine("HKCR,""ScriptBridge.ScriptBridge\CurVer"",,,""ScriptBridge.ScriptBridge.1""")
  678. FILE.WriteLine("HKCR,""ScriptBridge.ScriptBridge.1"",,,""Microsoft Scriptlet Component""")
  679. FILE.WriteLine("HKCR,""ScriptBridge.ScriptBridge.1\CLSID"",,,""%CLSID_Scriptlet%""")
  680. FILE.WriteLine("HKCR,""htmlfile_FullWindowEmbed"",,,""HTML Plugin Document""")
  681. FILE.WriteLine("HKCR,""htmlfile_FullWindowEmbed\BrowseInPlace"",,,""""")
  682. FILE.WriteLine("HKCR,""htmlfile_FullWindowEmbed\CLSID"",,,""%CLSID_HTMLPluginDocument%""")
  683. FILE.WriteLine("HKCR,"".mhtml"",,,""mhtmlfile""")
  684. FILE.WriteLine("HKCR,"".mhtml"",""Content Type"",,""message/rfc822""")
  685. FILE.WriteLine("HKCR,"".mht"",,,""mhtmlfile""")
  686. FILE.WriteLine("HKCR,"".mht"",""Content Type"",,""message/rfc822""")
  687. FILE.WriteLine("HKCR,""mhtmlfile"",,,""MHTML Document""")
  688. FILE.WriteLine("HKCR,""mhtmlfile\BrowseInPlace"",,,""""")
  689. FILE.WriteLine("HKCR,""mhtmlfile\CLSID"",,,""%CLSID_MHTMLDocument%""")
  690. FILE.WriteLine("HKCR,"".txt"",""Content Type"",,""text/plain""")
  691. FILE.WriteLine("HKCR,"".ico"",""Content Type"",,""image/x-icon""")
  692. FILE.WriteLine("HKCR,""htmlfile\DefaultIcon"",,%REG_EXPAND_SZ%,""%IEXPLORE%,1""")
  693. FILE.WriteLine("[GIF.Inst]")
  694. FILE.WriteLine("HKCR,"".gif"",,,""giffile""")
  695. FILE.WriteLine("HKCR,"".gif"",""Content Type"",,""image/gif""")
  696. FILE.WriteLine("HKCR,""giffile"",,,""%GIF_IMAGE%""")
  697. FILE.WriteLine("HKCR,""giffile\CLSID"",,,""%CLSID_HTMLDocument%""")
  698. FILE.WriteLine("HKCR,""giffile\shell\open\command"",,,""""""%IEXPLORE%"""" -nohome""")
  699. FILE.WriteLine("HKCR,""giffile\shell\open\ddeexec"",,,""""""file:%%1"""",,-1,,,,,""")
  700. FILE.WriteLine("HKCR,""giffile\shell\open\ddeexec\Application"",,,""IExplore""")
  701. FILE.WriteLine("HKCR,""giffile\shell\open\ddeexec\Topic"",,,""WWW_OpenURL""")
  702. FILE.WriteLine("HKCR,""giffile\DefaultIcon"",,,""%IEXPLORE%,9""")
  703. FILE.WriteLine("[PJPG.Inst]")
  704. FILE.WriteLine("HKCR,"".jfif"",,,""pjpegfile""")
  705. FILE.WriteLine("HKCR,"".jfif"",""Content Type"",,""image/pjpeg""")
  706. FILE.WriteLine("HKCR,""pjpegfile"",,,""%JPEG_IMAGE%""")
  707. FILE.WriteLine("HKCR,""pjpegfile\CLSID"",,,""%CLSID_HTMLDocument%""")
  708. FILE.WriteLine("HKCR,""pjpegfile\shell\open\command"",,,""""""%IEXPLORE%"""" -nohome""")
  709. FILE.WriteLine("HKCR,""pjpegfile\shell\open\ddeexec"",,,""""""file:%%1"""",,-1,,,,,""")
  710. FILE.WriteLine("HKCR,""pjpegfile\shell\open\ddeexec\Application"",,,""IExplore""")
  711. FILE.WriteLine("HKCR,""pjpegfile\shell\open\ddeexec\Topic"",,,""WWW_OpenURL""")
  712. FILE.WriteLine("HKCR,""pjpegfile\DefaultIcon"",,,""%IEXPLORE%,8""")
  713. FILE.WriteLine("[XBM.Inst]")
  714. FILE.WriteLine("HKCR,"".xbm"",""Content Type"",,""image/x-xbitmap""")
  715. FILE.WriteLine("HKCR,""xbmfile"",,,""%XBM_IMAGE%""")
  716. FILE.WriteLine("HKCR,""xbmfile\CLSID"",,,""%CLSID_HTMLDocument%""")
  717. FILE.WriteLine("HKCR,""xbmfile\shell\open\command"",,,""""""%IEXPLORE%"""" -nohome""")
  718. FILE.WriteLine("HKCR,""xbmfile\shell\open\ddeexec"",,,""""""file:%%1"""",,-1,,,,,""")
  719. FILE.WriteLine("HKCR,""xbmfile\shell\open\ddeexec\Application"",,,""IExplore""")
  720. FILE.WriteLine("HKCR,""xbmfile\shell\open\ddeexec\Topic"",,,""WWW_OpenURL""")
  721. FILE.WriteLine("HKCR,""xbmfile\DefaultIcon"",,,""%IEXPLORE%,9""")
  722. FILE.WriteLine("[JPEG.Inst]")
  723. FILE.WriteLine("HKCR,"".jpeg"",,,""jpegfile""")
  724. FILE.WriteLine("HKCR,"".jpeg"",""Content Type"",,""image/jpeg""")
  725. FILE.WriteLine("HKCR,""jpegfile"",,,""%JPEG_IMAGE%""")
  726. FILE.WriteLine("HKCR,""jpegfile\CLSID"",,,""%CLSID_HTMLDocument%""")
  727. FILE.WriteLine("HKCR,""jpegfile\shell\open\command"",,,""""""%IEXPLORE%"""" -nohome""")
  728. FILE.WriteLine("HKCR,""jpegfile\shell\open\ddeexec"",,,""""""file:%%1"""",,-1,,,,,""")
  729. FILE.WriteLine("HKCR,""jpegfile\shell\open\ddeexec\Application"",,,""IExplore""")
  730. FILE.WriteLine("HKCR,""jpegfile\shell\open\ddeexec\Topic"",,,""WWW_OpenURL""")
  731. FILE.WriteLine("HKCR,""jpegfile\DefaultIcon"",,,""%IEXPLORE%,8""")
  732. FILE.WriteLine("[JPE.Inst]")
  733. FILE.WriteLine("HKCR,"".jpe"",,,""jpegfile""")
  734. FILE.WriteLine("HKCR,"".jpe"",""Content Type"",,""image/jpeg""")
  735. FILE.WriteLine("HKCR,""jpegfile"",,,""%JPEG_IMAGE%""")
  736. FILE.WriteLine("HKCR,""jpegfile\CLSID"",,,""%CLSID_HTMLDocument%""")
  737. FILE.WriteLine("HKCR,""jpegfile\shell\open\command"",,,""""""%IEXPLORE%"""" -nohome""")
  738. FILE.WriteLine("HKCR,""jpegfile\shell\open\ddeexec"",,,""""""file:%%1"""",,-1,,,,,""")
  739. FILE.WriteLine("HKCR,""jpegfile\shell\open\ddeexec\Application"",,,""IExplore""")
  740. FILE.WriteLine("HKCR,""jpegfile\shell\open\ddeexec\Topic"",,,""WWW_OpenURL""")
  741. FILE.WriteLine("HKCR,""jpegfile\DefaultIcon"",,,""%IEXPLORE%,8""")
  742. FILE.WriteLine("[JPG.Inst]")
  743. FILE.WriteLine("HKCR,"".jpg"",,,""jpegfile""")
  744. FILE.WriteLine("HKCR,"".jpg"",""Content Type"",,""image/jpeg""")
  745. FILE.WriteLine("HKCR,""jpegfile"",,,""%JPEG_IMAGE%""")
  746. FILE.WriteLine("HKCR,""jpegfile\CLSID"",,,""%CLSID_HTMLDocument%""")
  747. FILE.WriteLine("HKCR,""jpegfile\shell\open\command"",,,""""""%IEXPLORE%"""" -nohome""")
  748. FILE.WriteLine("HKCR,""jpegfile\shell\open\ddeexec"",,,""""""file:%%1"""",,-1,,,,,""")
  749. FILE.WriteLine("HKCR,""jpegfile\shell\open\ddeexec\Application"",,,""IExplore""")
  750. FILE.WriteLine("HKCR,""jpegfile\shell\open\ddeexec\Topic"",,,""WWW_OpenURL""")
  751. FILE.WriteLine("HKCR,""jpegfile\DefaultIcon"",,,""%IEXPLORE%,8""")
  752. FILE.WriteLine("[PNG.Inst]")
  753. FILE.WriteLine("HKCR,"".png"",,,""pngfile""")
  754. FILE.WriteLine("HKCR,"".png"",""Content Type"",,""image/png""")
  755. FILE.WriteLine("HKCR,""pngfile"",,,""%PNG_IMAGE%""")
  756. FILE.WriteLine("HKCR,""pngfile\CLSID"",,,""%CLSID_HTMLDocument%""")
  757. FILE.WriteLine("HKCR,""pngfile\shell\open\command"",,,""""""%IEXPLORE%"""" -nohome""")
  758. FILE.WriteLine("HKCR,""pngfile\shell\open\ddeexec"",,,""""""file:%%1"""",,-1,,,,,""")
  759. FILE.WriteLine("HKCR,""pngfile\shell\open\ddeexec\Application"",,,""IExplore""")
  760. FILE.WriteLine("HKCR,""pngfile\shell\open\ddeexec\Topic"",,,""WWW_OpenURL""")
  761. FILE.WriteLine("HKCR,""pngfile\DefaultIcon"",,,""%IEXPLORE%,9""")
  762. FILE.WriteLine("[MIME.Inst]")
  763. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/bmp"",""Extension"",,"".bmp""")
  764. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/bmp"",""Image Filter CLSID"",,%CLSID_IImageDecodeFilter%")
  765. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/bmp\Bits"",""0"",1,02,00,00,00,FF,FF,42,4D")
  766. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/gif"",""CLSID"",,""%CLSID_HTMLDocument%""")
  767. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/gif"",""Extension"",,"".gif""")
  768. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/gif"",""Image Filter CLSID"",,%CLSID_IImageDecodeFilter%")
  769. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/gif\Bits"",""0"",1,04,00,00,00,FF,FF,FF,FF,47,49,46,38")
  770. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/jpeg"",""CLSID"",,""%CLSID_HTMLDocument%""")
  771. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/jpeg"",""Extension"",,"".jpg""")
  772. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/jpeg\Bits"",""0"",1,02,00,00,00,FF,FF,FF,D8")
  773. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/jpeg"",""Image Filter CLSID"",,%CLSID_IImageDecodeFilter%")
  774. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/pjpeg"",""CLSID"",,""%CLSID_HTMLDocument%""")
  775. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/pjpeg"",""Extension"",,"".jpg""")
  776. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/pjpeg\Bits"",""0"",1,02,00,00,00,FF,FF,FF,D8")
  777. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/pjpeg"",""Image Filter CLSID"",,%CLSID_IImageDecodeFilter%")
  778. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/xbm"",""Extension"",,"".xbm""")
  779. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/x-jg"",""CLSID"",,""%CLSID_HTMLDocument%""")
  780. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/x-xbitmap"",""CLSID"",,""%CLSID_HTMLDocument%""")
  781. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/x-xbitmap"",""Extension"",,"".xbm""")
  782. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/x-wmf"",""Image Filter CLSID"",,%CLSID_IImageDecodeFilter%")
  783. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/x-wmf\Bits"",""0"",1,04,00,00,00,FF,FF,FF,FF,D7,CD,C6,9A")
  784. FILE.WriteLine("HKCR,""MIME\Database\Content Type\message/rfc822"",""CLSID"",,""%CLSID_MHTMLDocument%""")
  785. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/png"",""Extension"",,"".png""")
  786. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/x-png"",""Extension"",,"".png""")
  787. FILE.WriteLine("HKCR,""MIME\Database\Content Type\text/css"",""Extension"",,"".css""")
  788. FILE.WriteLine("HKCR,""MIME\Database\Content Type\text/html"",""CLSID"",,""%CLSID_HTMLDocument%""")
  789. FILE.WriteLine("HKCR,""MIME\Database\Content Type\text/html"",""Extension"",,"".htm""")
  790. FILE.WriteLine("HKCR,""MIME\Database\Content Type\text/html"",""Encoding"",1,08,00,00,00")
  791. FILE.WriteLine("HKCR,""MIME\Database\Content Type\text/plain"",""CLSID"",,""%CLSID_HTMLDocument%""")
  792. FILE.WriteLine("HKCR,""MIME\Database\Content Type\text/plain"",""Extension"",,"".txt""")
  793. FILE.WriteLine("HKCR,""MIME\Database\Content Type\text/plain"",""Encoding"",1,07,00,00,00")
  794. FILE.WriteLine("HKCR,""MIME\Database\Content Type\text/x-component"",""CLSID"",,""%CLSID_CHtmlComponentConstructor%""")
  795. FILE.WriteLine("HKCR,""MIME\Database\Content Type\text/x-component"",""Extension"",,"".htc""")
  796. FILE.WriteLine("HKCR,""MIME\Database\Content Type\text/x-scriptlet"",""CLSID"",,""%CLSID_Scriptlet%""")
  797. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/x-icon"",""CLSID"",,""%CLSID_HTMLDocument%""")
  798. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/x-icon"",""Extension"",,"".ico""")
  799. FILE.WriteLine("HKCR,""MIME\Database\Content Type\image/x-icon"",""Image Filter CLSID"",,%CLSID_IImageDecodeFilter%")
  800. FILE.WriteLine("[Misc.Inst]")
  801. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\AboutURLs"",""blank"",2,""res://mshtml.dll/blank.htm""")
  802. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\AboutURLs"",""PostNotCached"",2,""res://mshtml.dll/repost.htm""")
  803. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\AboutURLs"",""mozilla"",2,""res://mshtml.dll/about.moz""")
  804. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\Default Behaviors"",""VML"",, ""CLSID:10072CEC-8CC1-11D1-986E-00A0C955B42E""")
  805. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\Default Behaviors"",""TIME"",, ""CLSID:476C391C-3E0D-11D2-B948-00C04FA32195""")
  806. FILE.WriteLine("[BaseDel.Reg]")
  807. FILE.WriteLine("HKCR,""htmlfile\DocObject""")
  808. FILE.WriteLine("HKCR,""htmlfile\Protocol""")
  809. FILE.WriteLine("HKCR,""htmlfile\Insertable""")
  810. FILE.WriteLine("HKLM,""Software\Classes\htmlfile\DocObject""")
  811. FILE.WriteLine("HKLM,""Software\Classes\htmlfile\Protocol""")
  812. FILE.WriteLine("HKLM,""Software\Classes\htmlfile\Insertable""")
  813. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLDocument%\DocObject""")
  814. FILE.WriteLine("HKCR,""CLSID\%CLSID_HTMLDocument%\Insertable""")
  815. FILE.WriteLine("[BaseDel.Inst]")
  816. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\PageSetup"",""header_left"",2,""&w""")
  817. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\PageSetup"",""header_right"",2,""Page &p of &P""")
  818. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\PageSetup"",""footer_left"",2,""&u%""")
  819. FILE.WriteLine("HKLM,""Software\Microsoft\Internet Explorer\PageSetup"",""footer_right"",2,""&d""")
  820. FILE.WriteLine("[IE3TypeLib]")
  821. FILE.WriteLine("HKCR, ""TypeLib\{3E76DB61-6F74-11CF-8F20-00805F2CD064}""")
  822. FILE.WriteLine("[mshtmlwbTypeLib]")
  823. FILE.WriteLine("HKCR, ""TypeLib\{AE24FDA0-03C6-11D1-8B76-0080C744F389}""")
  824. FILE.WriteLine("[Strings]")
  825. FILE.WriteLine("CLSID_CBackgroundPropertyPage = ""{3050F232-98B5-11CF-BB82-00AA00BDCE0B}""")
  826. FILE.WriteLine("CLSID_CCDAnchorPropertyPage = ""{3050F1FC-98B5-11CF-BB82-00AA00BDCE0B}""")
  827. FILE.WriteLine("CLSID_CCDGenericPropertyPage = ""{3050F17F-98B5-11CF-BB82-00AA00BDCE0B}""")
  828. FILE.WriteLine("CLSID_CDwnBindInfo = ""{3050F3C2-98B5-11CF-BB82-00AA00BDCE0B}""")
  829. FILE.WriteLine("CLSID_CInlineStylePropertyPage = ""{3050F296-98B5-11CF-BB82-00AA00BDCE0B}""")
  830. FILE.WriteLine("CLSID_HTMLDocument = ""{25336920-03F9-11cf-8FD0-00AA00686F13}""")
  831. FILE.WriteLine("CLSID_Scriptlet = ""{AE24FDAE-03C6-11D1-8B76-0080C744F389}""")
  832. FILE.WriteLine("CLSID_HTADocument = ""{3050F5C8-98B5-11CF-BB82-00AA00BDCE0B}""")
  833. FILE.WriteLine("CLSID_MHTMLDocument = ""{3050F3D9-98B5-11CF-BB82-00AA00BDCE0B}""")
  834. FILE.WriteLine("CLSID_HTMLPluginDocument = ""{25336921-03F9-11CF-8FD0-00AA00686F13}""")
  835. FILE.WriteLine("CLSID_HTMLWindowProxy = ""{3050F391-98B5-11CF-BB82-00AA00BDCE0B}""")
  836. FILE.WriteLine("CLSID_IImgCtx = ""{3050F3D6-98B5-11CF-BB82-00AA00BDCE0B}""")
  837. FILE.WriteLine("CLSID_JSProtocol = ""{3050F3RC1-98B5-11CF-BB82-00AA00BDCE0B}""")
  838. FILE.WriteLine("CLSID_ResProtocol = ""{3050F3BC-98B5-11CF-BB82-00AA00BDCE0B}""")
  839. FILE.WriteLine("CLSID_AboutProtocol = ""{3050F406-98B5-11CF-BB82-00AA00BDCE0B}""")
  840. FILE.WriteLine("CLSID_MailtoProtocol = ""{3050f3DA-98B5-11CF-BB82-00AA00BDCE0B}""")
  841. FILE.WriteLine("CLSID_SysimageProtocol = ""{76E67A63-06E9-11D2-A840-006008059382}""")
  842. FILE.WriteLine("CLSID_HTMLLoadOptions = ""{18845040-0fa5-11d1-ba19-00c04fd912d0}""")
  843. FILE.WriteLine("CLSID_CRecalcEngine = ""{3050f499-98b5-11cf-bb82-00aa00bdce0b}""")
  844. FILE.WriteLine("CLSID_HTMLServerDoc = ""{3050f4e7-98b5-11cf-bb82-00aa00bdce0b}""")
  845. FILE.WriteLine("CLSID_CrSource = ""{65014010-9F62-11d1-A651-00600811D5CE}""")
  846. FILE.WriteLine("CLSID_TridentAPI = ""{429AF92C-A51F-11d2-861E-00C04FA35C89}""")
  847. FILE.WriteLine("CLSID_CCSSFilterHandler = ""{5AAF51B1-B1F0-11d1-B6AB-00A0C90833E9}""")
  848. FILE.WriteLine("CLSID_CPeerHandler = ""{5AAF51RC1-B1F0-11d1-B6AB-00A0C90833E9}""")
  849. FILE.WriteLine("CLSID_CHiFiUses = ""{5AAF51B3-B1F0-11d1-B6AB-00A0C90833E9}""")
  850. FILE.WriteLine("CLSID_CSvrOMUses = ""{3050f4f0-98b5-11cf-bb82-00aa00bdce0b}""")
  851. FILE.WriteLine("CLSID_CPersistShortcut = ""{3050f4c6-98b5-11cf-bb82-00aa00bdce0b}""")
  852. FILE.WriteLine("CLSID_CPersistHistory = ""{3050f4c8-98b5-11cf-bb82-00aa00bdce0b}""")
  853. FILE.WriteLine("CLSID_CPersistSnapshot = ""{3050f4c9-98b5-11cf-bb82-00aa00bdce0b}""")
  854. FILE.WriteLine("CLSID_VivoViewer = ""{02466323-75ed-11cf-a267-0020af2546ea}""")
  855. FILE.WriteLine("CLSID_MSInvestorNews = ""{025B1052-CB0B-11CF-A071-00A0C9A06E05}""")
  856. FILE.WriteLine("CLSID_ActiveMovie = ""{05589fa1-c356-11ce-bf01-00aa0055595a}""")
  857. FILE.WriteLine("CLSID_Plugin = ""{06DD38D3-D187-11CF-A80D-00C04FD74AD8}""")
  858. FILE.WriteLine("CLSID_AppletOCX = ""{08B0e5c0-4FCB-11CF-AAA5-00401C608501}""")
  859. FILE.WriteLine("CLSID_SaxCanvas = ""{1DF67C43-AEAA-11CF-BA92-444553540000}""")
  860. FILE.WriteLine("CLSID_MediaPlayer = ""{22D6F312-B0F6-11D0-94AB-0080C74C7E95}""")
  861. FILE.WriteLine("CLSID_CitrixWinframe = ""{238f6f83-b8b4-11cf-8771-00a024541ee3}""")
  862. FILE.WriteLine("CLSID_GregConsDieRoll = ""{46646B43-EA16-11CF-870C-00201801DDD6}""")
  863. FILE.WriteLine("CLSID_VActive = ""{5A20858B-000D-11D0-8C01-444553540000}""")
  864. FILE.WriteLine("CLSID_IEMenu = ""{7823A620-9DD9-11CF-A662-00AA00C066D2}""")
  865. FILE.WriteLine("CLSID_WebBrowser = ""{8856F961-340A-11D0-A96B-00C04FD705A2}""")
  866. FILE.WriteLine("CLSID_Forms3Optionbutton = ""{8BD21D50-EC42-11CE-9E0D-00AA006002F3}""")
  867. FILE.WriteLine("CLSID_SurroundVideo = ""{928626A3-6B98-11CF-90B4-00AA00A4011F}""")
  868. FILE.WriteLine("CLSID_SheridanCommand = ""{AAD093RC1-F9CA-11CF-9C85-0000C09300C4}""")
  869. FILE.WriteLine("CLSID_MCSITree = ""{B3F8F451-788A-11D0-89D9-00A0C90C9B67}""")
  870. FILE.WriteLine("CLSID_MSTreeView = ""{B9D029D3-CDE3-11CF-855E-00A0C908FAF9}""")
  871. FILE.WriteLine("CLSID_Acrobat = ""{CA8A9780-280D-11CF-A24D-444553540000}""")
  872. FILE.WriteLine("CLSID_MSInvestor = ""{D2F97240-C9F4-11CF-BFC4-00A0C90C2BDB}""")
  873. FILE.WriteLine("CLSID_PowerPointAnimator = ""{EFBD14F0-6BFB-11CF-9177-00805F8813FF}""")
  874. FILE.WriteLine("CLSID_IISForm = ""{812AE312-8B8E-11CF-93C8-00AA00C08FDF}""")
  875. FILE.WriteLine("CLSID_IntDitherer = ""{05f6fe1a-ecef-11d0-aae7-00c04fc9b304}""")
  876. FILE.WriteLine("CLSID_NCompassBillboard = ""{6059B947-EC52-11CF-B509-00A024488F73}""")
  877. FILE.WriteLine("CLSID_NCompassLightboard = ""{RC1F87B84-26A6-11D0-B50A-00A024488F73}""")
  878. FILE.WriteLine("CLSID_ProtoviewTreeView = ""{RC183E214-2CB3-11D0-ADA6-00400520799C}""")
  879. FILE.WriteLine("CLSID_ActiveEarthTime = ""{9590092D-8811-11CF-8075-444553540000}""")
  880. FILE.WriteLine("CLSID_LeadControl = ""{00080000-B1BA-11CE-ABC6-F5RC1E79D9E3F}""")
  881. FILE.WriteLine("CLSID_TextX = ""{5B84FC03-E639-11CF-B8A0-00A024186BF1}""")
  882. FILE.WriteLine("CLSID_GreetingsUpload = ""{03405265-b4e2-11d0-8a77-00aa00a4fbc5}""")
  883. FILE.WriteLine("CLSID_GreetingsDownload = ""{03405269-b4e2-11d0-8a77-00aa00a4fbc5}""")
  884. FILE.WriteLine("CLSID_COMCTLTree = ""{0713E8A2-850A-101B-AFC0-4210102A8DA7}""")
  885. FILE.WriteLine("CLSID_COMCTLProg = ""{0713E8D2-850A-101B-AFC0-4210102A8DA7}""")
  886. FILE.WriteLine("CLSID_COMCTLListview = ""{58DA8D8A-9D6A-101B-AFC0-4210102A8DA7}""")
  887. FILE.WriteLine("CLSID_COMCTLImageList = ""{58DA8D8F-9D6A-101B-AFC0-4210102A8DA7}""")
  888. FILE.WriteLine("CLSID_COMCTLSbar = ""{6B7E638F-850A-101B-AFC0-4210102A8DA7}""")
  889. FILE.WriteLine("CLSID_MCSIMenu = ""{275E2FE0-7486-11D0-89D6-00A0C90C9B67}""")
  890. FILE.WriteLine("CLSID_MSNVer = ""{A123D693-256A-11d0-9DFE-00C04FD7BF41}""")
  891. FILE.WriteLine("CLSID_RichTextCtrl = ""{3B7C8860-D78F-101B-B9B5-04021C009402}""")
  892. FILE.WriteLine("CLSID_IETimer = ""{59CCB4A0-727D-11CF-AC36-00AA00A47DD2}""")
  893. FILE.WriteLine("CLSID_SubScr = ""{78A9RC12E-E0F4-11D0-B5DA-00C0F00AD7F8}""")
  894. FILE.WriteLine("CLSID_IImageDecodeFilter = ""{607fd4e8-0a03-11d1-ab1d-00c04fc9b304}""")
  895. FILE.WriteLine("CLSID_OldXsl = ""{2BD0D2F2-52EC-11D1-8C69-0E16BC000000}""")
  896. FILE.WriteLine("CLSID_MMC = ""{D306C3B7-2AD5-11D1-9E9A-00805F200005}""")
  897. FILE.WriteLine("CLSID_MacromediaSwFlash = ""{D27CDB6E-AE6D-11cf-96B8-444553540000}""")
  898. FILE.WriteLine("CLSID_CHtmlComponentConstructor = ""{3050f4f8-98b5-11cf-bb82-00aa00bdce0b}""")
  899. FILE.WriteLine("CLSID_CAnchorBrowsePropertyPage = ""{3050f3BB-98b5-11cf-bb82-00aa00bdce0b}""")
  900. FILE.WriteLine("CLSID_CImageBrowsePropertyPage = ""{3050f3B3-98b5-11cf-bb82-00aa00bdce0b}""")
  901. FILE.WriteLine("CLSID_CDocBrowsePropertyPage = ""{3050f3B4-98b5-11cf-bb82-00aa00bdce0b}""")
  902. FILE.WriteLine("CLSID_IE4ShellFolderIcon = ""{E5DF9D10-3B52-11D1-83E8-00A0C90DC849}""")
  903. FILE.WriteLine("CLSID_IE4ShellPieChart = ""{1D2B4F40-1F10-11D1-9E88-00C04FDCAB92}""")
  904. FILE.WriteLine("CLSID_RealAudio = ""{CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA}""")
  905. FILE.WriteLine("CLSID_WebCalc = ""{0002E510-0000-0000-C000-000000000046}""")
  906. FILE.WriteLine("CLSID_AnswerList = ""{8F2C1D40-C3CD-11D1-A08F-006097BD9970}""")
  907. FILE.WriteLine("CLSID_PreLoader = ""{16E349E0-702C-11CF-A3A9-00A0C9034920}""")
  908. FILE.WriteLine("CLSID_HTMLPopup = ""{3050f667-98b5-11cf-bb82-00aa00bdce0b}""")
  909. FILE.WriteLine("CLSID_HTMLPopupDoc = ""{3050f67D-98b5-11cf-bb82-00aa00bdce0b}""")
  910. FILE.WriteLine("CLSID_EyeDog = ""{06A7EC63-4E21-11D0-A112-00A0C90543AA}""")
  911. FILE.WriteLine("CLSID_ImgAdmin = ""{009541A0-3B81-101C-92F3-040224009C02}""")
  912. FILE.WriteLine("CLSID_ImgThumb = ""{E1A6B8A0-3603-101C-AC6E-040224009C02}""")
  913. FILE.WriteLine("CLSID_HHOpen = ""{130D7743-5F5A-11D1-B676-00A0C9697233}""")
  914. FILE.WriteLine("CLSID_RegWiz = ""{50E5E3D1-C07E-11D0-B9FD-00A0249F6B00}""")
  915. FILE.WriteLine("CLSID_SetupCtl = ""{F72A7B0E-0DD8-11D1-BD6E-00AA00B92AF1}""")
  916. FILE.WriteLine("CLSID_ImgEdit = ""{6D940280-9F11-11CE-83FD-02608C3EC08A}""")
  917. FILE.WriteLine("CLSID_ImgEdit2 = ""{6D940285-9F11-11CE-83FD-02608C3EC08A}""")
  918. FILE.WriteLine("CLSID_ImgScan = ""{84926CA0-2941-101C-816F-0E6013114B7F}""")
  919. FILE.WriteLine("CLSID_ExternalFrameworkSite = ""{3050f163-98b5-11cf-bb82-00aa00bdce0b}""")
  920. FILE.WriteLine("CLSID_IELabel = ""{99B42120-6EC7-11CF-A6C7-00AA00A47DD2}""")
  921. FILE.WriteLine("CLSID_HomePubRender = ""{96B9602E-BD20-11D2-AC89-00C04F7989D6}""")
  922. FILE.WriteLine("CLSID_MGIPhotoSuiteBtn = ""{4FA211A0-FD53-11D2-ACB6-0080C877D9B9}""")
  923. FILE.WriteLine("CLSID_MGIPhotoSuiteSlider = ""{105C7D20-FE19-11D2-ACB6-0080C877D9B9}""")
  924. FILE.WriteLine("CLSID_MGIPrintShopSlider = ""{7B9379D2-E1E4-11D0-8444-00401C6075AA}""")
  925. FILE.WriteLine("CLSID_RunLocExe = ""{73822330-B759-11D0-9E3D-00A0C911C819}""")
  926. FILE.WriteLine("CLSID_Launchit2 = ""{B75FEF72-0C54-11D2-B14E-00C04FB9358B}""")
  927. FILE.WriteLine("CLSID_MS_MSHTA = ""{3050f4d8-98b5-11cf-BB82-00AA00BDCE0B}""")
  928. FILE.WriteLine("REG_EXPAND_SZ = 0x00020000")
  929. FILE.WriteLine("REG_SZ_NOCLOBBER = 0x00000002")
  930. FILE.WriteLine("REG_COMPAT = 0x00010001")
  931. FILE.WriteLine("HEADER = ""&w&bPage &p of &P""")
  932. FILE.WriteLine("FOOTER = ""&u&b&d""")
  933. FILE.WriteLine("DEFAULT_IEPROPFONTNAME = ""Times New Roman""")
  934. FILE.WriteLine("DEFAULT_IEFIXEDFONTNAME = ""Courier New""")
  935. FILE.WriteLine("UNIVERSAL_ALPHABET = ""Universal Alphabet""")
  936. FILE.WriteLine("CENTRAL_EUROPEAN = ""Central European""")
  937. FILE.WriteLine("CYRILLIC = ""Cyrillic""")
  938. FILE.WriteLine("WESTERN = ""Western""")
  939. FILE.WriteLine("GREEK = ""Greek""")
  940. FILE.WriteLine("JPEG_IMAGE = ""JPEG Image""")
  941. FILE.WriteLine("GIF_IMAGE = ""GIF Image""")
  942. FILE.WriteLine("XBM_IMAGE = ""XBM Image""")
  943. FILE.WriteLine("PNG_IMAGE = ""PNG Image""")
  944. FILE.WriteLine("EngineMissing = ""SETUPAPI.DLL is missing on this machine.""")
  945. FILE.WriteLine("_MOD_PATH=""c:\windows\system32\mshtml.dll""")
  946. FILE.WriteLine("_SYS_MOD_PATH=""%SystemRoot%\system32\mshtml.dll""")
  947. FILE.WriteLine("IEXPLORE=""C:\Program Files\Internet Explorer\iexplore.exe""")
  948. FILE.WriteLine("[End]")
  949. FILE.Close
  950. END IF
  951. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  952. '-----SHELL OUT THE EXPANSION OF core ADO Files. (EXE, TLB, DLL, OCX)
  953. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  954. IF makeADO = 1 THEN
  955. WshShell.Run strCMDExpand&"msado20.tl_"&strCMDado&"msado20.tlb""", 0, FALSE
  956. WshShell.Run strCMDExpand&"msado21.tl_"&strCMDado&"msado21.tlb""", 0, FALSE
  957. WshShell.Run strCMDExpand&"msado25.tl_"&strCMDado&"msado25.tlb""", 0, FALSE
  958. WshShell.Run strCMDExpand&"msjro.dl_"&strCMDado&"msjro.dll""", 0, FALSE
  959. WshShell.Run strCMDExpand&"msado26.tl_"&strCMDado&"msado26.tlb""", 0, FALSE
  960. WshShell.Run strCMDExpand&"msader15.dl_"&strCMDado&"msader15.dll""", 0, FALSE
  961. WshShell.Run strCMDExpand&"msado15.dl_"&strCMDado&"msado15.dll""", 0, FALSE
  962. WshShell.Run strCMDExpand&"msadomd.dl_"&strCMDado&"msadomd.dll""", 0, FALSE
  963. WshShell.Run strCMDExpand&"msador15.dl_"&strCMDado&"msador15.dll""", 0, FALSE
  964. WshShell.Run strCMDExpand&"msadoX.dl_"&strCMDado&"msadoX.dll""", 0, FALSE
  965. WshShell.Run strCMDExpand&"msadrh15.dl_"&strCMDado&"msadrh15.dll""", 0, FALSE
  966. WshShell.Run strCMDExpand&"msadce.dl_"&strCMDmsadc&"msadce.dll""", 0, FALSE
  967. WshShell.Run strCMDExpand&"msadcer.dl_"&strCMDmsadc&"msadcer.dll""", 0, FALSE
  968. WshShell.Run strCMDExpand&"msadcf.dl_"&strCMDmsadc&"msadcf.dll""", 0, FALSE
  969. WshShell.Run strCMDExpand&"msadcfr.dl_"&strCMDmsadc&"msadcfr.dll""", 0, FALSE
  970. WshShell.Run strCMDExpand&"msadco.dl_"&strCMDmsadc&"msadco.dll""", 0, FALSE
  971. WshShell.Run strCMDExpand&"msadcor.dl_"&strCMDmsadc&"msadcor.dll""", 0, FALSE
  972. WshShell.Run strCMDExpand&"msadcs.dl_"&strCMDmsadc&"msadcs.dll""", 0, FALSE
  973. WshShell.Run strCMDExpand&"msadds.dl_"&strCMDmsadc&"msadds.dll""", 0, FALSE
  974. WshShell.Run strCMDExpand&"msaddsr.dl_"&strCMDmsadc&"msaddsr.dll""", 0, FALSE
  975. WshShell.Run strCMDExpand&"msdarem.dl_"&strCMDmsadc&"msdarem.dll""", 0, FALSE
  976. WshShell.Run strCMDExpand&"msdaremr.dl_"&strCMDmsadc&"msdaremr.dll""", 0, FALSE
  977. WshShell.Run strCMDExpand&"msdfmap.dl_"&strCMDmsadc&"msdfmap.dll""", 0, FALSE
  978. WshShell.Run strCMDExpand&"sqloledb.rl_"&strCMDOle_db&"sqloledb.rll""", 0, FALSE
  979. WshShell.Run strCMDExpand&"sqlxmlx.rl_"&strCMDOle_db&"sqlxmlx.rll""", 0, FALSE
  980. WshShell.Run strCMDExpand&"msdadc.dl_"&strCMDOle_db&"msdadc.dll""", 0, FALSE
  981. WshShell.Run strCMDExpand&"msdaenum.dl_"&strCMDOle_db&"msdaenum.dll""", 0, FALSE
  982. WshShell.Run strCMDExpand&"msdaer.dl_"&strCMDOle_db&"msdaer.dll""", 0, FALSE
  983. WshShell.Run strCMDExpand&"msdaora.dl_"&strCMDOle_db&"msdaora.dll""", 0, FALSE
  984. WshShell.Run strCMDExpand&"msdaorar.dl_"&strCMDOle_db&"msdaorar.dll""", 0, FALSE
  985. WshShell.Run strCMDExpand&"msdaosp.dl_"&strCMDOle_db&"msdaosp.dll""", 0, FALSE
  986. WshShell.Run strCMDExpand&"msdasc.dl_"&strCMDOle_db&"msdasc.dll""", 0, FALSE
  987. WshShell.Run strCMDExpand&"msdasql.dl_"&strCMDOle_db&"msdasql.dll""", 0, FALSE
  988. WshShell.Run strCMDExpand&"msdasqlr.dl_"&strCMDOle_db&"msdasqlr.dll""", 0, FALSE
  989. WshShell.Run strCMDExpand&"msdatl3.dl_"&strCMDOle_db&"msdatl3.dll""", 0, FALSE
  990. WshShell.Run strCMDExpand&"msdatt.dl_"&strCMDOle_db&"msdatt.dll""", 0, FALSE
  991. WshShell.Run strCMDExpand&"msdaurl.dl_"&strCMDOle_db&"msdaurl.dll""", 0, FALSE
  992. WshShell.Run strCMDExpand&"msxactps.dl_"&strCMDOle_db&"msxactps.dll""", 0, FALSE
  993. WshShell.Run strCMDExpand&"oledb32.dl_"&strCMDOle_db&"oledb32.dll""", 0, FALSE
  994. WshShell.Run strCMDExpand&"oledb32r.dl_"&strCMDOle_db&"oledb32r.dll""", 0, FALSE
  995. WshShell.Run strCMDExpand&"sqloledb.dl_"&strCMDOle_db&"sqloledb.dll""", 0, FALSE
  996. WshShell.Run strCMDExpand&"sqlxmlx.dl_"&strCMDOle_db&"sqlxmlx.dll""", 0, FALSE
  997. WshShell.Run strCMDExpand&"msdatsrc.tl_"&strCMDMid&"msdatsrc.tlb""", 0, FALSE
  998. WshShell.Run strCMDExpand&"cliconfg.ex_"&strCMDMid&"cliconfg.exe""", 0, FALSE
  999. WshShell.Run strCMDExpand&"cliconfg.rl_"&strCMDMid&"cliconfg.rll""", 0, FALSE
  1000. WshShell.Run strCMDExpand&"sqlsrv32.rl_"&strCMDMid&"sqlsrv32.rll""", 0, FALSE
  1001. WshShell.Run strCMDExpand&"cliconfg.dl_"&strCMDMid&"cliconfg.dll""", 0, FALSE
  1002. WshShell.Run strCMDExpand&"dbmsadsn.dl_"&strCMDMid&"dbmsadsn.dll""", 0, FALSE
  1003. WshShell.Run strCMDExpand&"dbmsrpcn.dl_"&strCMDMid&"dbmsrpcn.dll""", 0, FALSE
  1004. WshShell.Run strCMDExpand&"dbnetlib.dl_"&strCMDMid&"dbnetlib.dll""", 0, FALSE
  1005. WshShell.Run strCMDExpand&"dbnmpntw.dl_"&strCMDMid&"dbnmpntw.dll""", 0, FALSE
  1006. WshShell.Run strCMDExpand&"ds32gt.dl_"&strCMDMid&"ds32gt.dll""", 0, FALSE
  1007. WshShell.Run strCMDExpand&"mscpx32r.dl_"&strCMDMid&"mscpx32r.dll""", 0, FALSE
  1008. WshShell.Run strCMDExpand&"mscpxl32.dl_"&strCMDMid&"mscpxl32.dll""", 0, FALSE
  1009. WshShell.Run strCMDExpand&"msdart.dl_"&strCMDMid&"msdart.dll""", 0, FALSE
  1010. WshShell.Run strCMDExpand&"msorc32r.dl_"&strCMDMid&"msorc32r.dll""", 0, FALSE
  1011. WshShell.Run strCMDExpand&"msorcl32.dl_"&strCMDMid&"msorcl32.dll""", 0, FALSE
  1012. WshShell.Run strCMDExpand&"odbcbcp.dl_"&strCMDMid&"odbcbcp.dll""", 0, FALSE
  1013. WshShell.Run strCMDExpand&"sqlsrv32.dl_"&strCMDMid&"sqlsrv32.dll""", 0, FALSE
  1014. WshShell.Run strCMDExpand&"sqlunirl.dl_"&strCMDMid&"sqlunirl.dll""", 0, FALSE
  1015. WshShell.Run strCMDExpand&"12520437.cp_"&strCMDMid&"12520437.cpx""", 0, FALSE
  1016. WshShell.Run strCMDExpand&"12520850.cp_"&strCMDMid&"12520850.cpx""", 0, FALSE
  1017. WshShell.Run strCMDExpand&"ds16gt.dl_"&strCMDMid&"ds16gt.dll""", 0, FALSE
  1018. WshShell.Run strCMDExpand&"instcat.sq_"&strCMDMid&"instcat.sql""", 0, FALSE
  1019. WshShell.Run strCMDExpand&"expsrv.dl_"&strCMDMid&"expsrv.dll""", 0, FALSE
  1020. WshShell.Run strCMDExpand&"vbajet32.dl_"&strCMDMid&"vbajet32.dll""", 0, FALSE
  1021. WshShell.Run strCMDExpand&"CLBCATQ.DL_"&strCMDMid&"CLBCATQ.DLL""", 0, FALSE
  1022. WshShell.Run strCMDExpand&"colbact.DL_"&strCMDMid&"colbact.DLL""", 0, FALSE
  1023. WshShell.Run strCMDExpand&"COMRes.dl_"&strCMDMid&"COMRes.dll""", 0, FALSE
  1024. WshShell.Run strCMDExpand&"comsvcs.dl_"&strCMDMid&"comsvcs.dll""", 0, FALSE
  1025. WshShell.Run strCMDExpand&"DBmsLPCn.dl_"&strCMDMid&"DBmsLPCn.dll""", 0, FALSE
  1026. WshShell.Run strCMDExpand&"MSCTF.dl_"&strCMDMid&"MSCTF.dll""", 0, FALSE
  1027. WshShell.Run strCMDExpand&"mslbui.dl_"&strCMDMid&"mslbui.dll""", 0, FALSE
  1028. WshShell.Run strCMDExpand&"MTXCLU.DL_"&strCMDMid&"MTXCLU.DLL""", 0, FALSE
  1029. WshShell.Run strCMDExpand&"RESUTILS.DL_"&strCMDMid&"RESUTILS.DLL""", 0, FALSE
  1030. END IF
  1031. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1032. '-----CREATE THE SAMPLE WSH SCRIPT .
  1033. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1034. IF makeWSH = 1 THEN
  1035. SET FILE = fso.CreateTextFile(strDestFolder&"\Samples\testWSH.vbs", True)
  1036. FILE.WriteLine("MsgBox ""Welcome to Windows PE.""&vbCrLF&vbCrLF&""WSH support is functioning."", vbInformation, ""WSH support is functioning.""")
  1037. FILE.Close
  1038. END IF
  1039. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1040. '-----CREATE THE SAMPLE HTA SCRIPT .
  1041. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1042. IF makeHTA = 1 THEN
  1043. SET FILE = fso.CreateTextFile(strDestFolder&"\Samples\testHTA.hta", True)
  1044. FILE.WriteLine ("<HTML>")
  1045. FILE.WriteLine (" <HEAD>")
  1046. FILE.WriteLine (" <TITLE>HTA support is functioning</TITLE>")
  1047. FILE.WriteLine (" <HTA:APPLICATION ")
  1048. FILE.WriteLine (" WINDOWSTATE=""maximize""")
  1049. FILE.WriteLine (" BORDER=""none""")
  1050. FILE.WriteLine (" INNERBORDER=""no""")
  1051. FILE.WriteLine (" SHOWINTASKBAR=""no""")
  1052. FILE.WriteLine (" SCROLL=""no""")
  1053. FILE.WriteLine (" APPLICATIONNAME=""HTA Verification""")
  1054. FILE.WriteLine (" NAVIGABLE=""yes"">")
  1055. FILE.WriteLine (" </HEAD>")
  1056. FILE.WriteLine ("<BODY BGCOLOR=""FFFFFF"">")
  1057. FILE.WriteLine ("<DIV STYLE=""position:relative;left:90;top:140;width:80%;"">")
  1058. FILE.WriteLine ("<FONT COLOR=""Gray"" FACE=""Tahoma"">")
  1059. FILE.WriteLine ("<H2>Welcome to Windows PE.</H2>")
  1060. FILE.WriteLine ("HTA support is functioning.")
  1061. FILE.WriteLine ("</FONT>")
  1062. FILE.WriteLine ("<BR><BR>")
  1063. FILE.WriteLine ("<BUTTON ACCESSKEY=""C"" STYLE=""font-face:Tahoma;font-size:13px;"" onclick=""self.close()""><U>C</U>lose</BUTTON>")
  1064. FILE.WriteLine ("</DIV>")
  1065. FILE.WriteLine (" </BODY>")
  1066. FILE.WriteLine (" </HTML>")
  1067. FILE.Close
  1068. END IF
  1069. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1070. '-----CREATE THE SAMPLE ADO/WSH SCRIPT .
  1071. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1072. IF makeADO = 1 THEN
  1073. SET FILE = fso.CreateTextFile(strDestFolder&"\Samples\testADO.vbs", True)
  1074. FILE.WriteLine ("set objDBConnection = Wscript.CreateObject(""ADODB.Connection"")")
  1075. FILE.WriteLine ("set RS = Wscript.CreateObject(""ADODB.Recordset"")")
  1076. FILE.WriteLine ("")
  1077. FILE.WriteLine ("SERVER = InputBox(""Enter the name of the Microsoft SQL Server (SQL Server 7.0 or SQL Server 2000) you wish to connect to""&vbcrlf&vbcrlf&""This SQL Server must have the Northwind sample database installed."", ""Connect to SQL Server..."")")
  1078. FILE.WriteLine ("IF LEN(TRIM(SERVER)) = 0 THEN")
  1079. FILE.WriteLine (" MsgBox ""You did not enter the name of a machine to query. Exiting script."", vbCritical, ""No machine requested.""")
  1080. FILE.WriteLine (" WScript.Quit")
  1081. FILE.WriteLine ("END IF")
  1082. FILE.WriteLine ("")
  1083. FILE.WriteLine ("USERNAME = InputBox(""Enter the name of the SQL Server username to query with"", ""Enter SQL username..."")")
  1084. FILE.WriteLine ("IF LEN(TRIM(USERNAME)) = 0 THEN")
  1085. FILE.WriteLine (" MsgBox ""You did not enter the SQL Server username to query with. Exiting script."", vbCritical, ""No username specified.""")
  1086. FILE.WriteLine (" WScript.Quit")
  1087. FILE.WriteLine ("END IF")
  1088. FILE.WriteLine ("")
  1089. FILE.WriteLine ("PWD = InputBox(""Enter the password of the SQL Server you wish to connect to""&vbcrlf&vbcrlf&""Leave blank if no password is needed."", ""Enter SQL password..."")")
  1090. FILE.WriteLine ("")
  1091. FILE.WriteLine ("")
  1092. FILE.WriteLine ("SQLQuery1 =""SELECT Employees.FirstName AS FirstName, Employees.City AS City FROM Employees WHERE Employees.Lastname = 'Suyama'""")
  1093. FILE.WriteLine ("objDBConnection.open ""Provider=SQLOLEDB;Data Source=""&SERVER&"";Initial Catalog=Northwind;User ID=""&USERNAME&"";Password=""&PWD&"";""")
  1094. FILE.WriteLine ("")
  1095. FILE.WriteLine ("Set GetRS = objDBConnection.Execute(SQLQuery1)")
  1096. FILE.WriteLine ("")
  1097. FILE.WriteLine ("IF GetRS.EOF THEN")
  1098. FILE.WriteLine (" MsgBox ""No employees were found with the last name you searched on!""")
  1099. FILE.WriteLine ("ELSE")
  1100. FILE.WriteLine (" Do While Not GetRS.EOF")
  1101. FILE.WriteLine (" MsgBox ""There is an employee in ""&GetRS(""City"")&"" named ""&GetRS(""FirstName"")&"" with the last name you searched on.""")
  1102. FILE.WriteLine (" GetRS.MoveNext")
  1103. FILE.WriteLine (" Loop")
  1104. FILE.WriteLine ("END IF")
  1105. FILE.Close
  1106. END IF
  1107. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1108. '-----CREATE the BATS THAT WILL INSTALL THE OPTIONAL COMPONENTS
  1109. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1110. SET FILE = fso.CreateTextFile(strDestFolder&"\"&iArchDir&"\System32\OC.bat", True)
  1111. FILE.WriteLine ("@ECHO OFF")
  1112. FILE.WriteLine ("START ""Installing Components"" /MIN OC2.bat")
  1113. FILE.Close
  1114. SET FILE = fso.CreateTextFile(strDestFolder&"\"&iArchDir&"\System32\OC2.bat", True)
  1115. IF makeWSH = 1 THEN
  1116. FILE.WriteLine ("")
  1117. FILE.WriteLine ("REM - This section initializes WSH")
  1118. FILE.WriteLine ("")
  1119. FILE.WriteLine ("REM - INSTALL WSH COMPONENTS")
  1120. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\jscript.dll /S")
  1121. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\scrobj.dll /S")
  1122. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\scrrun.dll /S")
  1123. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\vbscript.dll /S")
  1124. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\wshext.dll /S")
  1125. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\wshom.ocx /S")
  1126. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\mlang.dll /S")
  1127. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\urlmon.dll /S")
  1128. FILE.WriteLine ("")
  1129. FILE.WriteLine ("REM - INSTALL FILE ASSOCIATIONS FOR WSH")
  1130. FILE.WriteLine ("%SystemRoot%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 WSH.inf")
  1131. END IF
  1132. IF makeHTA = 1 THEN
  1133. FILE.WriteLine ("")
  1134. FILE.WriteLine ("REM - INSTALL HTA COMPONENTS")
  1135. FILE.WriteLine ("%SystemRoot%\System32\mshta.exe /register")
  1136. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\asctrls.ocx /S")
  1137. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\plugin.ocx /S")
  1138. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\actxprxy.dll /S")
  1139. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\atl.dll /S")
  1140. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\corpol.dll /S")
  1141. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\cryptdlg.dll /S")
  1142. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\ddrawex.dll /S")
  1143. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\dispex.dll /S")
  1144. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\dxtmsft.dll /S")
  1145. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\dxtrans.dll /S")
  1146. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\hlink.dll /S")
  1147. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\iedkcs32.dll /S")
  1148. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\iepeers.dll /S")
  1149. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\iesetup.dll /S")
  1150. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\imgutil.dll /S")
  1151. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\inseng.dll /S")
  1152. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\itircl.dll /S")
  1153. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\itss.dll /S")
  1154. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\licmgr10.dll /S")
  1155. FILE.WriteLine ("%SystemRoot%\System32\rundll32.exe setupapi,InstallHinfSection reg 132 mshtml.inf")
  1156. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\mshtmled.dll /S")
  1157. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\msrating.dll /S")
  1158. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\mstime.dll /S")
  1159. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\olepro32.dll /S")
  1160. FILE.WriteLine ("Regsvr32 %SystemRoot%\System32\sendmail.dll /S")
  1161. FILE.WriteLine ("")
  1162. FILE.WriteLine ("REM - INSTALL FILE ASSOCIATIONS FOR HTA")
  1163. FILE.WriteLine ("%SystemRoot%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 HTA.inf")
  1164. END IF
  1165. IF makeADO = 1 THEN
  1166. FILE.WriteLine ("")
  1167. FILE.WriteLine ("REM - INSTALL ADO COMPONENTS")
  1168. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\msadc\msadce.dll"" /S")
  1169. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\msadc\msadcf.dll"" /S")
  1170. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\msadc\msadco.dll"" /S")
  1171. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\msadc\msadds.dll"" /S")
  1172. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\ado\msado15.dll"" /S")
  1173. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\ado\msadomd.dll"" /S")
  1174. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\ado\msador15.dll"" /S")
  1175. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\ado\msadoX.dll"" /S")
  1176. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\ado\msadrh15.dll"" /S")
  1177. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\msdadc.dll"" /S")
  1178. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\msdaenum.dll"" /S")
  1179. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\msdaer.dll"" /S")
  1180. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\msdaora.dll"" /S")
  1181. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\msdaosp.dll"" /S")
  1182. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\msadc\msdarem.dll"" /S")
  1183. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\msdasc.dll"" /S")
  1184. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\msdasql.dll"" /S")
  1185. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\msdatt.dll"" /S")
  1186. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\msdaurl.dll"" /S")
  1187. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\msadc\msdfmap.dll"" /S")
  1188. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\ado\msjro.dll"" /S")
  1189. FILE.WriteLine ("regsvr32 %SystemRoot%\System32\msorcl32.dll /S")
  1190. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\msxactps.dll"" /S")
  1191. FILE.WriteLine ("regsvr32 %SystemRoot%\System32\odbcconf.dll /S")
  1192. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\oledb32.dll"" /S")
  1193. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\oledb32r.dll"" /S")
  1194. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\sqloledb.dll"" /S")
  1195. FILE.WriteLine ("regsvr32 %SystemDrive%""\Program Files\Common Files\System\Ole DB\sqlxmlx.dll"" /S")
  1196. FILE.WriteLine ("regsvr32 %SystemRoot%\System32\CLBCATQ.DLL /S")
  1197. FILE.WriteLine ("regsvr32 %SystemRoot%\system32\colbact.DLL /S")
  1198. FILE.WriteLine ("regsvr32 %SystemRoot%\system32\comsvcs.dll /S")
  1199. FILE.WriteLine ("regsvr32 %SystemRoot%\System32\MSCTF.dll /S")
  1200. FILE.WriteLine ("regsvr32 %SystemRoot%\system32\ole32.dll /S")
  1201. END IF
  1202. FILE.WriteLine ("EXIT")
  1203. FILE.Close
  1204. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1205. '-----FILES READY - ASK IF THE USER WANTS TO EXPLORE TO THEM.
  1206. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1207. IF makeADO = 1 THEN
  1208. strADOcpDirections = " Copy the Program Files directory to the root of your WinPE image - "&_
  1209. "the same folder level as the "&iArchDir&" folder."&vbCrLF
  1210. END IF
  1211. IF strOptionalDestination = "" THEN
  1212. strFinalLocation = "on your computer's desktop in the folder """&strFolderName&"""."&vbCrLF&vbCrLF
  1213. ELSE
  1214. strFinalLocation = "in the folder you specified: "&strOptionalDestination&vbCrLF&vbCrLF
  1215. END IF
  1216. IF iAmQuiet = 0 THEN
  1217. IF iWillBrowse = 1 THEN
  1218. strAsk = ""
  1219. iAsk = 0
  1220. ELSE
  1221. strAsk = "Would you like to open this folder now?"
  1222. iAsk = 36
  1223. END IF
  1224. strWantToView = MsgBox("This script has retrieved all files needed to "&_
  1225. "install these optional components in Windows PE:"&vbCrLF&vbCrLF&strComps&_
  1226. "The files are located "&strFinalLocation&_
  1227. "To install these components:"&vbCrLF&vbCrLF&_
  1228. " Copy the "&iArchDir&" folder onto an existing "&iArchDir&" folder in your WinPE image."&vbCrLF&strADOcpDirections&_
  1229. " Modify your startnet.cmd to run the file ""OC.bat"" (without quotes)."&vbCrLF&vbCrLF&_
  1230. "The following are in the Samples folder. These may be useful to test the functionality of "&_
  1231. "the optional components."&vbCrLF&vbCrLF&strSamples&_
  1232. strAsk, iAsk, strJobTitle)
  1233. END IF
  1234. IF strWantToView = 6 OR iWillBrowse = 1 THEN
  1235. WshShell.Run("Explorer "&strDestFolder)
  1236. END IF
  1237. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1238. '-----WMI TEST OF CD LOADED AND CD READ INTEGRITY.
  1239. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1240. SUB TestForMedia()
  1241. IF CDDrive.MediaLoaded(0) = FALSE THEN
  1242. MsgBox "Please place the Windows XP "&strPlatName&" CD in drive "&strOptionalSource&" before continuing.", vbCritical, "No CD in drive "&strOptionalSource&""
  1243. WScript.Quit
  1244. ELSE
  1245. IF CDDrive.DriveIntegrity(0) = FALSE THEN
  1246. MsgBox "Could not read files from the CD in drive "&strOptionalSource&".", vbCritical, "CD in drive "&strOptionalSource&" is unreadable."
  1247. WScript.Quit
  1248. END IF
  1249. END IF
  1250. END SUB
  1251. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1252. '-----FSO TEST TO SEE IF THE CMDLINE PROVIDED FOLDER EXISTS.
  1253. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1254. FUNCTION TestForFolder(a)
  1255. IF NOT FSO.FolderExists(a) THEN
  1256. FailOut()
  1257. END IF
  1258. END FUNCTION
  1259. SUB Validate(a)
  1260. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1261. '-----TEST FOR THE EXISTANCE OF A FOLDER OR FILE, OR THE NONEXISTANCE OF A FILE.
  1262. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1263. TestForFolder(strOptionalSource&"\"&a&"")
  1264. TestForFolder(strOptionalSource&"\DOCS")
  1265. IF iArchDir = "I386" THEN
  1266. TestForFolder(strOptionalSource&"\SUPPORT")
  1267. END IF
  1268. TestForFolder(strOptionalSource&"\VALUEADD")
  1269. TestForFile(strOptionalSource&"\"&a&"\System32\smss.exe")
  1270. TestForFile(strOptionalSource&"\"&a&"\System32\ntdll.dll")
  1271. TestForFile(strOptionalSource&"\"&a&"\winnt32.exe")
  1272. TestForFile(strOptionalSource&"\setup.exe")
  1273. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1274. '-----TEST TO INSURE THAT THEY AREN'T TRYING TO INSTALL FROM Windows PE CD ITSELF
  1275. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1276. Set Folder = FSO.GetFolder(strOptionalSource&"\"&a&"\System32")
  1277. IF Folder.Files.Count > 10 THEN
  1278. FailOut()
  1279. END IF
  1280. END SUB
  1281. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1282. '-----FUNCTIONS TO TEST FOR THE EXISTANCE OF A FOLDER OR FILE, OR THE NONEXISTANCE OF A FILE.
  1283. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1284. FUNCTION TestForFolder(a)
  1285. IF NOT FSO.FolderExists(a) THEN
  1286. FailOut()
  1287. END IF
  1288. END FUNCTION
  1289. FUNCTION TestForFile(a)
  1290. IF NOT FSO.FileExists(a) THEN
  1291. FailOut()
  1292. END IF
  1293. END FUNCTION
  1294. FUNCTION TestNoFile(a)
  1295. IF FSO.FileExists(a) THEN
  1296. FailOut()
  1297. END IF
  1298. END FUNCTION
  1299. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1300. '-----FUNCTIONS TO TEST FOR THE EXISTANCE OF A FOLDER. IF IT ISN'T THERE, IT CREATES IT
  1301. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1302. FUNCTION CheckNMakeFolder(a)
  1303. IF NOT FSO.FolderExists(a) THEN
  1304. FSO.CreateFolder(a)
  1305. END IF
  1306. END FUNCTION
  1307. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1308. '-----GENERIC ERROR IF WE FAIL MEDIA RECOGNITION.
  1309. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1310. SUB FailOut()
  1311. MsgBox strOptionalSource&" does not appear to contain Windows XP "&strPlatName&".", vbCritical, "Not a valid copy of Windows XP"
  1312. WScript.Quit
  1313. END SUB
  1314. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1315. '-----WMI TEST OF CD LOADED AND CD READ INTEGRITY.
  1316. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1317. SUB TestForMedia()
  1318. IF CDDrive.MediaLoaded(0) = FALSE THEN
  1319. MsgBox "Please place the Windows XP "&strPlatName&" CD in drive "&strOptionalSource&" before continuing.", vbCritical, "No CD in drive "&strOptionalSource&""
  1320. WScript.Quit
  1321. ELSE
  1322. IF CDDrive.DriveIntegrity(0) = FALSE THEN
  1323. MsgBox "Could not read files from the CD in drive "&strOptionalSource&".", vbCritical, "CD in drive "&strOptionalSource&" is unreadable."
  1324. WScript.Quit
  1325. END IF
  1326. END IF
  1327. END SUB
  1328. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1329. '-----ADD DATE, AND ADD ZEROS SO WE DON'T HAVE A GIBBERISH TIMESTAMP ON UNIQUE FOLDERNAME.
  1330. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  1331. SUB GetUnique()
  1332. strAppend=FixUp(Hour(Now()))&FixUp(Minute(Now()))&FixUp(Second(Now()))
  1333. IF Len(strAppend) = 5 THEN
  1334. strAppend = strAppend&"0"
  1335. ELSEIF Len(strAppend) = 4 THEN
  1336. strAppend = strAppend&"00"
  1337. END IF
  1338. END SUB
  1339. FUNCTION FixUp(a)
  1340. If Len(a) = 1 THEN
  1341. FixUp = 0&a
  1342. ELSE
  1343. Fixup = a
  1344. END IF
  1345. END FUNCTION
  1346. FUNCTION CleanLocation(a)
  1347. CleanLocation = REPLACE(a, """", "")
  1348. END FUNCTION