place the connectionstring in App.config file , you can change it after installation
<connectionstring>
<add key="constring" connectionstring="Data Source=(local); Initial Catalog=db; Integrated Security=true;" />
</connectionstring>
use this code to retrieve the connection string
SqlConnection con=new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["EmisConn"].ConnectionString);