/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (4)

Posted by: anonymous_9363 13 years ago
Red Belt
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?
Posted by: MSI* 13 years ago
Senior Yellow Belt
0
whats the value of targetdir in this case?
Posted by: milindsm 13 years ago
Blue Belt
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.
Posted by: anonymous_9363 13 years ago
Red Belt
0
That doesn't make any sense. However, it could just be a quirk. Have you tried adding INSTALLDIR to the RemoveFile table?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ