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
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