Hi All ,
I have a problem .
I can't able to change the connectionstring dynamically in the web.config after creating the MSI .
Thanks For Help
Rakesh
Hi All ,
I have a problem .
I can't able to change the connectionstring dynamically in the web.config after creating the MSI .
Thanks For Help
Rakesh
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
LisaRank #8,652 · 218 reputationPosted Apr 7, 2009, 4:44 AM EDT
add a custom screen into the installer (if you want to prompt user to give the location) or you could directly assign a location based on directory user selects.
Override the install function to do the specific job . like for example get the target directory of installation and the update the web.config file with relevant information.
Thanks,
Lisa
fghfgh fghfghfg4 reputationPosted Apr 8, 2009, 4:02 AM EDT
Thanks For Your Help
Can you please describe it properly.
how to add the custom screen to the installer.
Thanks
LisaRank #8,652 · 218 reputationPosted Apr 12, 2009, 11:43 PM EDT
OK here it is go to your setup project from the view menu go to editor and select User Interface and add a new dialog there can be customer information , register user etc and get those details input by the user while installing.
then go to you projectinstaller code behind and over write the install function there you can capture the given details and hence update the connection string as possible.
Thanks,
Lisa
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Apr 13, 2009, 4:01 AM EDT
Try this:
http://www.dotnetspider.com/resources/18430-How-change-Connection-string-dynamically-using-Application-BeginRequest.aspx
satish kumar24 reputationPosted Apr 14, 2009, 10:31 PM EDT
Thanks for reply.
I taken new setup and added view -> user interface
and installed register user and customer information.
but then also i didnt get solution.
plz send very urgent.
ok bye
satish