描述:
写了一个控件嵌在网页里,在ie6下可以自动升级,但是ie5下不能够自动升级,在ie5下需要将旧版本控件手工删除,重启机器后才能安装新版本控件,一开始怀疑是控件没有下载下来,但是用抓包程序看了一下,发现新版本的控件已经下载下来了,但是不知为什么没有安装成功,我怀疑我的配置文件没有写对,请各位大侠指点一下,另外我们的数字签名已经过期了,不知道这有没有影响;
CAB包里有三个文件MapApplet.ocx,MapApplet.inf,TMapAssets.ttf;
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[DefaultInstall]
CopyFiles=install.files
RegisterOCXs=RegisterFiles
AddReg=AddToRegistry
[RInstallApplicationFiles]
CopyFiles=install.files
RegisterOCXs=RegisterFiles
AddReg=AddToRegistry
[DestinationDirs]
install.files=11
[SourceDisksNames]
1=%DiskName%,MapApplet.CAB,1
[Add.Code]
MapApplet.ocx=MapApplet.ocx
TMapAssets.ttf=TMapAssets.ttf
[install.files]
MapApplet.ocx=MapApplet.ocx
TMapAssets.ttf=TMapAssets.ttf
[SourceDisksFiles]
MapApplet.ocx=1
TMapAssets.ttf=1
[MapApplet.ocx]
file-win32-x86=thiscab
clsid={FCACC1F7-19F3-4A85-92BE-1D024739E7B0}
FileVersion=3,0,0,1
RegisterServer=yes
DestDir=
[TMapAssets.ttf]
file-win32-x86=thiscab
RegisterServer=no
DestDir=
FileVersion=1,0,0,3
[Setup Hooks]
AddToRegHook=AddToRegHook
[AddToRegHook]
InfSection=DefaultInstall2
[DefaultInstall2]
AddReg=AddToRegistry
[AddToRegistry]
HKLM,"SOFTWARE\Classes\CLSID\{FCACC1F7-19F3-4A85-92BE-1D024739E7B0}\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}"
HKLM,"SOFTWARE\Classes\CLSID\{FCACC1F7-19F3-4A85-92BE-1D024739E7B0}\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}"
HKCR,"Licenses",,,"Licensing: Copying the keys may be a violation of established copyrights."
[RegisterFiles]
%11%\MapApplet.ocx

