PDA

View Full Version : Vroot's not always getting removed on Uninstall



roskuski
04-27-2006, 08:41 AM
I have an installation where I allow the user to pick the Web Site in IIS that virtual directories are created in. This works fine for creation of the virtual roots in any web site in IIS. However, when it comes to removal time, the virtual directories are only removed if they were created in the Default Web Site. If the virtual direcories were created in any other Web Site, I get the error:

VRoot is not deleted as the VRoot's associated directory is not matched with the target directory in the package

I am using the property ISVROOT_PORT_NO as the TCP port of the WebSite containing the VROOTS, and I am setting this property on uninstall, right before InstallInitailze.

Does anyone have any clues as to what I am doing wrong?