Installing web application and TARGETDIR

J

Jacek

Hello,

Could anybody advise me how I can install web application from MS install
package into other folder than c:\inetpub\wwwroot. Anything I found on the
web about TARGETDIR does not work - niether from custom installer nor from
command line. Maybe I do not understand how it exactly works.
thanks
 
M

Michael Nemtsev

U can install app as standard app, not web app to any folder. and then just
share this folder as web folder
 
J

Jacek

I see, but how to create Virtual folder referencing to the installed
application without using vbscript? Can it be done from custom installer? Use
some API from Framework?
 
M

Michael Nemtsev

Play with the next codesnippet

System.EnterpriseServices.Internal.IISVirtualRoot vr = new
System.EnterpriseServices.Internal.IISVirtualRoot();

string sError;

vr.Create("IIS://localhost/W3SVC/1/Root",@"C:\Demos\WebServices\","WebServices",out sError);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top