There seems to be a bug with New-InstallerCustomAction cmdled, and the option -CheckReturnValue. Regardless I set it or not, the referenced script is always ignored. It looks the cmdlet is ignoring this value when building the WXS file.
This is the script:
and this is the resulting WXS
I manually changed the values from “ignore” to “check”, recreated WSXOBJ and the MSI, and this time the CustomAction scripts are finally executed.
BTW, I have PoshProTools v.5.4.0 installed.