Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Registering an ocx file.

0 views
Skip to first unread message

sarfu

unread,
Sep 10, 2007, 8:25:51 AM9/10/07
to
Hi all,
I need to register an ocx file after the installation.
I used to do it in the following way.

Create a CA of type 32.
Working Dir as [SystemFolder].
FileName and Commandline as : [SystemFolder]Regsvr32 /s
"[INSTALLDIR]abc.ocx"
and InstallExeSeq after InstallFinalize.

With this the installer registers my ocx file perfectly.

I know there is COM registration in advanced settings under components.
( InstallShield 12)
I was just wondering can i make use of this to register my ocx file
instead of CA? If yes
When i say new com class, it is providing me with new guid value which
doesnt match the guid of ClassId. Here i am bit confused.
Can i make use of Com Registratin utility for registration instead of
doing it through CA?
If yes, please share me some links where i can find help on this.
Thanks and regards
Sarfu

Richard [Microsoft Windows Installer MVP]

unread,
Sep 10, 2007, 12:14:20 PM9/10/07
to
[Please do not mail me a copy of your followup]

sarfu <biradar...@gmail.com> spake the secret code
<1189427151.6...@o80g2000hse.googlegroups.com> thusly:

>I need to register an ocx file after the installation.

Use the COM/Registry tables to do this. DO NOT USE A CUSTOM ACTION.
Its not robust.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>

Christopher Painter

unread,
Sep 10, 2007, 4:58:37 PM9/10/07
to
In the file view of the component, set your OCX to keyfile and then
right-click COM Extract data. Now look at the advanced view and you
should see the Prog/ClassID's already defined for you. ( Assuming the
COM extraction worked correctly... this can be a tricky area. )


sarfu

unread,
Sep 11, 2007, 9:43:36 AM9/11/07
to
Thanks Christopher and Richard.
It really did work.
Regards
Sarfu


0 new messages