473,569 Members | 2,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

Regards,

Rossetoecioccol ato.
Nov 29 '06 #1
4 1799
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************ **********@hotm ail.comschrieb
im Newsbeitrag news:1B******** *************** ***********@mic rosoft.com...
>How do I determine programmaticall y 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************* *********@hotma il.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************* *********@hotma il.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************ **********@hotm ail.comschrieb
im Newsbeitrag news:Oz******** ******@TK2MSFTN GP02.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************* *********@hotma il.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************* *********@hotma il.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
3625
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 either in "online" or "offline" mode (it keeps a cache of downloaded info, so it can work without a connection if needed). The basic problem is...
2
5955
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 the same version of MDAC installed. TIA, Richard Rosenheim
4
351
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" assemblies in "their" VS.NET development environment for creating "their" own application?
18
8395
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
5
2657
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 Administrator voice: (425) 672-1304 Apropos Retail Management Systems, Inc. fax: (425) 672-0192
2
2715
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
2150
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 broken in Firefox 1.5.0.1 on OS X. What happens with the Scriptaculous library is this In the html document the author only has to include one...
3
2060
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 depot. Although they are different, in some of them we share C# code by referencing source files that are external (not part of the projects) on each...
2
4022
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 and DLLs in the app directory itself. All works fine with MSVC2005 Pro PRE SP1. I packed into my app-zip also the Microsoft.VC80.CRT.manifest...
0
8130
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7677
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
940
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.