From: christopher.e.reynolds on
I am wondering if there is a way to deploy an MFC ActiveX control via
the web to devices running Windows CE. My inf file which I referenced
with CabWiz while generating the cab file is below. In my HTML page,
I use an Object tag to reference the control. My object tag looks
like this (where classid is the real classid, and the codebase url is
a real location for the cab file):

<object id="ActiveXControlName" classid="clsid:
00000000-0000-0000-0000-000000000000" codebase="http://LocationOf/
ActiveXControlNameInstall.cab#version=1,0,0,0">
</object>

We can assume that the site the web page resides on is a trusted site
in the user's browser, and that unsigned ActiveX control will result
in a prompt.

Basically, if the ActiveX control is not registered on the Windows CE
device, I would like user to be prompted to install the cab file on
each page visit. If the ActiveX control is registered on the device,
but the version number of the registered control is older than the
version number specified in the codebase, I would like the user to be
prompted to update the control by installing the cab file. If the
ActiveX control is registered on the device, and the version number of
the registered control is the same or newer than the version number
specified in the codebase, the control will render as normal. Here is
my inf file, with the Provider and AppName fields changed to fake
values:

[Version]
Signature = "$Windows NT$"
Provider = "CompanyName"
CESignature = "$Windows CE$"

[CEStrings]
AppName="ActiveXControlName"
InstallDir=%CE2%\

[Strings]
sh3_cpu = 10003
sh4_cpu = 10005
mips_cpu = 4000
strongarm_cpu = 2577
armcpu = 1824

[CEDevice] ; valid for Windows CE 4.1 - 5.0
VersionMin = 4.1
VersionMax = 5.0

[DefaultInstall]
CopyFiles = Files.Windows
CESelfRegister = ActiveXControlName.ocx

[SourceDisksNames]
1 = ,"Common files",,.

[SourceDisksFiles]
ActiveXControlName.ocx = 1

[DestinationDirs]
Files.Windows = 0,%CE2% ;\Windows

[Files.Windows]
ActiveXControlName.ocx,,,