473,378 Members | 1,078 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,378 software developers and data experts.

How to create a deployment project compatible with both XP and Vista?

My application uses the ADODB.DLL on Windows XP, but when using
Windows Vista, this DLL doesn't exist because it's called MSADO.DLL.

How can I have multiple assembly versions on the same installer so it
chooses the right version (depending on the OS version)?

Now I'm using this code (just a detail: I generated an interop for
msado.dll, called interop.adodb.dll)

peratingSystem os = System.Environment.OSVersion;

System.Reflection.Assembly ADODB_Assembly = null;

if ((os.Platform == PlatformID.Win32NT) && (os.Version.Major ==
6))
{
ADODB_Assembly =
System.Reflection.Assembly.Load("interop.adodb.dll ");
}
else
{
ADODB_Assembly = System.Reflection.Assembly.Load("adodb.dll");
}

Type type = ADODB_Assembly.GetType("ADODB.Connection");

Object conn = Convert.ChangeType(obj, type);

System.Reflection.PropertyInfo ProviderInfo =
type.GetProperty("Provider");
System.Reflection.PropertyInfo ConnectionStringInfo =
type.GetProperty("ConnectionString");

But I receive an exception telling that it's searching for these DLLs
on C:\Windows\System32 when it must be at the application directory.

Sep 13 '07 #1
0 1058

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ksskumar | last post by:
Hi Friends, My software's target is to creating a add-in for Outlook. I am struckup of creating deployment of my software. My software flow is as follows, 1. Complete functionality is...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
0
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
8
by: BobAchgill | last post by:
I have looked and looked for on the property pages for my Window form project and do not see where they are saying I should find the place to set deployment properties like: Manufacturer...
10
by: =?Utf-8?B?Q2h1Y2sgUA==?= | last post by:
In a web deployment project I want to encrypt the connection strings. I use to do this with a batch file with something like this. aspnet_regiis.exe -pef "connectionStrings" ..\ -prov...
7
by: =?Utf-8?B?RGF2aWRBdmlzb2Z0?= | last post by:
I support some legacy applications and use both VB6 and VB7 (.net) development environments on a Windows XP computer. The machine is due for replacement. The question is - can I install vb6 and...
3
by: sanghavi | last post by:
how to create a set up project in vb.net..how to run an application on a different machine
5
by: Geoff Blood | last post by:
Using Visual Studio 2005 I have VB project that produces a program that is to be deployed using a VS2005 deployment project. There are some legacy COM components that need to be registered with...
1
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.