Ive successfully created an ActiveX control that works fine when its in its bare for, as a DLL. It registers fine and displays and runs in a browser. My problem is once I put it in a cab file, and i sign it, it no longer works. I followed a few tutorials on how to sign it and neither of them helped much.
Here is what I have inside the cab:
- Several DLLs that are needed to make it work
- a directory with some images
(all this works fine when not cab'd)
I created an INF file too, here are its contents:
Code:
[Add.Code]
Bump.dll=Bump.dll
Bump.inf=Bump.inf
[Bump.dll]
file=thiscab
clsid={F6C95D36-9B4F-413B-9743-D17285EDE518}
RegisterServer=yes
FileVersion=1,0,0,0
[Bump.inf]
file=thiscab
I used CABARC to create the cab with allocated space for the signing:
> cabarc -s 6144 N bump.cab contents\*
The contents directory holds all my DLLs and images and everything I need.
Here is the processs I took to create and sign the cab file once it was created:
Code:
>makecert -sv "Bump.pvk" -n "CN=My Company" bump.cer
Succeeded
>cert2spc bump.cer bump.spc
Succeeded
>signcode
At this point I used the signcode gui to create the signature.
I dont exactly know what Im doing wrong...
Any help is appreciated.