473,797 Members | 2,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.d ll)

peratingSystem os = System.Environm ent.OSVersion;

System.Reflecti on.Assembly ADODB_Assembly = null;

if ((os.Platform == PlatformID.Win3 2NT) && (os.Version.Maj or ==
6))
{
ADODB_Assembly =
System.Reflecti on.Assembly.Loa d("interop.adod b.dll");
}
else
{
ADODB_Assembly = System.Reflecti on.Assembly.Loa d("adodb.dll" );
}

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

Object conn = Convert.ChangeT ype(obj, type);

System.Reflecti on.PropertyInfo ProviderInfo =
type.GetPropert y("Provider") ;
System.Reflecti on.PropertyInfo ConnectionStrin gInfo =
type.GetPropert y("ConnectionSt ring");

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

Sep 13 '07 #1
0 1078

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

Similar topics

2
600
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 done in C# Class library project In this .dll I am used the following COM components,
4
3539
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 objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
0
3062
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 objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
8
2613
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 ManufacturerUrl ARPURLINFOABOUT URL for an application's home page. ARPURLUPDATEINFO URL for application-update info. Where are they hiding?
10
3029
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 "HrCustomProvider" I know I need to use <Exec Command='aspnet_regiis.exe -pef "connectionStrings" ..\ -prov "HrCustomProvider"' /> but I cant get it to work.
7
3432
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 vb.net on a Vista pc? Is it compatible or does the replacement computer need to have XP on it? Does the .net framework 1.1 work OK on Vista?
3
3952
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
1741
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 Windows. Everything works jus fine under XP, including the COM components self-registration. But when the deployment msi or setup.exe are run under Vista (Business Ed), the self-registration fails with an Authorities error - even when I hae the...
1
8147
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 file and itself into the exe. You would probably want a tool for this bit which could be in the zip too. So the app isnt single exe when running but when not running, it is. Just an idea for you to think about. Another option would possibly be to...
0
10245
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10205
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7559
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5458
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2933
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.