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
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Perhaps the app is also writing files into INSTALLDIR?

Are there files which remain in that folder after an uninstall? If so, are those files part of the installation?
Answered 07/06/2010 by: VBScab
Red Belt

Please log in to comment
0
whats the value of targetdir in this case?
Answered 07/06/2010 by: MSI*
Senior Yellow Belt

Please log in to comment
0
>>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.
Answered 07/06/2010 by: milindsm
Blue Belt

Please log in to comment
0
That doesn't make any sense. However, it could just be a quirk. Have you tried adding INSTALLDIR to the RemoveFile table?
Answered 07/06/2010 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity