I have created a web setup project and i need to create an installer for a website which installs the files outside of Default website location (C:\inetpub\wwwroot\WebSite).
I understood that this can be done by adding custom action to the msi. Can someone please give me code snippets of how to change the TARGETDIR in setup project?
Scott in this article explained how to change the connection string in web setup project. The same way I want to change directory where the files will be installed. I know TARGETDIR will hold the directory (by default it is C:\inetpub\wwwroot\... ), but
how to update that? I tried various things and non did worked. I want to know a working example for this.
venu.dil
0 Points
4 Posts
How to change TARGETDIR in Web Setup project
Jul 09, 2012 05:23 AM|LINK
I have created a web setup project and i need to create an installer for a website which installs the files outside of Default website location (C:\inetpub\wwwroot\WebSite).
I understood that this can be done by adding custom action to the msi. Can someone please give me code snippets of how to change the TARGETDIR in setup project?
I am using VS 2010.
Thanks,
Venu
setup web
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: How to change TARGETDIR in Web Setup project
Jul 09, 2012 05:00 PM|LINK
right click on the IIS top root folder and set the directory
venu.dil
0 Points
4 Posts
Re: How to change TARGETDIR in Web Setup project
Jul 10, 2012 12:29 AM|LINK
Thanks Mudasir,
I am asking about changing the TARGETDIR in web setup project.
Below is ScottGu article about creating ASP.NET setup projects.
http://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx
Scott in this article explained how to change the connection string in web setup project. The same way I want to change directory where the files will be installed. I know TARGETDIR will hold the directory (by default it is C:\inetpub\wwwroot\... ), but how to update that? I tried various things and non did worked. I want to know a working example for this.
Thanks