I don't see in your snippet where you are persisting the VIRTUALDIR property, I see you try to reload it with a registry search.
Does it get set properly in the uninstall log? -----Original Message----- From: Nick Porter [mailto:porter.nicho...@gmail.com] Sent: 13 September 2011 18:57 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] WIX 3.6 IIS 7 installer causing 'Site 1 has no root application defined, so the site will be ignored.' error on uninstall I am using Wix 3.6 (and have tried this in Wix 3.5) to install a Web application to IIS 7 and the install works correctly but when uninstalling the application either with Add/Remove Programs or with MSIExec I get the following error in IIS. There was an error while performing this operation. Details: The application '/' does not exist. The error in System log is as follows. Site 1 has no root application defined, so the site will be ignored. The log file on uninstall when using MSIExec and the /qb option shows just this one error and it doesnt seem like it could cause this type of problem where the Default Web Site directory in IIS becomes corrupt but perhaps it can. Action start 7:04:40: ExitDialog. DEBUG: Error 2726: Action not found: ExitDialog The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2726. The arguments are: ExitDialog, , Action ended 7:04:40: ExitDialog. Return value 0. Action ended 7:04:40: INSTALL. Return value 1. Here is the relevant portion of the wix file. If anyone has any ideas that can point me in the right direction they will be greatly appreciated. Thanks in advance. <Product Name="$(var.WebName)" Id="*" UpgradeCode="GUID" Manufacturer="MyCo" Version="$(var.ProductVersion)" Language="1033"> <Package Id='*' InstallScope="perMachine" Manufacturer="MyCo" InstallerVersion="200" Languages="1033" Compressed="yes"/> <MajorUpgrade Schedule="afterInstallValidate" DowngradeErrorMessage='A later version of this application is already installed. Setup will now exit'></MajorUpgrade> <Media Id="1" Cabinet="MyProduct.cab" EmbedCab="yes" /> <Property Id="IISROOT"> <RegistrySearch Id="WEBROOT" Root="HKLM" Key="Software\Microsoft\InetStp" Name="PathWWWRoot" Type="raw" /> </Property> <Property Id="WIXUI_INSTALLDIR" Value="FILEINSTALLDIR" Secure="yes" > <RegistrySearch Id="WIXUI_INSTALLDIR" Type="raw" Root="HKLM" Key="SOFTWARE\MyCo" Name="InstallDir" /> </Property> <Property Id="WIXUI_VIRTUALDIR" Secure="yes" Value="VIRTUALDIR" > <RegistrySearch Id="WIXUI_VIRTUALDIR" Type="raw" Root="HKLM" Key="SOFTWARE\MyCo" Name="WixUiVirtualDir" /> </Property> <Property Id="VIRTUALDIR" Secure="yes" Hidden="no" > <RegistrySearch Id="VIRTUALDIR" Type="raw" Root="HKLM" Key="SOFTWARE\MyCo" Name="VirtualDir" /> </Property> <CustomAction Id="FILEINSTALLDIR" Property="FILEINSTALLDIR" Value="[IISROOT]\[VIRTUALDIR]" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="IISROOT" Name="."> <Directory Id="FILEINSTALLDIR" Name="AppDirectory"> <Component Id="MyCo_AppComponent" Guid="GUID"> <File Source=... </Component> </Directory> </Directory> </Directory> <iis:WebSite Id="DefaultWebSite" Description="Default Web Site" SiteId="*"> <iis:WebAddress Id="AllUnassigned" Port="1" /> </iis:WebSite> <DirectoryRef Id="FILEINSTALLDIR"> <Component Id="MyCoSiteComponent" Guid="GUID" KeyPath="yes"> <iis:WebVirtualDir Id='AppComponentVirtDir' Alias='[VIRTUALDIR]' Directory='FILEINSTALLDIR' WebSite='DefaultWebSite'> <iis:WebDirProperties Id="AppComponentVirtDirProperties" AnonymousAccess="no" BasicAuthentication="no" WindowsAuthentication="yes" /> <iis:WebApplication Id='MyAppName' Name='[VIRTUALDIR]' Isolation='medium' /> </iis:WebVirtualDir> </Component> </DirectoryRef> ----------------------------------------------------------------------------- - BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users