BITS IE Plugin Sample
Summary
This sample demonstrates basic application use of BITS by providing an
IE plugin to schedule a background download. The sample allows the
user to monitor progress, perform basic operations such as cancel and finish,
and even allows the user to resume the download after a logoff or a shutdown.
Key Concepts
- Basic connection with manager and job submission.
- Example presentation to user of job state.
- Job control such as suspend/resume/cancel/complete.
- Interface based callbacks for updating progress/state.
- Retrieving text messages for a BITS error code.
Installation
- Change the current directory to the binary output directory in the SDK.
- Run the "install.js" script.
- Restart IE for the changes to take effect.
- To uninstall run the "uninstall.js" script.
Basic Usage
Simple Download
- Open IE and right click on an anchor that points to a static HTTP file.
- Select the "Background Download As" option.
- Type in the destination file name at the prompt.
- Wait for job to finish. The sample will signal you when it is finished.
Demonstrating Reactivation On Logon
- Submit a download as described in the "Simple Download" section.
- While the sample is still downloading, logoff or exit windows.
- Log back on. The sample will restart.