Create CAB file for ActiveX installation for IE

后端 未结 3 858
萌比男神i
萌比男神i 2021-01-12 20:25

I created a cab file that contains my activex using CABARC.exe. I also created an .inf file. My inf file looks like this:

[version]
    signature=\"$CHICAGO$         


        
相关标签:
3条回答
  • 2021-01-12 20:59

    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.

    0 讨论(0)
  • 2021-01-12 21:05

    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
    
    0 讨论(0)
  • 2021-01-12 21:12
    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

    0 讨论(0)
提交回复
热议问题