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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
satish kumarPosted Apr 15, 2009, 2:31 AM
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
Niradhip ChakrabortyPosted Apr 13, 2009, 8:01 AM
Try this:
http://www.dotnetspider.com/resources/18430-How-change-Connection-string-dynamically-using-Application-BeginRequest.aspx
LisaPosted Apr 13, 2009, 3:43 AM
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
fghfgh fghfghfgPosted Apr 8, 2009, 8:02 AM
Thanks For Your Help
Can you please describe it properly.
how to add the custom screen to the installer.
Thanks
LisaPosted Apr 7, 2009, 8:44 AM
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