Hello,
Please accept my apologies for the delayed reply.
I've tested your sample and replicate the issue. There are two things you should be aware:
1. when you want to run a custom action on patch removal, besides checking the "Run when patch is uninstalled (Windows Installer 4.5 or higher)" option you should also
NOT uncheck any of the predefined execution stage conditions; all execution stages must be checked otherwise, if the condition is not fulfilled (evaluated to true) during the patch removal stage (this is a maintenance mode) the action won't be executed
- screenshot.jpg (101.38 KiB) Viewed 9720 times
2. the custom action scheduled on patch removal should not make use of our
temporary files support; this is because the temporary files are not extracted during a patch removal, this is a limitation of our temp file support
So, to achieve what you need you should make sure you check all the execution stage conditions for your custom action and instead of adding the BAT files as temporary files you can add them as regular files or try to use another custom action type (i.e. "Launch attached file).
If you have any further questions or doubts just let us know.
All the best,
Daniel