I have an installation project (MSI) in VS2008 that installs my project. As part of the project, I create a settings file for the application in the folder SpecialFolder.CommonApplicationData + \\"settings"(two slashes are in C # code for escaping). However, the uninstaller does not get rid of this for me when it uninstalls the program. How to delete this folder during uninstall? I read that I should use VB Script, but I never used it before, not quite sure how to do it. I tried something like this:
On Error Resume Next
Dim fso, objfolder
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(COMMON_FILES + "\\settings")
objfolder.Delete
Set folder = nothing
Set fso = nothing
but the installation files still exist after uninstall. Any ideas? Thanks
source
share