Is it possible to check before install a setup if there are files locked which will be replaced during the installation and then show the user a message? All files are located under c:\program files\sempra energy\poweradmin. I want to prevent a reboot of the machine after the installation

Thanks in advance,