PRB: Dialog Box Displayed When Downloading .cab File with IE3

ID: Q175505


The information in this article applies to:


SYMPTOMS

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.


CAUSE

This can occur for one of two reasons.


RESOLUTION

Set the .inf file for read-write access and re-cab the file using Cabarc.exe. See Solution 1 below for more information.

-or-

Rewrite the .inf file with code download syntax. See Solution 2 below for more information.


STATUS

This behavior is by design.


MORE INFORMATION

Solution 1



To set your .inf file for read-write access, perform the following steps:

  1. Go to a Command prompt


  2. Create a new directory. Copy your .cab file into this new directory.


  3. 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.


  4. Remove the Read-only attribute from your .inf file using the following command:
    
    attrib -r *.* 


  5. 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.

Solution 2

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.


REFERENCES

For more information, please see the MSDN Web Workshop:

http://msdn.microsoft.com/workshop/default.asp

Additional query words: inf cab setup InetSDK dialog


Keywords          : AXSDKCompDownload 
Version           : WINDOWS:3.0,3.01,3.02
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 3, 1999