I have a problem with a custom action that has a reference to a localized dll(let's call it X.dll). When I build the CA project I can see in bin folder several language folders(de, fr, ...) as it should, each containing X.resources.dll corresponding to that language. The problem appears when I run the setup. When it extracts the CA binaries the language folders are not there; instead I can see only one X.resources.dll file. I need all of those resources dll to be present or my action will fail.
Does anyone has a clue why this happens and why what's extracted is not the same with what's in the bin folder of the CA project?
The setup is configured to build all cultures.
There is a way to include more files into the cmd line for makesfxCA.exe. I think you need to define $(CustomActionContents) msbuild property which is a ;-delimited list of paths to files to include.
You can see the msbuild target that is run at the end of your custom action project in the wix.ca.targets file.
I don't know if this will try to put all the included files in the root path or not so this may cause issues with duplicate name dlls. Alternatively you can figure out how to create one localization dll for all supported languages but this may be difficult (although I'm sure it must be possible).