I'm using a native C# installer DLL (built with the WiX toolset v3.7 and Visual Studio 2012) to call some custom functions from my installer. They work fine if I build them with .NET 3.5 framework, but if I use .NET 4.0 or 4.5, they fail immediately the function in question is called.
I'd really like to be able to use at least the .NET 4.0 framework as I need to enumerate the ODBC drivers in the registry to check for a MySQL ODBC driver. Doing this on a 32-bit PC is fine, but on a 64-bit machine, if the user installed the 64-bit driver the native DLL can only check the 64-bit area of the registry, when using .NET 3.5, by calling Win32 API registry functions. .NET 4.0 has RegistryKey.OpenBaseKey where you can specify the 32 or 64 bit hive, so it would be considerably less code (and less debugging) if I could use this.
Are there any known issues with using the WiX toolset with .NET 4.0/4.5 being called from an Advanced Installer installer?