ALX
Well-known member
I'm writing a small app to run during "Uninstall" to delete all Files & Directories that were set up / created by my main application when it was installed and during it's use. The delete statement;
fails, I assume because the Uninstall .exe itself has been loaded from within the same directory that I'm trying to delete. (Err.Description = ...'Being used by another process')... I'm wondering if there's a way to override or sidestep Window's behavior to disallow access and force the delete. I suppose I could put the uninstall pgm in a different directory, but that would still leave the uninstall app on the disc.
VB.NET:
My.Computer.FileSystem.DeleteDirectory("MainProgramDirectory", FileIO.DeleteDirectoryOption.DeleteAllContents)