cpoDesign
cpoDesign

Reputation: 9153

Windows installer removing generated log files

Hi I have windows installer that install my program and uninstall it. everything with installation goes fine but for uninstall part. My program is generating Log files in "program location\Log\" directory. I would like to add custom command to clear this folder before or after uninstallation so the uninstall process will completly remove the directory and does not leave mess in program files system.

Any idea how to do this. Also i do not want to add additional file for this, if it is possible.

thank you for your suggestions...

Upvotes: 2

Views: 306

Answers (2)

cpoDesign
cpoDesign

Reputation: 9153

I have decided to add bat file that is executed when uninstall happens and this will clear up.

Upvotes: 0

Ciprian
Ciprian

Reputation: 3565

You can use a RemoveFile operation to delete the log files. http://msdn.microsoft.com/en-us/library/aa371201(VS.85).aspx

Upvotes: 2

Related Questions