By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,894 Members | 2,161 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,894 IT Pros & Developers. It's quick & easy.

Create DSN in setup

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.