run a batch file when a program is uninstalled.

Jun 24 2014 5:16 AM
Hi All,   When i uninstall a program from the "Add or Remove Programs", all the installed programs(from c:\progrmfiles) will be deleted but some times some floders are left over.  i want to delete those folders when that program is uninstalled.  So i had created a batch file to delete those folders.
 
Now, I Want to attach that batch file to the uninstall process in add or remove programs, means when i uninstall that program from the "Add or remove programs" after uninstall process is over that batch file should be called automatically.  Could any one please say how to achieve it.
 
Thank you very much 

Answers (1)