 |
 |

04-25-2012, 05:42 AM
|
 |
Junior Contributor
|
|
Join Date: Feb 2003
Location: Northumberland, England
Posts: 236
|
|
signing an .ocx
|
can anyone help,
i have a .ocx file that i need to digitally sign using a certificate i have created.
i have tried to use the signtool.exe but this keeps giving me error:
signtool error: No certificates were found that met all the given criteria.
i only have the one certificate and ran the cmd:
signtool sign /a myocx.ocx
any advice would be great.
thanks.
|
__________________
Were all going to heaven lads, wey heyy.....
|

04-26-2012, 03:31 AM
|
 |
Junior Contributor
|
|
Join Date: Feb 2003
Location: Northumberland, England
Posts: 236
|
|
|
Ok, so now i have correctly signed the .ocx file.
I have created an internet installer .cab file through package and deploy that has the .ocx to run, as part of the creation P&D created a .htm file that had the code to run the cab file.
i have run this on another PC and it correctly registers and loads up the .ocx, however, when running it on another PC nothing happens, just a clear square box in the top left corner. i get no objections about running the files etc as i have made sure that the PC can run activex etc.
any advice would be great.
thanks.
|
__________________
Were all going to heaven lads, wey heyy.....
|

04-26-2012, 08:48 AM
|
 |
Multi-Technologist
Super Moderator * Expert *
|
|
Join Date: May 2004
Location: Michigan
Posts: 3,751
|
|
Quote:
Originally Posted by icampbell
i have run this on another PC and it correctly registers and loads up the .ocx, however, when running it on another PC nothing happens, just a clear square box in the top left corner.
|
If I understand correctly, you have signed the file on one PC and tried it on two other PCs... one works and the other does not? If that is true, what OS and Service Pack are on all 3 PCs involved? Using an htm to run a cab seems like it could be problematic on some platforms. Perhaps using some form of Reg-Free will help: http://mmm4vb6.atom5.com/
|
__________________
"May the code that you write never work in ways that you didn't expect; and may the code that you didn't write never require you to maintain it". - Ancient Chinese Proverb
|

04-26-2012, 10:41 AM
|
 |
Underclocked lifestyle
Forum Leader * Guru *
|
|
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,193
|
|
|
With so little useful information provided all we can do is take shots in the dark.
So far all we know is you "have an OCX" (er, who created it?) and you have signed it and packaged it as a CAB file. It sounds as if the control (or controls) in this OCX seem to work with the test HTM built by the PDW. Or at least on some machines ("another and not another" whatever that means).
It is important to know other things though, such as whether or not the controls in this OCX implement the "Safe For Scripting" interface and whether or not they are aggregations of other licensed controls. In the latter case you will also need to build and deploy .LPK (license package) files, generally a different one customized for each HTML page hosting your controls.
I'd hazard a guess that you created this OCX, it does aggregate licensed controls, and the machines where it works have VB6 design-time licenses installed (i.e. they have VB6 installed). Your VB6 product CDs should have LPKTool.exe, or you can probably still download it from Microsoft.
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
|
|
 |
|