How to get the file name of the file which is being installed?
I want to check if the file being installed is already at the destination folder and rename the existing one to some other name. Is there a way where we get to know the file name of which is being installed? (around OnMoving() or so?).
Note: I am using InstallScript MSI - InstallShield 2011 Premier
You can try to read the filenames of the files that your package will install at run-time using a custom action and then check the install directory if it contains another file with a matching name.
Here are some examples of custom actions that can access the MSI database at install-time: http://msdn.microsoft.com/en-us/library/Aa372865