CODEBASE Element
Specifies the location of the file or distribution unit to be installed.
Syntax
<CODEBASE FILENAME = "file" HREF = "url" SIZE = "n" STYLE = "sMechanism"/>
Attributes
- FILENAME
- Optional. String value name of the file or distribution unit. When the FILENAME attribute is used, the file is expected to exist in the same archive (.cab file) as the Open Software Description (OSD) file.
- HREF
- Optional. URL of the file or distribution unit. When the HREF attribute is used, the file is expected to exist on the network. Note that either fully qualified or relative URLs are allowed.
Note Obsolete. Channel Definition Format (CDF) supports only HTTP, Secure Hypertext Transfer Protocol (HTTPS), and File Transfer Protocol (FTP) protocols. If a different protocol is used, Windows Internet Explorer will fail to install the file or distribution unit without notifying the user.- SIZE
- Optional. Numeric value in kilobytes (K) that indicates the maximum allowable size for the distribution unit. If SIZE is exceeded, the distribution unit will not be downloaded. If SIZE is not specified, no kilobyte limit is enforced. This attribute is valid only within CDF files.
- STYLE
- Optional. String value indicating the mechanism used by the computer to download and install files from the Internet. This attribute is valid only within CDF files.
ActiveSetupUses the Microsoft ActiveX "Active Setup" engine. MSICDUses the Microsoft Internet Component Download (MSICD) to download distribution units and look at the OSD file for processing instructions. To use Microsoft Internet Explorer 3.0 processing procedures, the distribution unit can contain an .inf file.
Element Information
Parent elements IMPLEMENTATION Child elements None Minimum availability Internet Explorer 4.0 Minimum operating systems Windows 95, Windows NT 4.0
Remarks
Internet Explorer 7. The CDF (Channel Definition Format) is obsolete and should not be used.
When contained within a DEPENDENCY block, only the HREF attribute is used. If no CODEBASE is specified, Internet Explorer checks the object store for the distribution unit. When used as a child element of a NATIVECODE or JAVA block and no CODEBASE is specified, Internet Explorer checks the current distribution unit for the files to be installed.
Example
This example indicates the location of a software distribution archive.
<IMPLEMENTATION> . . . <CODEBASE HREF="http://www.joyware.tld/rrrrr.cab" /> </IMPLEMENTATION>