Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Virtual Directory entry not deleted after uninstall
 

Virtual Directory entry not deleted after uninstall

After uninstalling a web deployment the virtual directory entry still exists though the physical directory is deleted. Is there a way that can be deleted? Would really appreciate if someone has a solution. Thank you.
Ajay S  Monday, June 25, 2007 9:56 PM

Hi Ajay,

Actually this is a known behavior of Web Setup projects. The reason Web Setup projects don't remove Virtual Directories at uninstall becase the setup msi doesn't know if the Virtual Directory already existed before the new website was installed. If you want the Virtual Directory to be removed, simply delete it from the web server manually after the uninstall has completed.

Hope this helps,

~Merrie McGaw MSFT

Merrie McGaw - MSFT  Tuesday, June 26, 2007 2:06 AM

Hi Ajay,

Actually this is a known behavior of Web Setup projects. The reason Web Setup projects don't remove Virtual Directories at uninstall becase the setup msi doesn't know if the Virtual Directory already existed before the new website was installed. If you want the Virtual Directory to be removed, simply delete it from the web server manually after the uninstall has completed.

Hope this helps,

~Merrie McGaw MSFT

Merrie McGaw - MSFT  Tuesday, June 26, 2007 2:06 AM
Hi;
I have also experienced something strange. If I install using msi file, then I manually add files or dlls to the bin directory , when I uninstall the msi, the files manually are still there and the directory is still marked as a Virtual directory in iis.
Regards
Shivam
Shivam11  Tuesday, June 26, 2007 11:18 AM

Hi Shivam,

That behavior is to be expected as well. The msi can only remove files that it has added to the physical directory. If you've added more, uninstalling the MSI will have no affect on the manually added files.

Cheers,

~Merrie McGaw - MSFT

Merrie McGaw - MSFT  Tuesday, June 26, 2007 4:16 PM

You can use google to search for other answers

Custom Search

More Threads

• Quit the Uninstaller
• Uninstalling MSI package removes user modified files.
• Normal installation - update using clickonce?
• Click Once and Late Binding
• How do I get the install path in my setup project?
• Database setup using MSI
• Conditional property in Windows Installer
• Office add-In deployment Questions
• VS .NET 2.0 Setup Project: Full and Minimum installation?
• Can MSI installer silent by default?