Identify locked files before uninstallation of installer
I'm trying to work on a solution, where I want to check the status of 10-12 files under INSTALLDIR if they are locked or used by some other process at the time of uninstallation (at install Initialize). In case, any of the 10-12 file is locked I don't want to procced with uninstallation.
I would like to know what all approaches I can take to make this happen.
Is there any in build action, Install script or vb script which I can use?