In my installation, I give the user the ability to create a virtual
directory (under an existing website) or to create a new website, giving
the name, port number, IP and header value.
All works just fine, but when I'm uninstalling, the virtual dir or the
website, if created, are not removed and are shown in IIS (we support
IIS 5 and 6).

This is the code snippet:

<Directory Id="TARGETDIR" Name="SourceDir">
        <Directory Id="ProgramMenuFolder">
            <Directory Id="MenuDir" Name="MY_NAME"  >
.
.
.
                </Directory>
      </Directory>
        <Component Id="VIR_DIR" Guid="{29181CC3-XXXX-YYYY-81E3-
2C2148D1CD92}" KeyPath="yes">
        <iis:WebVirtualDir Id="R1VirtualDir" Directory="USER_WEB_DIR"
Alias="[VIRTUALDIR]" WebSite="WebSite"  DirProperties="ReadAndExecute">
                <iis:WebApplication Id="WebApplication" Name="MY_NAME"
/>
        </iis:WebVirtualDir>
        <Condition> IISINSTALL = 1</Condition>
        </Component>

        <Component Id="NEW_WEB_SITE" Guid="{1012DBD5-XXXX-YYYY-8B7C-
BD355D8BA27E}" KeyPath="yes">
                <iis:WebSite Id="NewWebSite" Description="[NEW_WEBSITE]"
Directory="USER_WEB_DIR"
DirProperties="ReadAndExecute"
ConfigureIfExists="no" StartOnInstall="yes">
                        <iis:WebAddress Id="NewWebAddress"
IP="[NEW_WEBSITE_IP]"
Port="[NEW_WEBSITE_PORT]"
Header="[NEW_WEBSITE_HEADER]"/>
                </iis:WebSite>
        <Condition> IISINSTALL = 1</Condition>
        </Component>

</Directory>

<iis:WebSite Id="WebSite" Description="[WEBSITE]">
        <iis:WebAddress Id="WebAddress" IP="[WEBSITE_IP]"
Port="[WEBSITE_PORT]" Header="[WEBSITE_HEADER]"/>
</iis:WebSite>

<iis:WebDirProperties Id="ReadAndExecute" Read="yes" Write="no"
Script="yes" Execute="yes" AnonymousAccess="yes" />


----------------------------------------------------

The "VIR_DIR" component is installed under "WebSite" (which is an
unremoveable component, so it won't be damaged by uninstall).
The "NEW_WEB_SITE" component is a new site.
The user installs either "VIR_DIR" or "NEW_WEB_SITE", but not both.
Each component belongs to its own feature, with no other components (I
know that's ugly, but it was due to technical constraints).

The MSI log of the uninstall shows that the components are detected as
Installed:Local, with Action: Absent, but yet are not removed.

Is that a known bug, or am I doing something wrong?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to