Using ManagedActions in an x64 app #1647
-
I need to check something with you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Nicolas, The situation is not as bad as it may seem. Indeed, an MSI session that every setup is running on is an x86 process (MSI service). Meaning that every ManagedAction needs to be compiled with the target architecture either x86 or AnyCPU. Fortunately, all WixSharp assemblies and the WixSharp project templates do target compatible runtime already so we are good. Your problem is most likely caused by your custom action (ManagedAction) assembly either compiled for x64 or it has Interop dependency on some x64 native DLL. I just checked the bootstrapper and the MSIx64 from the samples and it works fine. So, check your assembly build. |
Beta Was this translation helpful? Give feedback.
Following your answer, I checked the csproj and tried commenting lines one by one. I was surprised to discover that the culprit was
<PlatformTarget>x86</PlatformTarget>
. When removed, the custom actions execute and the uninstallation where they are invoked completes. I still don't quite understand why this was messing with it. Anyway I can now continue, thanks to your pointers.Thank you for your help, Oleg!