发布ActiveX问题
我参考了http://doc.readmen.com/4/138049.shtml制作了hw.cab
客户端访问页面时提示是否安装hw.cab选择安装
安装后页面还是无法显示出ActiveX
过程如下:
C:\hw> cabarc.exe -s 6144 N hw.cab HelloWorld.dll HelloWorld.inf
Microsoft (R) Cabinet Tool - Version 1.00
Copyright (c) Microsoft Corp 1996. All rights reserved.
Creating new cabinet 'hw.cab ':
-- adding HelloWorld.dll
-- adding HelloWorld.inf
Completed successfully
C:\hw> setreg 1 true
Updated Software Publishing State Key Values (0x23ca0):
1) Trust the Test Root........................... TRUE
2) Use expiration date on certificates........... TRUE
3) Check the revocation list..................... TRUE
4) Offline revocation server OK (Individual)..... TRUE
5) Offline revocation server OK (Commercial)..... TRUE
6) Java offline revocation server OK (Individual) TRUE
7) Java offline revocation server OK (Commercial) TRUE
8) Invalidate version 1 signed objects........... FALSE
9) Check the revocation list on Time Stamp Signer FALSE
10) Only trust items found in the Trust DB........ FALSE
C:\hw> makecert hw.cer -sv hw.pvk
Succeeded
C:\hw> cert2spc.exe hw.cer hw.spc
Succeeded
C:\hw> signcode.exe
HelloWorld.inf
[version]
signature= "$CHICAGO$ "
AdvancedINF=2.0
[Add.Code]
HelloWorld.dll=HelloWorld.dll
[HelloWorld.dll]
file-win32-x86=thiscab
clsid={9551B223-6188-4387-B293-C7D9D8173E3A}
FileVersion=1,0,0,1
DestDir=11
RegisterServer=yes
------解决方案--------------------1.你cab文件有問題,先在本地測試
2.客戶端權限問題,可加入受信任網址
------解决方案--------------------未经过签名的ActiveX客户端是需要设置安全级别的