I'm requested to implement custom action with parameters on uninstall from command line:
msiexec /x MyInstaller.msi PARAM_FILE_PATH="..." /qn
Looks like common approach looks like is this:
<Custom Action="ActionName" Before="RemoveFiles">(REMOVE~="ALL") AND (NOT UPGRADINGPRODUCTCODE)</Custom>
<Custom Action="ActionName" Before="InstallFinalize">(REMOVE~="ALL") AND (NOT UPGRADINGPRODUCTCODE)</Custom>
But in both cases ActionName is not executed (checked via debug output).
Tried few things.
Not executed on install and uninstall:
<Custom Action="ActionName" Before="RemoveFiles"></Custom>
Runs only on install (opposite of what I need):
<Custom Action="ActionName" Before="InstallFinalize"></Custom>