In Internet component download, you first package the components you want to download into a .cab file so that the browser can download them intelligently. The Package and Deployment Wizard's packaging process builds an HTML page that refers to this cabinet file through an OBJECT tag. When a user opens this Web page, the browser reads the OBJECT tag and retrieves the necessary files for the download.
As part of the .cab file creation process, the Package and Deployment Wizard creates an .inf file that contains information about the download. You can customize this file if you need to include additional information.
Note If you update the .inf file, you must rebuild your .cab file.
For More Information See "Packaging Files for the Package and Deployment Wizard" in this chapter for a full list of the files created with the .cab file.
The following HTML fragment shows the OBJECT tag for a .cab file called MyContrl.cab:
<OBJECT
CLASSID="clsid:25BDF09D-EC8B-11CF-BD97-00AA00575603"
CODEBASE="/Controls/MyContrl.cab#version=1,0,0,0"
ID=MyContrl>
</OBJECT>
The OBJECT tag shown above contains three attributes:
The system performs the following actions when downloading a .cab file's contents onto a client machine:
The following checklist shows the steps that you should follow to create a fully signed, safe Internet component download for an ActiveX control.
Note If you are creating a download for another type of ActiveX component, you would not perform the steps involving safety settings.
The following resources may be needed to create and test your packages for Internet component download. Most of the resources are part of Visual Basic.
Resource | Purpose | Source |
pdaddin.dll or pdcmdln.exe |
Package your components for download using the Package and Deployment Wizard, either from within Visual Basic (pdaddin.dll) or as a stand-alone executable (pdcmdln.exe). | Visual Basic installation |
lpk_tool.exe | Create the license for any controls. | Visual Basic Tools directory |
makecab.exe | Build cabinet files. | Visual Basic installation |
signcode.exe | Manage digital signatures | ActiveX SDK |
Authenticode certificate | Identify the developer | Verisign Inc., GTE, or another vendor that provides signatures |
Internet Explorer | Test download and installation | www.microsoft.com |
regsvr32.exe | Register and unregister software for testing | Visual Basic Tools directory |