473,406 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 1782
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.