The information in this article applies to:
SUMMARY
When using the Visual Basic 5.0 Application Setup Wizard to create an
Internet Component Download Setup for your ActiveX control or ActiveX
document, you may need to modify the CAB file created by the Setup
Wizard.
MORE INFORMATION
For distributing ActiveX components, you may choose to build an Internet
Component Download Setup using the Visual Basic 5 Application Setup Wizard.
In the <OBJECT> tag above, Internet Explorer uses the ID and CLSID to see if the specified control is already installed on the client computer. If it is not already installed or if it out of date, IE uses the CODEBASE argument to locate the ActiveX.CAB file to install the ActiveX control or document. The Contents of a .CAB FileA CAB file contains compressed files that are crucial for installing your ActiveX components. The Setup Wizard places an uncompressed copy of each file it placed into your cabinet file into a directory named "Support," which can be found in the same location as the CAB and HTM files.In all cases, the Setup Wizard will place at least three files in the Support folder: a .DDF file, an ActiveX component file (.EXE, .DLL or .OCX file), and an .INF file.
Extracting the Contents of a CAB FileIn order to extract what is in a cabinet file, you must use the Extract utility. Extract.Exe can be found in your Windows folder or on your Windows 95, Windows 98, or Windows NT installation CD-ROM.Extract.Exe is a command-line utility; therefore it is used from an MS-DOS command prompt. To extract the files within a cabinet file, be sure the Extract.Exe utility is in the MS-DOS Path or copy the Extract utility to the same folder as the cabinet file. From the MS-DOS command prompt, you can run the following command to extract all of the files in a CAB file into the current directory: Extract ActiveX.CAB *.* where "ActiveX.CAB" is the name of your cabinet file. For more information on using the Extract.Exe utility, you may type the following command at an MS-DOS command prompt: Extract /? For even more information on Extract.Exe, please see the ActiveX SDK documentation as referred to in the REFERENCES section of this article. Rebuilding a CAB FileOnce you've extracted the files within a CAB, you can make modifications and then proceed to rebuild the CAB file manually.To rebuild a CAB file, you must use the MakeCab.Exe utility that ships with Visual Basic. The MakeCab utility is installed by default in the following directory: C:\Program Files\DevStudio\Vb\setupkit\kitfil32 It may also be found on your Visual Basic 5.0 installation CD-ROM in the following directory: \VB\Setupkit\Kitfil32 To rebuild the cabinet file, place any modified files and the original .DDF file into a single folder. Also, make sure the MakeCab.Exe utility is in the MS-DOS path or copy it to the same folder as the .DDF. From a command prompt, type the following command: MakeCab /F ActiveX.DDF where "ActiveX.DDF" is the name of your .DDF file. For more information on the MakeCab utility ,you may use the "/?" switch or see the ActiveX SDK documentation as referred to in the REFERENCES section of this article. Notes on Rebuilding Cabinet FilesUsually, it should not be necessary to modify the files within a cabinet file. However, situations may arise where you need to do so. When modifying cabinet files, please use the following guidelines to avoid problems:
REFERENCES
For more information about using the Extract.Exe, MakeCab.Exe, modifying
DDF files or modifying INF files, please see the documentation found in the
"ActiveX Software Development Kit (SDK)." The ActiveX SDK is available for
download from the following location;
http://www.microsoft.com/workshop/misc/activexsdk/ Additional query words: kbVBp500 kbVBp kbdss kbDSupport kbNoKeyWord
Keywords : kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |