I have a custom action .exe stored in the binary table that I need to behave differently if the overall install causes the need for a reboot. I've been trying to access the ReplacedInUseFiles property, but no matter where in the execute sequence I try, it has no value -- even when the .msi log indicates the property is added and given a value of 1.
What I would like to be able to do, if possible, is pass ReplacedInUseFiles to my .exe. If a reboot is needed I would like to write to the RunOnce key to fire a secondary install.
If no reboot is needed, the widget (run asynchronously) will wait until the parent or calling .msi process is cleared then fire the secondary install. This is what happens now, but if a reboot is needed when run silently, the restart kills the widget and the secondary install is never initiated.
Any help in how I can detect the need for a reboot in a Custom Action would be greatly appreciated!!
Chaining as a solution won't work because the main install is 32 bit while the secondary installer is 64 bit.