Need help in .Net Setup and Deployment Project

  • Thread starter Thread starter Asheesh S Parihar
  • Start date Start date
A

Asheesh S Parihar

I am using .Net Setup and Deployment Project to create .msi file for web
application. I am using ‘Setup Project' template for this. In this project I
am creating virtual directory at run time. All the code has been written in
‘Install' overridable method in Installer Class. Directory is creating there
is no problem. Now the problem is, I need to add some settings (like DB
connection string, Here I am taking input from the user thru User Interface
dialog box) in web.config file. This happens only when all the aspx and
other files has been copied in to the desired path. Where I have to put code
for updating web.config file. What is the sequence of installation? What in
the end point, before that I can put my code to modify web.config.

Waiting for positive reply…

Asheesh
 
Custom actions in VS setup projects are called after files are installed, so
you should be ok adding the modification to your Installer class Install
method, if that's what you're asking.
 
-----Original Message-----
I am using .Net Setup and Deployment Project to create .msi file for web
application. I am using 'Setup Project' template for this. In this project I
am creating virtual directory at run time. All the code has been written in
'Install' overridable method in Installer Class. Directory is creating there
is no problem. Now the problem is, I need to add some settings (like DB
connection string, Here I am taking input from the user thru User Interface
dialog box) in web.config file. This happens only when all the aspx and
other files has been copied in to the desired path. Where I have to put code
for updating web.config file. What is the sequence of installation? What in
the end point, before that I can put my code to modify web.config.

Waiting for positive reply.

Asheesh
.
 
Back
Top