Create CAB file for ActiveX installation for IE

只愿长相守 提交于 2019-12-01 04:42:13
  1. It seems to me you are packing msi installer instead of ActiveX control.
  2. When you extract your control from MSI installer and pack it into CAB, don’t forget to add it’s version to the INF file.

Hope it helps…

Packaging ActiveX Controls

VS 2008 provides an excellent CAB Project. You can find it under Other project types / Setup and deployment / CAB project.

For simple CAB projects you just need to add your component project output.

If you need also to sign your CAB you must edit project properties adding the post build signtool.exe command, but once you are able to sign the component via cmd line you just need to copy the command line to post build event. Using $(ProjectDir) macro may help to generalize the process for automated build.

It looks like my .inf was off. Here is what worked for me:

[version]
Signature="$CHICAGO$"
AdvancedINF=2.0

[Setup Hooks]
hook1=hook1

[hook1]
run=msiexec.exe /i "%EXTRACT_DIR%\MySetup.msi" /qn

To make the cab:

CABARC.EXE N MyActiveX.cab MySetup.msi setup.inf
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!