If you do a search in the mailing list you will find the answers. I was not able to get you'r attached file, so I can't see where the problem is. Here is a sample of how you do it:
<!-- Targedir is base dir in file structure --> <DirectoryRef Id="TARGETDIR"> <!-- Creates a virual dir --> <iis:WebVirtualDir Id="VirtualDir" Alias="ServiceLibary/MyService" Directory="INSTALLPATH" WebSite="InstallSite" DirProperties="DirProps"> <!-- INSTALLPATH is the root path of where you'r site is i.e Default Web Site = c:\inetpub\wwwroot --> <iis:WebApplication Id="WebApplication" Name="MyService" WebAppPool="DefaultAppPool" /> </iis:WebVirtualDir> </Component> </DirectoryRef> <iis:WebDirProperties Id="DirProps" Read="yes" Script="yes" /> <!-- I get all websites on local machine and based on selection populate property TARGET_WEB_SITE with it --> <iis:WebSite Id="InstallSite" Description="MySite" > <!-- Most important ting is the Port of the site, this must be uniqe to get a hasselfree install I have no duplicate portnumbers, all mye sites are defined on different ports --> <iis:WebAddress Id="InstallPort" Port="[TARGET_PORT]" /> </iis:WebSite> <iis:WebAppPool Id="DefaultAppPool" Name="[TARGET_APPPOOL]" /> Also remember to save the port number in registry or you will not be able to uninstall. Morten Date: Wed, 8 Nov 2006 09:47:58 -0800 From: "Ravi Yellasiri (Aditi)" <[EMAIL PROTECTED]> Subject: [WiX-users] Need help to create a virtual directory To: "wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED] rosoft.com> Content-Type: text/plain; charset="us-ascii" Hi, I am new to the Wix development and trying to develop an MSI. Following are the core functionalities of my MSI. Copy config files to destination directory (webroot) Copy a .dll files to the destination Create an app pool "MyAppPool" Create a (IIS 6.0) virtual directory under an existing web site's web directory and point it to the "MyAppPool" Here is a brief structure of IIS Manager. Application Pools | AppPool1 (App Pool) | AppPool2 (App Pool) | MyAppPool : : Web Sites | Default Website (Web Site) | MySite (Web Site) | ServiceLibrary (Web Dir) | My Service (Virtual Directory) After I run my MSI, It is supposed to create an Application pool with the name "MyAppPool" Create an virtual directory "My Service" under the preexisting web site "MySite => ServiceLibrary" and set the app pool to "MyAppPool" After I ran this MSI. It is copying the files into right directory (physical) , but creating the Web Directory "ServiceLibrary" under the "Default Web Site" and creating Virtual Directory "My Service" under that. Lets say If I delete the "Default Web Site" and Install it again, It is installing it under another different web site. Please find the attached .xml file for my wxs content. I need to wrap this up ASAP. Please help me to create a virtual directory under right web site. Thanks Inadvance!!! Ravi. Ravi K Reddy Yellasiri <http://www.aditistaffing.com/> Aditi Staffing at Microsoft <http://www.aditistaffing.com/> MSN (425) 421-2219 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://sourceforge.net/mailarchive/forum.php?forum=wix-users/attachments /20061108/38f06b07/attachment.html ------------------------------ ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users End of WiX-users Digest, Vol 6, Issue 39 **************************************** ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users