472,973 Members | 2,367 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,973 software developers and data experts.

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 1746
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Cliff Wells | last post by:
Hi, I'm writing an application that needs to know if an Internet connection is available. Basically, I want to have something similar to what a lot of email clients have, where the app can work...
2
by: Richard L Rosenheim | last post by:
How can I determine which version of MDAC is installed on the machine. I have a program which works on one machine, but not another and I would like to confirm whether or not the two machines have...
4
by: Relaxin | last post by:
I have created assemblies for my application and installed the application on the clients computer. I also installed my assemblies into the GAC. How do I prevent someone else from using "my"...
18
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
5
by: John Hardin | last post by:
All: Is it possible at runtime to determine the names of all classes derived from a given class? -- John Hardin KA7OHZ <johnh@aproposretail.com> Internal Systems...
2
by: Luis Arvayo | last post by:
Actually it is: How to define the plugin assemblies path in order to find other assemblies which the plugin depends on. Example: If I have: c:\myapp\application.exe
4
by: petermichaux | last post by:
Hi, I'm hoping for a reason I'm wrong or an alternate solution... I'd like to be able to dynamically include some javascript files. This is like scriptaculous.js library but their solution is...
3
by: Claudio Pacciarini | last post by:
Hi everyone, I have a question about .NET code sharing and reuse, and also about application design best practices / guidelines. Currently, we have many different .NET projects in source...
2
by: Joerg Toellner | last post by:
Dear Group, i develop an app with MSVC++ 2005 pro. My app should not use any installation. It's only a "packing out the zip and run it"-installation. So i use private assemblies with manifests...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.