Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert folder under virtual directory to Application, using WIX

Tags:

iis

wix

How can I convert a directory under a virtual directory to an application, using WIX?

WIX installs the following Virtual Directory to IIS, and I wish it to also convert the webservice folder to an application.

like image 706
staterium Avatar asked Jan 16 '12 11:01

staterium


1 Answers

I could not find a way to do this through WIX or the IIS extension, so I resorted to calling an external command. For future reference, the commands are:

IIS 5

C:\Inetpub\AdminScripts\mkwebdir.vbs -c Localhost -w "Default Web Site" -v "sentry/webservice","{physical path}"
C:\Inetpub\AdminScripts\adsutil.vbs appcreateinproc w3svc/1/root/sentry/webservice

IIS 6

C:\Windows\System32\iisvdir.vbs /create "Default Web Site/Sentry/webservice" webservice "{physical path}"

IIS 7

C:\Windows\System32\inetsrv\appcmd add app /site.name:"Default Web Site" /path:/Sentry/webservice /physicalPath:"{physical path}"
like image 170
staterium Avatar answered Sep 29 '22 09:09

staterium