Uninstallation
Hello,
I am working on uninstaller part of the product. There are couple of folders that get created during application execution. e.g. Reports folder gets created at run time at [TARGETDIR] and all report files get generated in this folder. As this folder was not created by the installer, it remains there even after un-installation along with the files in it.
I thought of handling this by adding the details to RemoveFile table. Here's what I've done
Directory Table
Directory: Reports
Directory_Parent: TARGETDIR
DefaultDir: Reports
To delete all report file
FileKey: ReportFiles
Component_ : ComponentId
FileName: *.*
DirProperty: Reports
InstallMode: 2
To delete report folder
FileKey: ReportDir
Component_ : ComponentId
FileName:
DirProperty: Reports
InstallMode: 2
It successfully removes Reports directory along with the contents but TARGETDIR itself is not getting deleted. What could be the reason
I am working on uninstaller part of the product. There are couple of folders that get created during application execution. e.g. Reports folder gets created at run time at [TARGETDIR] and all report files get generated in this folder. As this folder was not created by the installer, it remains there even after un-installation along with the files in it.
I thought of handling this by adding the details to RemoveFile table. Here's what I've done
Directory Table
Directory: Reports
Directory_Parent: TARGETDIR
DefaultDir: Reports
To delete all report file
FileKey: ReportFiles
Component_ : ComponentId
FileName: *.*
DirProperty: Reports
InstallMode: 2
To delete report folder
FileKey: ReportDir
Component_ : ComponentId
FileName:
DirProperty: Reports
InstallMode: 2
It successfully removes Reports directory along with the contents but TARGETDIR itself is not getting deleted. What could be the reason
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
Posted by:
milindsm
14 years ago
>>Are there files which remain in that folder after an uninstall? If so, are those files part of the installation?
No there are no files in it...!!!
Observations:
1. If I use the same MSI without any entries in RemoveFile table and if the application doesn't really create any extra folders/files then it works fine (I mean C:\Program Files\MyApp gets deleted)
2. If I add entries to RemoveFile table for clean-up, It does work (it cleans all files and folders mentioned in RemoveFile table) but C:\Program Files\MyApp remains as an empty folder.
No there are no files in it...!!!
Observations:
1. If I use the same MSI without any entries in RemoveFile table and if the application doesn't really create any extra folders/files then it works fine (I mean C:\Program Files\MyApp gets deleted)
2. If I add entries to RemoveFile table for clean-up, It does work (it cleans all files and folders mentioned in RemoveFile table) but C:\Program Files\MyApp remains as an empty folder.
Posted by:
anonymous_9363
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.