Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Set a new target directory for a web site = don't work?

0 views
Skip to first unread message

MB

unread,
Sep 6, 2002, 8:39:19 AM9/6/02
to
Hi,

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


Dennis Schmidt

unread,
Sep 6, 2002, 2:38:49 PM9/6/02
to
Hi MB,

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

MB

unread,
Sep 9, 2002, 10:03:57 AM9/9/02
to
"Dennis Schmidt" <Dennis...@microsoft.com> a écrit dans le message de
news: 6LP7#RdVCHA.2668@cpmsftngxa10...

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).


Dennis Schmidt

unread,
Sep 9, 2002, 11:23:13 AM9/9/02
to
Hi MB,

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

0 new messages