Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
744 B

  1. WScript.Echo("Installing the BITS IE Plug-in sample.");
  2. var WshShell = new ActiveXObject("WScript.Shell");
  3. WScript.Echo("Copying files...");
  4. WshShell.Run("cmd /c \"copy bits_ie.htm %windir%\\system32 /Y\"",1,true);
  5. WshShell.Run("cmd /c \"copy bits_ie.exe %windir%\\system32 /Y\"",1,true);
  6. WScript.Echo("Configuring registry...");
  7. var WINDIR = WshShell.ExpandEnvironmentStrings("%windir%");
  8. var RunURL = WINDIR + "\\system32\\bits_ie.htm";
  9. WshShell.RegWrite( "HKCU\\Software\\Microsoft\\Internet Explorer\\MenuExt\\Background Download As\\", RunURL, "REG_SZ" );
  10. WshShell.RegWrite( "HKCU\\Software\\Microsoft\\Internet Explorer\\MenuExt\\Background Download As\\Contexts", 32, "REG_DWORD" );
  11. WScript.Echo("Sample installed.");
  12. WScript.Quit(0);