Link to home
Start Free TrialLog in
Avatar of milindsm
milindsmFlag for India

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
Avatar of milindsm
milindsm
Flag of India image

ASKER

FileKey is different for both records.... please ignore typo in my post....!!!
ASKER CERTIFIED SOLUTION
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of EE_AutoDeleter
EE_AutoDeleter

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
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