468,720 Members | 1,633 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,720 developers. It's quick & easy.

determining whether VC8 C/C++ SxS assemblies are installed.

How do I determine programmatically whether or not the
VC8 C/C++ SxS assemblies currently are installed on a system?

Regards,

Rossetoecioccolato.
Nov 29 '06 #1
4 1544
Bruno,

The problem is that I also need to make this determination remotely so that
I can decide whether or not I need to deploy the full package or not.

Regards,

George.

"Bruno van Dooren [MVP VC++]" <br**********************@hotmail.comschrieb
im Newsbeitrag news:1B**********************************@microsof t.com...
>How do I determine programmatically whether or not the
VC8 C/C++ SxS assemblies currently are installed on a system?

I don't know if there are better ways to do this, but the simple solution
would be to use Reflection to try and load the assembly. If that fails it
is
not installed.
I have done this for native dlls using LoadLibrary, but the principle is
the
same.

--
Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"

Dec 2 '06 #2
The problem is that I also need to make this determination remotely so
that I can decide whether or not I need to deploy the full package or not.
What do you mean with 'remotely'? how does your setup procedure work?
Do you use an MSI file?
Because in that case you could add the expected .NET assemblies to the
prerequisites so that the installer makes this check for you.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Dec 3 '06 #3
Bruno,
What do you mean with 'remotely'? how does your setup procedure work? <
One of the deployment scenarios requires me to deploy the software to the
Admin$ share on the corporate intranet. When I am deploying locally I can
use loadlibrary as you suggest. However, I also need to make the
determination from a remote management station.
Do you use an MSI file?<
No, sorry. For this application that is not possible.

Regards,

George.

"Bruno van Dooren [MVP VC++]" <br**********************@hotmail.comschrieb
im Newsbeitrag news:Oz**************@TK2MSFTNGP02.phx.gbl...
>The problem is that I also need to make this determination remotely so
that I can decide whether or not I need to deploy the full package or
not.

What do you mean with 'remotely'? how does your setup procedure work?
Do you use an MSI file?
Because in that case you could add the expected .NET assemblies to the
prerequisites so that the installer makes this check for you.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"

Dec 4 '06 #4
One of the deployment scenarios requires me to deploy the software to the
Admin$ share on the corporate intranet. When I am deploying locally I can
use loadlibrary as you suggest. However, I also need to make the
determination from a remote management station.
Since you have admin privileges on that machine, I can see at least a couple
of options:
- find out if there is a specific registry value that indicates if the
assembly is installed, then connect to the remote registry and look for this
key.
- write a tool to try to load that assembly from the remote location. might
be more work.
- invoke gacutil remotely via e.g. a batch file, and look for the specific
assembly you need.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Dec 4 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Cliff Wells | last post: by
2 posts views Thread by Richard L Rosenheim | last post: by
4 posts views Thread by Relaxin | last post: by
18 posts views Thread by DartmanX | last post: by
5 posts views Thread by John Hardin | last post: by
3 posts views Thread by Claudio Pacciarini | last post: by
2 posts views Thread by Joerg Toellner | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Oskars | last post: by
9 posts views Thread by bryonone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.