Hi there,

Following code works for me to remove a website created under Default Web
Site during Uninstall:

//Define following component in a Directory Element
<Component Id="IISConfiguration"
Guid="{F8C30A3F-BDCB-4E6E-89D1-CD672440C320}" KeyPath="yes">
      <iis:WebVirtualDir Id="WebSiteVirtualDir" Alias="[WEBSITENAME]"
Directory="INSTALLDIR" WebSite= "DefaultWebSite">
        <iis:WebApplication Id="WebSiteApp" Name="[WEBSITENAME]App"
Isolation="medium" />
         <iis:WebDirProperties Id="WebDir" AnonymousAccess="yes"
WindowsAuthentication="yes" />
      </iis:WebVirtualDir>
</Component>

//Add component to Feature element
<Feature Id="ProductFeature" Title="Product Features" Level="1">            
    <ComponentRef Id="IISConfiguration" />            
</Feature>

Hope this helps!!
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/remove-website-on-uninstall-tp3694975p5860494.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to