473,698 Members | 2,132 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create DSN in setup

How can I get the deployment project to setup a DSN pointing to an Access DB
after installation takes place?

Also, is there a way to kick off a vbs script after installation takes place
through the deployment project?

TIA
Brian
Jul 21 '05 #1
3 3162
I think you'll find that the answer is the same as the one I was given by
DesignedForDotN et a couple of threads ago in "How to set up .exe.config
during installation"

"McCool" wrote:
How can I get the deployment project to setup a DSN pointing to an Access DB
after installation takes place?

Also, is there a way to kick off a vbs script after installation takes place
through the deployment project?

TIA
Brian

Jul 21 '05 #2
I'm not having any problems reading my config file, which is where the name
of the DSN is. I would like to install my new app to another computer and
have the setup routine create a new system dsn for my application. I was
hoping that there was something in VS.Net that would do this for me.

I have a VBS script that will do this so figuring out how to get the setup
program to run a script after installation would be nice...

"policywatc her" wrote:
I think you'll find that the answer is the same as the one I was given by
DesignedForDotN et a couple of threads ago in "How to set up .exe.config
during installation"

"McCool" wrote:
How can I get the deployment project to setup a DSN pointing to an Access DB
after installation takes place?

Also, is there a way to kick off a vbs script after installation takes place
through the deployment project?

TIA
Brian

Jul 21 '05 #3
http://www.thescarms.com/vbasic/CreateDSN.aspMy apologies - I get somewhat
terse in the evenings.

What I meant is that you will have to create an installation helper DLL, as
described in that response, and have it create the DSN for you.

However, I think you may be able to create the DSN with the installer's own
registry handling.

Either way, something that looks like a relevant article on programmaticall y
creating System DSN entries is here:
http://www.thescarms.com/vbasic/CreateDSN.asp

Forgive me if I'm still answering the questions incompletely - it's been a
very long day.

"McCool" wrote:
I'm not having any problems reading my config file, which is where the name
of the DSN is. I would like to install my new app to another computer and
have the setup routine create a new system dsn for my application. I was
hoping that there was something in VS.Net that would do this for me.

I have a VBS script that will do this so figuring out how to get the setup
program to run a script after installation would be nice...

"policywatc her" wrote:
I think you'll find that the answer is the same as the one I was given by
DesignedForDotN et a couple of threads ago in "How to set up .exe.config
during installation"

"McCool" wrote:
How can I get the deployment project to setup a DSN pointing to an Access DB
after installation takes place?

Also, is there a way to kick off a vbs script after installation takes place
through the deployment project?

TIA
Brian

Jul 21 '05 #4

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

Similar topics

5
3052
by: lkrubner | last post by:
I have a webserver through Rackspace. I create a domain. I create an FTP user. I upload some files. I create a database called testOfSetupScript and then I create a database user named setup. I write some PHP code which should, I think, be able to to auto create the tables. The SQL looks like this:
1
2293
by: Tom | last post by:
I created an msi using the Setup Wizard, but don't seem to be able to create a shortcut to the applicaton on the desktop (or prompt for one) or the menu. Also, I would like to add an "uninstall" to this, but don't see that it allows for this? Am I missing something?
2
6831
by: Sarah | last post by:
hi, how can u make an executable that also has the .dll files? i was told to try: 1) Create your Windows/Asp application. 2) Create a setup project/web setup project in the same solution as ur Windows/Asp application. 3) Build the setup project you will get a setup file for the application you have done.
2
1962
by: Mickey | last post by:
When I try to create a new web application in VS Studio .NET 2003 at a simple default location eg: http://localhost/WebApplication1 I get the following error: Visual Studio .NET cannot create or open the application. The likeliest problem is that required components are not installed on the local Web Server. Run Visual Studio .NET setup and add the Web Development component. Now in IIS6 my default website points at c:\websites which...
4
4414
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create shortcut to my program/utility (2) Entry in Windows' Start --> Program Menu. Actually in my VB.Net solution I have two projects (1) MYPROGRAM (2) MYPROGRAM_INSTALLER. MYPROGRAM is a "Windows Application". MYPROGRAM_INSTALLER is a "SetUp Wizard"...
7
4040
by: Terry Holland | last post by:
I have just created my first asp.net application and I am ready to deploy. The solution consists of the following: A single asp.net assembly to be deployed to web server A number of vb.net assemblies to be deployed to application server. Some of these assemblies will be shared by future applications. There is also a SQL Server DB that I need to install onto live server. The only way I have deployed asp.net app before is to copy my...
1
1305
by: MrTea | last post by:
Hi Folks Hopefully a simple question... Using Visual Studio 2005, what is the easiest way to create a setup for my Windows Forms App that can copy a large number of required PDF files to the installation directory when the setup is executed. I have tried manually adding the PDFs to the Setup Project but it then takes absolutely ages to build.
3
3947
by: sanghavi | last post by:
how to create a set up project in vb.net..how to run an application on a different machine
1
3140
by: Claire | last post by:
Ive written a small string resource building utility that I send out to our translators. I have a setup project for each language we support, which picks out a group of 12 english resx files plus their paired "foreign" resx for that language only and installs those resource files in a subdirectory somewhere. I'm trying to create a setup project in visual studio 2008. Ive got my Application Folder set up with my executable. Im now...
0
8672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8600
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8892
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
8860
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
6518
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
4361
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...
1
3038
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
3
1998
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.