Simon
Simon

Reputation: 2035

Modify asp file

I'm using WIX toolset 3.5 to create msi package for installing web site. My web site is asp based and i have configuration in config.asp file. When installing I have dialog window for user to insert server name, database name, user name and password. Then I have to insert(replace) this values into config.asp file. I have several lines like: ConnectionString = "Provider=SQLOLEDB.1; Password=xxx; User ID=user;Initial Catalog=....

What is the best way to do that? I have to parse file some way. Any example? All I have found were how to replace config file in .NET, which is xml based and has different approach.

Thanks

Upvotes: 0

Views: 54

Answers (1)

Christopher Painter
Christopher Painter

Reputation: 55581

If config.asp files aren't true XML that can be processed using XPATH, you'll have to write custom actions to do the updates. FWIW, InstallShield has a "text replacements" feature that is similar to the Xml capabilities but uses search and replace on regular text.

Upvotes: 1

Related Questions