how can i test if all the needed activex are properly installed?

  • Thread starter Thread starter Elp
  • Start date Start date
E

Elp

Hi,

my Window Form application uses several activex controls such as the flash
activex, webbrowser control or the Windows Media player 9 activex. If one of
these controls has not been properly installed, the constructor of my main
form, which hosts all these control, throws a cryptic exception about COM
problems which is totally meaningless even for a programmer.

What i'd like to do is test individually, at the application startup, if
each needed activex has been properly installed. That would let me the
possibility to let the user know which component has to be reinstalled
instead of just saying: "some required components have not been properly
installed".

I've not been able to figure out how to do that so far. Does anuybody have
an idea?

Thanks
 
* "Elp said:
my Window Form application uses several activex controls such as the flash
activex, webbrowser control or the Windows Media player 9 activex. If one of
these controls has not been properly installed, the constructor of my main
form, which hosts all these control, throws a cryptic exception about COM
problems which is totally meaningless even for a programmer.

What i'd like to do is test individually, at the application startup, if
each needed activex has been properly installed. That would let me the
possibility to let the user know which component has to be reinstalled
instead of just saying: "some required components have not been properly
installed".

Add a setup project that installs all the components.
 
Herfried K. Wagner said:
Add a setup project that installs all the components.

Thanks for the suggestion but my setup program already does that. My problem
is not to check if those activex are installed but to check if they are
*properly* installed.

Example: my application embedds the Windows Media Player 9 activex. My setup
program has detected that WMP 9 was not installed and installed it.
Everything worked fine. Then i installed another software (not mine) that
manage to corrupt my WMP 9 installation. As a result, my application thrown
an exception when trying to load the WMP 9 activex although WMP 9 was still
installed.

Do you see better what i want to do? I'd like to find a way to see, for each
of the embedded activex controls, if they load OK or not. The problem being
that they are created in the Automatically generated designer code and i
just can't add my exception handling in this code. So all that i can do at
the moment is catch the general exception that just tells me that something
wrong happened with one of the activex but that doesn't tell me which one
failed.
 
Back
Top