Hi

On my dev box (win7 64bit), I'm finding that when I uninstall my web 
application, everything gets properly removed EXCEPT the AppPool.

I found a related thread: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problem-with-Application-pools-in-IIS-on-Windows-7-2008-td5438654.html

But no answer was contained there, so I'm hoping for some pointers?!

Here's the structure:


    <Directory Id='TARGETDIR' Name='SourceDir'>
      <Directory Id="IISMain" Name='inetpub'>
        <Directory Id="WWWMain" Name='wwwroot' 
ComponentGuidGenerationSeed='CA19CA4A-C69B-4CDB-BCBD-6C3C5E9A3EDC'>
          <Directory Id='INSTALLLOCATION' Name='!(loc.ProductName)'>

            <!-- The component to define the Virtual Directory.-->
            <Component Id="WebVirtualDirComponent" 
Guid="A720C1C9-1D8D-4941-976D-FB1C5C9EF8BB">

              <!-- Define App Pool - identity if not set defaults to: 
ApplicationPoolIdentity -->
              <iis:WebAppPool Id="AppPool" Name="[VD][WEBSITE_ID]" 
ManagedRuntimeVersion="v4.0" IdleTimeout="0" RecycleMinutes="0" 
ManagedPipelineMode="integrated">
              </iis:WebAppPool>

              <iis:WebVirtualDir Id="VDir" Alias="[VD]" 
Directory="INSTALLLOCATION" WebSite="SelectedWebSite">
                <iis:WebApplication Id="YearViewApplication" 
WebAppPool="AppPool" Name="[VD][WEBSITE_ID]" />
                <iis:WebDirProperties Id="MyWebSite_Properties" 
AnonymousAccess="yes" WindowsAuthentication="no" 
DefaultDocuments="Default.aspx" />
              </iis:WebVirtualDir>


As stated before, the VD gets removed fine...so this proves (?!) that 
[VD][WEBSITE_ID] are valid...

I'm persisting the variables to the registry (and can see them there!) and 
reading from at startup.

The Feature is defined at:

    <Feature Id="ProductFeature" Title="!(loc.ProductName)" Level="1">
      <ComponentRef Id='WebVirtualDirComponent' />
                     <ComponentGroupRef Id="Product.Generated" />
      <ComponentRef Id="PersistWebSiteValues" />
              </Feature>

I'm clearly missing something really simple/obvious?!
TIA
Paul.

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to