Set Up file along with database

Posted by Ganeshji under C# on 4/9/2011 | Points: 10 | Views : 2770 | Status : [Member] | Replies : 7
I have created a set up file of my windows form application following the following http://www.c-sharpcorner.com/UploadFile/rahul4_saxena/Setup08232007071849AM/Setup.aspx link. It is working fine. As the database is in my PC, so no prob cropped up. But can any one help me with proper link so that my setup file can easily get connected with the database in my target PC.

Regards,
Ganeshji



Responses

Posted by: Vuyiswamb on: 4/9/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
I have not looked at that link. When you develop a windows that connects to the DB, save the connection string in the app.config and when you install your app in the target location, just change the connection string to what you want.

Thank you for posting at Dotnetfunda

Vuyiswa Maseko


Thank you for posting at Dotnetfunda
[Administrator]

Ganeshji, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 4/11/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
HI,

Its gng to be simple... when u build your setup proj itself try creating a config file which holds ur connection string and put that in the resource files of the setup... this way u can change it as per the environment like prod, sat, uat etc

Thanks
Karthik
www.f5Debug.net

Ganeshji, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ganeshji on: 4/11/2011 [Member] Starter | Points: 25

Up
0
Down
Thnx! Vuyiswa and Karthik. Ultimately i could solve it.

Regards,
Ganeshji

Ganeshji, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 4/11/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
How did you do it ?

Thank you for posting at Dotnetfunda
[Administrator]

Ganeshji, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 4/11/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Pls post your solution as well.. so that it will be helpful for others....

Thanks
Karthik
www.f5Debug.net

Ganeshji, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ganeshji on: 4/11/2011 [Member] Starter | Points: 25

Up
0
Down
Obviously Karthik I was thinking of posting. Surely, i shall post it.

Regards,
Ganeshji

Ganeshji, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 4/11/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Thanks Ganeshji

Thanks
Karthik
www.f5Debug.net

Ganeshji, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response