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

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 3143
I think you'll find that the answer is the same as the one I was given by
DesignedForDotNet 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...

"policywatcher" wrote:
I think you'll find that the answer is the same as the one I was given by
DesignedForDotNet 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 programmatically
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...

"policywatcher" wrote:
I think you'll find that the answer is the same as the one I was given by
DesignedForDotNet 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
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...
1
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"...
2
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...
2
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...
4
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...
7
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...
1
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...
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
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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,...

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.