CODEBASE element
Specifies the location of the file or distribution unit to be installed.
Usage
<CODEBASE
FILENAME = "file"
HREF = "url"
SIZE = "n"
STYLE = "sMechanism"/>
Attributes
Attribute | Type | Required | Description |
---|---|---|---|
FILENAME |
file |
No |
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 OSD file. |
HREF |
url |
No |
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. CDF supports only HTTP, HTTPS, and FTP protocols. If a different protocol is used, Internet Explorer will fail to install the file or distribution unit without notifying the user.
|
SIZE |
n |
No |
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 |
sMechanism |
No |
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. ActiveSetup Uses the ActiveX "Active Setup" engine. MSICD Uses the MSICD to download distribution units and look at the OSD file for processing instructions. To use Internet Explorer 3.0 processing procedures, the distribution unit can contain an .inf file. |
Child elements
There are no child elements.
Parent elements
Element |
---|
Remarks
Windows 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.
Examples
This example indicates the location of a software distribution archive.
<IMPLEMENTATION>
.
.
.
<CODEBASE HREF="http://www.joyware.tld/rrrrr.cab" />
</IMPLEMENTATION>
Element information
Minimum supported system |
Windows XP |
Can be empty | Yes |