modifying web.config from msi package

  • Thread starter Thread starter Oleg Medyanik
  • Start date Start date
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.
 
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.
 
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.
 
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))
 
Back
Top