Assuming that the run-time exports public classes that you would use if it
is installed, you can dynamiclly try to load the assembly (see
Assembly.Load).
Then you could use reflection (see System.Reflection and reflection) to work
with the public classes in that assembly.
if the assembly.Load method fails, you know that the run-time is not
installed.
this article covers what you want for C#, but you can use the same
techniques for managed C++
http://www.codeproject.com/csharp/introreflection.asp
kind regards,
Bruno.
"benoit laude" <be*********@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com...
it was not what I want.
some user doesn't have the runtime installed and doesn't want it.
so I must customised my application to
- detect if the runtime is installed => How can I detect it?
- use or not the functions of the runtime.
Benoit.
"Bruno van Dooren" wrote:
Hi,
if you create an installer for your application, you can add components
that
your application depends upon. you can add these as merge modules. When
your
application is installed, the installer will check if those components
(like
for example the .NET framework itself) are installed, and only install
them
if they aren't.
you can create a merge module for that runtime you mentioned, and add
that
to your installer.
kind regards,
Bruno.
"benoit laude" <be*********@discussions.microsoft.com> wrote in message
news:65**********************************@microsof t.com... >
> hi,
>
> I work on a windows application. It uses component of a runtime. The
> runtime
> is a cartographic runtime developpped in .net.
> The problem is that some user doesn't have the runtime installed. Is it
> possible to detect it during the execution of my program?
>
> Benoit.