I am trying to run a managed custom action in WiX 3.5 as a 64 bit process. All projects involved are configured to be built in x64 (as specified here). My understanding is that the key to this is the sfxca version. According to my build log, it is calling the x64 version properly.
"C:\Program Files (x86)\Windows Installer XML v3.5\bin\..\sdk\MakeSfxCA.exe" "C:\Projects\WiXInstaller\MyCustomActions\obj\x64\Debug\MyCustomActions.CA.dll" "C:\Program Files (x86)\Windows Installer XML v3.5\bin\..\sdk\x64\SfxCA.dll" "C:\Projects\WiXInstaller\MyCustomActions\obj\x64\Debug\MyCustomActions.dll" "C:\lib\wix35\Microsoft.Deployment.WindowsInstaller.dll;..\builds\source\OtherDll.dll;C:\Projects\WiXInstaller\MyCustomActions\CustomAction.config"
But when I run the installer, the log still says "Hello, I'm your 32bit Impersonated custom action server," and the custom action doesn't run correctly.
Specifically I am trying to run the 64 bit version of Powershell instead of the 32 bit version.