how to code an MSI to ensure installation roll-back when a file is in use (Windows Installer question)
If I'm installing an MSI using silent operation (e.g msiexec /q /norestart /i my.msi /l my.log) what code in the MSI will ensure that the install (or upgrade when it's an upgrade) rolls back if the "Files in use" situation occurs?
When the install is NOT silent, windows installer pops up the "Files in use" dialog, with options either:
- to close the file in use
- do not close the file in use, reboot required after install
- cancel the install
Our process requires option 3 - the install must abort/cancel if there's a file in use. Delayed reboot must be disallowed.
[I need information on the appropriate Windows Installer function and arguments please. For reference our MSI is coded with the Wix Toolset, but that's irrelevant to this question]