Goal
During uninstalling delete only installed files. The files created in these folders after installation (for example, by user or by program) should preservå from deleting.
Solution
I use DumpLog function to write the install log into file and read this file later in uninstall process.
Output folder: C:\ProductFolder\SubFolder1Imperfections
Extract: file001.ext... 100%
Extract: file002.ext... 100%
Extract: file003.ext... 100%
...
Output folder: C:\ProductFolder\SubFolder2
Extract: file101.ext... 100%
Extract: file202.ext... 100%
Extract: file303.ext... 100%
...
1. There are no absolute paths of files. It is necessary to search for "Output folder:" above.
2.Contents of logs depends on the language file. Changes in a language file can become the reason of failures of parsing.
Question to all
Whether there is other way of automatic registration of installed files?
Or I search too easy life? 😉
Thanks for comments!