Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I m trying to make a Setup project for winForms Application, How to attach path of Database, when I execute exe file connection string will not be change.

Is any body has solution ??????
Posted

Do you mean you are distributing a database file with your application? Then the path is relative to the application.
 
Share this answer
 
Is it a standard windows setup project?

If so you have to use one of the inbuilt variables to get your relative location or have a field that gets filled in by the user when they install. You can assign a variable/name to the field and use this variable in a custom action to modify the config file where you store your database connection string.

Google for "setup and deployment" and you'll get links like

http://msdn.microsoft.com/en-us/library/ms235317%28VS.80%29.aspx[^]

Maybe a setup and deploy tutorial like http://msdn.microsoft.com/en-us/library/d9k65z2d%28VS.80%29.aspx[^] might help
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900