Try to put your connectionstring in a config - file. This way you'll be able to edit it specifically for the machine you want to install it on.
In you config- file it should look a bit like
<connectionStrings>
<add name="nameconnstring" connectionString="connstring" providerName="System.Data.SqlClient">
</connectionStrings>
I think.
In your program you'll have to reference the system.configuration library. After that you can retrieve the whole connectionstring with:
static String ConnectionString = ConfigurationManager.ConnectionStrings[<name or index>].ToString();
Hope this helps, jens