Brainchild
Brainchild

Reputation: 1884

How to make IE to install updated CAB File

HI

My web page is hoting an ActiveX Contol packed in a CAB File. IE is automatically installing the CAB file, if the ActiveX is not present on the client machine.

waht are steps i need to make sure.

So that the client should always have the updated ActiveX control, if the web application has a new version of the activex control.

Thanking you.

Upvotes: 1

Views: 2749

Answers (1)

Eugene
Eugene

Reputation: 3427

Build new ActiveX control with increased version number. If previous was 1,0,0,0, the next could be 1,1,0,0, for example.

Modify inf file with new version number

[Foo.ocx]
  file-win32-x86=thiscab
  clsid={F00F00F0-0F00-F00F-00F0-0F00F00F00F0}
  FileVersion=1,1,0,0

Repack CAB file and place it to your server.

Update version number in your page:

<object id="foo" style="DISPLAY: none" codebase="foo.cab#version=1,1,0,0"
        height="10" width="10"
        classid="CLSID:F00F00F0-0F00-F00F-00F0-0F00F00F00F0">
</object>

Upvotes: 1

Related Questions