再次请教CAB包的制作和WEB的调用
大家好:
目前做了个OCX控件,被WEB调用启动EXE。手动注册OCX运行一切正常,可返注册后,用WEB下载调用的方法就下载不到CAB包,但用,CODEBASE的地址在IE里是可以下载包的。请大家帮忙一下。
谢谢wewaa(阿尔博特)兄弟之前提供的很多资料,可问题还没有解决,再次请大家帮忙一下
cab包的inf如下,用iexpress把文件打成CAB包。
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[DestinationDirs]
install.files=11
[Add.Code]
OCX.ocx=OCX.ocx
YYTEXE.exe=YYTEXE.exe
audio.dll=audio.dll
config.inf=config.inf
mmcode.dll=mmcode.dll
PhoneAPI.dll=PhoneAPI.dll
USBPhone.dll=USBPhone.dll
video.dll=video.dll
videox.dll=videox.dll
xframe.dll=xframe.dll
[OCX.ocx]
file-win32-x86=thiscab
clsid={C318AB91-9653-4F1D-A6FF-EED42F5A17CC}
FileVersion=1,0,0,0
RegisterServer=yes
DestDir=11
[YYTEXE.exe]
file-win32-x86=thiscab
FileVersion=1,0,0,0
RegisterServer=no
[audio.dll]
file-win32-x86=thiscab
FileVersion=1,0,0,0
RegisterServer=yes
[config.inf]
file-win32-x86=thiscab
FileVersion=1,0,0,0
RegisterServer=yes
[mmcode.dll]
file-win32-x86=thiscab
FileVersion=1,0,0,0
RegisterServer=yes
[PhoneAPI.dll]
file-win32-x86=thiscab
FileVersion=1,0,0,0
RegisterServer=yes
[USBPhone.dll]
file-win32-x86=thiscab
FileVersion=1,0,0,0
RegisterServer=yes
[videox.dll]
file-win32-x86=thiscab
FileVersion=1,0,0,0
RegisterServer=yes
[xframe.dll]
file-win32-x86=thiscab
FileVersion=1,0,0,0
RegisterServer=yes
[RegisterFiles]
%11%\OCX.ocx
调用如下
<object classid="clsid:C318AB91-9653-4F1D-A6FF-EED42F5A17CC" codebase="http:\\127.0.0.1\OCX.cab" id="Headcall" width="1" height="1" ></object>
<script type="text/javascript">
<script language="javascript">
Headcall.dial("83380000061");
window.opener=null;window.close();
</script>
[解决办法]
用CB的Projet-web dependencies按提示自动打包发布