Hopefully some blog entries I wrote will help you out: http://www.wintellect.com/CS/blogs/jrobbins/archive/2011/01/25/install-a-new-virtual-directory-to-default-web-site-with-wix.aspx http://www.wintellect.com/CS/blogs/jrobbins/archive/2011/02/23/web-application-installer-in-wix.aspx
John Wintellect http://www.wintellect.com +1-877-968-5528 -----Original Message----- From: Ulrich Peters [mailto:upet...@mindquake.com.br] Sent: Thursday, June 30, 2011 8:47 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Problem with IIS7 and virtual directory Hello, I am attempting to create a virtual directory for a IIS7 web server. Here is what I did: 1) I installed Vista Business in a VM from scratch, and applied lots of Windows updates so far (must have been about 90). The next one would be SP1. 2) I installed Internet Information Services in the Windows components, and made sure that the default web site works. It shows the IIS7 graphic when I access localhost. 3) No other applications are installed or running. 4) Now I am attempting to deploy a virtual directory in this default configuration, with an MSI package. Here are excerpts from my WiX source: Under <Product> I have this: <IIS:WebSite Id="WebSiteLocator_0001" Description="LocateSite"> <IIS:WebAddress Id="WebAddressLocator_0001" Port="80"/> </IIS:WebSite> In a <Fragment> I have this: <DirectoryRef Id="TARGETDIR"> <Component Id="CreateIISVirtualDir_0001" Guid="07279844-CF87-4D9E-A4E2-E32A996C0D67" KeyPath="yes"> <IIS:WebVirtualDir Id="CreateIISVirtualDir_0001" Alias="TestWeb" Directory="INSTALLDIR" WebSite="WebSiteLocator_0001"> <IIS:WebDirProperties Id="WebDirProps_0001"/> </IIS:WebVirtualDir> </Component> </DirectoryRef> What I expect to happen is that a virtual directory with the name "TestWeb" is created, so I can access it as http://localhost/TestWeb, and I am reaching files actually deployed in [INSTALLDIR]. The installer works on Windows XP Pro, but not on Vista (IIS7), where I see this in the log: ... MSI (s) (08:D8) [00:00:11:720]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI7429.tmp, Entrypoint: WriteIIS7ConfigChanges WriteIIS7ConfigChanges: Error 0x80070002: IIS: site not found for create VDir WriteIIS7ConfigChanges: Error 0x80070002: Failed to configure IIS VDir. WriteIIS7ConfigChanges: Error 0x80070002: WriteIIS7ConfigChanges Failed. Action ended 00:00:12: InstallFinalize. Return value 3. ... If I have only one web site (with all default settings), so why is it not found by the locator? I already tried the latest weekly build (3.6) and still see the same issue. Can somebody enlighten me here, please? Ulrich ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users