This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to escape &(ampersand) in web.config file while installation
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 06, 2011
11:09 PM
How to escape &(ampersand) in web.config file while installation
Dear all,
I am using InstallShield 2009 for package creation.In "web.config" file, character "&"(ampersand) needs to be added to config file after installtion.
But after installtion instead of adding only "&",it is adding as "& amp;" in "web.Config" file.
I am using below Install script for creating connection string for "Web.Config" file,
sSQLConnString = "provider=System.Data.SqlClient;provider connection string="Data Source=devserver;Initial Catalog=PIDMS_SL_MIG_US;Persist Security Info=True;User ID=sa;Password=light$5;MultipleActiveResultSets=True"";
So what is the escape character for "&" while creating web.config file through installation.
I am using InstallShield 2009 for package creation.In "web.config" file, character "&"(ampersand) needs to be added to config file after installtion.
But after installtion instead of adding only "&",it is adding as "& amp;" in "web.Config" file.
I am using below Install script for creating connection string for "Web.Config" file,
sSQLConnString = "provider=System.Data.SqlClient;provider connection string="Data Source=devserver;Initial Catalog=PIDMS_SL_MIG_US;Persist Security Info=True;User ID=sa;Password=light$5;MultipleActiveResultSets=True"";
So what is the escape character for "&" while creating web.config file through installation.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 05, 2011
03:58 PM
I have the same issue with a basic msi, using xml file changes.
I want my connection string to output & and not &
Please reply.
I want my connection string to output & and not &
Please reply.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)