Various files and folders remain after uninstalling my Winform application – including content files (pictures, icons, etc.) and a folder for logs that the application creates. For the Content files: in the custom installer project, I have the “Permanent” property set to false. For the logs folder: I assumed this would be deleted with everything else.
Is there a MSI setup property I’m missing or do I need to determine the root path of the Application and remove everything on the overridden Uninstall method?
No, there’s not. The MSI Installer won’t uninstall anything it didn’t install, which means that user data, log files, etc. are left.
This is by design – can you imagine the liability if the user mistakenly uninstalled your app and wiped out all their financial data or whatever? Or if they’d mistakenly saved other things to your app’s data folder, and your uninstaller deleted them?