modifying web.config from msi package

O

Oleg Medyanik

Hello, All

I've creating setup for ASP.NET WEB Application.
During setup phase a database is also created (DB Server, DB Name are input
by user)

How can i modify the web.config file (and other configs)
from my msi package so that they point to the newly created database?

Are there any links to walkthrough?

Thank you in advance.
 
K

Kallely Sajan

You have to write a custom action to do it. Open the .config file as an xml
file and update it.

--

Regards,
Sajan.

PS: Please don't send me direct emails, use the newsroom.
 
P

Phil Wilson

I wish MS would add support for this in the database tables, in the same
general way as the ini file tables. .NET XML config files are getting very
common.
 
O

Oleg Medyanik

Thanks, Sajan
I wrote custom action using [TARGETDIR]. and System.Xml classes

But I thought there is a simplier way to do this job. ))
..config files are used almost everywhere in NET.
And I thought that i just have not found where to make several clicks))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top