Visual Studio setup, how to uninstall folder with files in it.
Posted on 2014-01-28
I have a Microsoft Visual Studio 2010 win32 application and recently I’ve added a Setup Project to create a .msi install/uninstall file. I created a custom folder, let’s call it c:\myfolder\logs, that gets created on install. When my application runs it creates a log file that it creates and placed in the ‘c:\myfolder\logs’ folder. My problem is that on uninstall everything is uninstalled except for the ‘..\logs’ folder’. I believe this is because there are files within the …\logs folder.
Is there some way to tell the Setup Project I want this folder and all files within deleted on uninstall?
I really don’t want to have to create a ‘custom dll’. Seems like a lot of work for a simple request.