I have created a MSI of a Web application with the Setup and Deployment
Wizard of Visual Studio.NET. That MSI will be deployed on the web server
automatically via a program that I created with the Windows Installer SDK.
All of thats works perfectly, but what I can't do is to be able to deploy
the web site on the server in a different directory. The name of the
virtual folder in IIS will be the same, but I want it to be in a different
location. I know of the TARGETDIR property, but this doesn't seems to work
with a web site.
(ex.
On my development machine the application is located at
C:\inetpub\wwwroot\WebApplication1
What I want is, on the production server, the application must be located at
C:\inetpub\wwwroot\site1\dir1\dir2\WebApplicatrion1
)
I can't tell the installer the target folder when I install it manually, all
I can do is change the name of the virtual folder. I also want to do that
directly in my program so no usr interaction is required.
Any help would be apreciated.
Thanks
My name is Dennis Schmidt. Thank you for using the Microsoft Windows
Installer Newsgroups.
This is a limitation of Visual Studio .Net deployment packages. Custom
actions are used in the MSI to set the virtual directory. It is limited to
the root folder.
I understand that some of the newer versions of InstallShield or Wise have
options that work around this limitation.
I hope this helps! If you have additional questions on this topic, please
reply to this posting.
Need quick answers to questions like these? The Microsoft Knowledge Base
provides a wealth of information that you can use to troubleshoot a problem
or answer a question! It's located at
http://support.microsoft.com/support/c.asp?M=F>.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.
Regards,
Dennis Schmidt
Microsoft Support
Do you know of any way I can do this?
I think of a custom action of some kind to set the IIS root directory to my
"real" destination, and then set it back to the original.
But, is this possible to fire a CustomAction *before* the real installation?
The problem I have is that I must install my application to one or other (or
each) web site depending that is an internal application or an external
application. Then I deploy these on different clusters (Web and/or
Intranet).
In this case, the custom action is part of the install code for the .net
application and you would not be able to change the install location. I
think that you will probably need to use XCopy in your situation. For
additional information on using XCopy with .net applications see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/ht
ml/xcopywininst.asp