By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,905 Members | 1,616 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,905 IT Pros & Developers. It's quick & easy.

detection of the installation of a runtime

P: n/a

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.
Jan 20 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.

Jan 20 '06 #2

P: n/a
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.


Jan 20 '06 #3

P: n/a
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.


Jan 20 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.