Adds a new IPluginValidator that checks to make sure the plugin installation folder does not yet exist. This new validator is passed only to the plugins installer.
Also fixes logic in the obsolete plugin remover to
Only attempt to delete each directory once (before, it was calling DeleteDirectory multiple times due to a multiple enumeration of an IEnumerable containing the task)
Prevent directories from being only partially removed if another process is using one or more of its files
Adds a new
IPluginValidator
that checks to make sure the plugin installation folder does not yet exist. This new validator is passed only to the plugins installer.Also fixes logic in the obsolete plugin remover to
DeleteDirectory
multiple times due to a multiple enumeration of anIEnumerable
containing the task)