milindsm
asked on
RemoveFiles table to delete files & folders created during runtime
Hello,
I am working on uninstaller part of the product. There are couple of folders that get created during application execution. e.g. Report folder gets created at run time at [INSTALLDIR] and all report files get generated at 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 my RemoveFile entry,
To delete all report file
FileKey: ReportDir
Component_ : ComponentId
FileName: *.*
DirProperty: [INSTALLDIR]Report
InstallMode: 2
To delete report folder
FileKey: ReportDir
Component_ : ComponentId
FileName:
DirProperty: [INSTALLDIR]Report
InstallMode: 2
It is failing miserably
I am working on uninstaller part of the product. There are couple of folders that get created during application execution. e.g. Report folder gets created at run time at [INSTALLDIR] and all report files get generated at 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 my RemoveFile entry,
To delete all report file
FileKey: ReportDir
Component_ : ComponentId
FileName: *.*
DirProperty: [INSTALLDIR]Report
InstallMode: 2
To delete report folder
FileKey: ReportDir
Component_ : ComponentId
FileName:
DirProperty: [INSTALLDIR]Report
InstallMode: 2
It is failing miserably
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I tried this... first of all, it is failing for INSTALLDIR. I'd to use TARGETDIR and it worked but then, TARGETDIR itself is not getting removed :(
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I've requested that this question be deleted for the following reason:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned and is now flagged for deletion.
If there is a valid solution, please OBJECT and indicate the comments that are, or would otherwise lead to, a solution.
Use the specific format http:#axxxxxxxx for comment ID(s).
Also, please don't object simply because the author did not respond to your comment. While we understand this is frustrating, unfortunately we cannot force the author to return to the question. Unless you feel you have presented a valid, verifiable solution we'll simply delete the question.
Experts-Exchange Auto Deleter
No comment has been added to this question in more than 21 days, so it is now classified as abandoned and is now flagged for deletion.
If there is a valid solution, please OBJECT and indicate the comments that are, or would otherwise lead to, a solution.
Use the specific format http:#axxxxxxxx for comment ID(s).
Also, please don't object simply because the author did not respond to your comment. While we understand this is frustrating, unfortunately we cannot force the author to return to the question. Unless you feel you have presented a valid, verifiable solution we'll simply delete the question.
Experts-Exchange Auto Deleter
As the author has confirmed, he was able to resolve the original problem using my first comment, although with modification. Why program directory hasn't been removed, is another problem
Split between ID http:#a33132942 and ID: http:#a33141583
Split between ID http:#a33132942 and ID: http:#a33141583
ASKER