Microsoft KB Archive/175505
PRB: Dialog Box Displayed When Downloading .cab File with IE3
The information in this article applies to:
- Microsoft Internet Explorer (Programming) versions 3.0, 3.01, 3.02
When you attempt to download a .cab file to using the CODEBASE tag on a Web page in Internet Explorer 3.x, a dialog box appears that asks you to specify the location of a file.
This can occur for one of two reasons.
- The .inf file marked read-only inside the .cab file.
- You are downloading to a Windows 95 platform and the .cab file contains an .inf file that was created for use with a Setup application. These Setup applications are typically run from a setup disk or CD-ROM.
Set the .inf file for read-write access and re-cab the file using Cabarc.exe. See Solution 1 below for more information.
Rewrite the .inf file with code download syntax. See Solution 2 below for more information.
This behavior is by design.
To set your .inf file for read-write access, perform the following steps:
- Go to a Command prompt
- Create a new directory. Copy your .cab file into this new directory.
Use the CABARC utility to extract the files from the .cab file. The CABARC utility is included in CABSDK. The CABSDK is included with the ActiveX SDK and the Internet Client SDK. If you are using Internet Explorer 3.x, use the CABARC utility that is included with the ActiveX SDK. If you are using Internet Explorer 4.x, use the CABARC utility that is included with the Internet Client SDK.
For example, if your .cab file was named Yourcab.cab, use the following command:
cabarc X yourcab.cab
This will extract the contents of the .cab file to the current directory.
Remove the Read-only attribute from your .inf file using the following command:
attrib -r *.*
Re-create the .cab file using this command-line string:
cabarc -s 6144 N yourcab.cab yourfiles
where yourfiles are those files extracted from the .cab file in Step 3.
To determine if the .inf file in your .cab file was created for use in a setup application, search for the phrase "Add.Code". If this phrase is not present in the .inf file, then the file was not built for use in a setup application.
For information about building an .inf file in the code download format, please refer to the Internet Client SDK documentation regarding the packaging of ActiveX controls in the following chapter: Component Development\ActiveX Controls\Packaging ActiveX Controls.
If you are packaging an ActiveX control that was created using Visual Basic, use the Application Setup Wizard and choose the "Create Internet Download Setup" option.
For more information on developing Web-based solutions for Internet Explorer, please see the following Web sites:
Additional query words: inf cab setup InetSDK dialog
Issue type : kbprb
Technology : kbIEsearch kbAudDeveloper kbSDKIESearch kbSDKIE300 kbSDKIE301 kbSDKIE302
Last Reviewed: May 5, 1999