PDA

View Full Version : Registering fussy OCX files



NewsArchive
04-03-1997, 01:00 AM
Registering OCX files can be a problem with IXE when the OCX requires a
dependent DLL. Changing the SWDEPEND.INI file doesn't always work. For
example, I could not get IXE to properly register Olectra Chart's
OLCH2X32.OCX (which requires OLCH2D32.DLL). However, I have found a
relatively simple work-around solution. I wrote a small VB program that
uses the SHELL command to register files using REGOCX.EXE supplied with
VB4. I inserted the program into IXE's file list and activate it as an IXE
extension towards the end of the IXE setup process. This has proved quite
satisfactory for insuring proper OCX registration.
Charles Corrado
Finance Department
University of Missouri

NewsArchive
04-09-1997, 12:00 AM
Thank you for your information. I will pass this on to other Support
people and
the Developers.

Kent
InstallShield Technical Support

CORRADO <corrado@bpa.missouri.edu> wrote in article
<01bc3fe8$b5c6d2c0$c6cdce80@MU.missouri.edu>...
> Registering OCX files can be a problem with IXE when the OCX requires a
> dependent DLL. Changing the SWDEPEND.INI file doesn't always work. For
> example, I could not get IXE to properly register Olectra Chart's
> OLCH2X32.OCX (which requires OLCH2D32.DLL). However, I have found a
> relatively simple work-around solution. I wrote a small VB program that
> uses the SHELL command to register files using REGOCX.EXE supplied with
> VB4. I inserted the program into IXE's file list and activate it as an
IXE
> extension towards the end of the IXE setup process. This has proved quite
> satisfactory for insuring proper OCX registration.
> Charles Corrado
> Finance Department
> University of Missouri
>

NewsArchive
04-09-1997, 12:00 AM
Something else that you can do is to set up REGSVR32.EXE which usually
lives in the system directory as an ISX extension, and provide the
following command line parms:
/s - tell regsvr32.exe to do its work in silent mode (no popups)
<OCX name> the name of the ocx to register.

in this manner, you ISX extension is: REGSVR32.EXE /s myocx.ocx

if a dependency exits, simply register that DLL first:
REGSVR32.EXE /s mydependency.dll
REGSVR32.EXE /s myocx.dll

the only caveat to this method (that I am aware of) is that you need to set
up this extension to be executed after you are sure that the files you are
working with have been installed on the taret system... also this method
assumes that the ocx is going into somewhere accessible via the systems
paths, otherwise you need to be explicit about its location.


In the example below, I suppose you could also just use the REGOCX.EXE file
that Charles was referring to... I don't see a need to include a VB
wrapper.

Mike
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mike Quetel mquetel@geonorth.com
Sr. GIS Analyst/Programmer http://www.geonorth.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GeoNorth, Inc. (503) 827-0827 - Voice
921 SW Washington, Suite 316 (503) 827-0735 - FAX
Portland, OR 97205 (800) 290-2292 - Anchorage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


kent foyer <support@installshield.com> wrote in article
<01bc44f1$80381f20$4ac7c5d0@kentfoyer.installshield.com>...
> Thank you for your information. I will pass this on to other Support
> people and
> the Developers.
>
> Kent
> InstallShield Technical Support
>
> CORRADO <corrado@bpa.missouri.edu> wrote in article
> <01bc3fe8$b5c6d2c0$c6cdce80@MU.missouri.edu>...
> > Registering OCX files can be a problem with IXE when the OCX requires a
> > dependent DLL. Changing the SWDEPEND.INI file doesn't always work. For
> > example, I could not get IXE to properly register Olectra Chart's
> > OLCH2X32.OCX (which requires OLCH2D32.DLL). However, I have found a
> > relatively simple work-around solution. I wrote a small VB program that
> > uses the SHELL command to register files using REGOCX.EXE supplied with
> > VB4. I inserted the program into IXE's file list and activate it as an
> IXE
> > extension towards the end of the IXE setup process. This has proved
quite
> > satisfactory for insuring proper OCX registration.
> > Charles Corrado
> > Finance Department
> > University of Missouri
> >
>

NewsArchive
04-12-1997, 12:00 AM
I didn't know that regsvr32.exe had a windows handle or a silent switch
property. I'll check it out as it is a more elegant solution.
Thanks
Charles Corrado

P.S. Is this documented somewhere?