Virtual directories are not deleted by default on uninstall. The problem is that uninstaller don't know the name of virtual directory that needs to be removed. So, you have to save virtual directory name into registry on install, so that it is available on uninstall. Here is a sample:
...
<Property Id="ENDUSERVDPROP">
<RegistrySearch Id="EndUserVD" Type="raw" Root='HKLM' Key='Software\AAA' Name="EndUserVD" />
</Property>
<CustomAction Id="ENDUSER_CA" Property="ENDUSERVDPROP" Value='[ENDUSERVD]'/>
...
<Component Id='EndUserWebVirtualDirComp' Permanent="no" Guid='...'>
<WebVirtualDir Id='EndUserWebVirtualDir' Alias="[ENDUSERVDPROP]" Directory='directory1000' DirProperties="EndUserWebProps"
WebApplication="WebApplication" WebSite='DefaultWebSite'>
</WebVirtualDir>
<Registry Action="" Root='HKLM' Key='Software\AAA >
<Registry Action="" Type="string" Name="EndUserVD" Value="[ENDUSERVDPROP]" />
</Registry>
</Component>
...
<InstallExecuteSequence>
...
<Custom Action="" After="CostFinalize" >NOT Installed</Custom>
...
</InstallExecuteSequence>
...
Voranc
On 8/25/06, Petrut Andrei <[EMAIL PROTECTED]> wrote:
Hi. Please help and tell me how to delete a virtual
directory from IIS when I uninstall the setup? Is
there any condition that I forgot?
<Component Id="TestWebVirtualDirComponent"
Guid="054604ca-1790-4c0c-b076-531ff9a5b374">
<WebVirtualDir Id="TestWebVirtualDir" Alias="alfa"
Directory="INSTALLDIR" WebSite="DefaultWebSite">
<WebApplication Id="TestWebApplication" Name="Test" />
</WebVirtualDir>
</Component>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

