I’m writing a wix installer and I need to test the reinstall process. The program that I’m installing has files which can be in use by a second program.
I want to test what will happen if the common files are in use when the re-installation is run. I’m looking for a program or method that will grab a handle to these common files. It’s a real faff to get a full working environment up and running so I’m looking for a quick method for testing this.
Thanks for any help
Neil
The simplest approach would be open them in an editor (notepad, hex editor etc.). You don’t need a special program.
But you don’t really need this test. Windows Installer automatically detects this type of files and shows the files in use dialog. This dialog will allow your users to ignore the used files or automatically close the process which uses them.
In the worst case scenario your reinstall process will need a reboot to finish correctly. After a reboot Windows Installer will replace the files automatically.