Archive: Automatic registration of installed files


Automatic registration of installed files
I have installing the great number of files (over 1000) into one folder with several subfolders.

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\SubFolder1
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%

...
Imperfections
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!

There was a huge thread about this subject a couple of months ago. There were some good tips in it. I think DumpLog was mentioned there too, it might help you find it.