I know this post is almost 4 years old, but I was having this same exact problem and this seemed to be the only post I could find describing the problem.
I have a project where all the assemblies are delay signed at build time, and then re-signed with the private key before being packaged into the .msi via a pre-build event. Using WiX 3.7 and Visual Studio 2010, when building a managed Custom Action project, the CustomActions.CA.dll that gets built contains the delay signed assemblies and NOT the fully signed assemblies, which causes the error above. I ended up solving this by using the DTF tool MakeSfxCA.exe to rebuild the CustomActions.CA.dll as part of my pre-build event, after having fully signed all assemblies. This tool can be found as part of the WiX DTF toolset. > // ... Fully sign all managed assemblies ... > > "$(WiX)SDK\MakeSfxCA.exe" "%CA_OUTDIR%\SampleCustomAction.CA.dll" > "$(WiX)SDK\x86\SfxCA.dll" "%CA_OUTDIR%\SampleCustomAction.dll" > "%CA_PROJDIR%\CustomAction.config" > "$(WiX)SDK\Microsoft.Deployment.WindowsInstaller.dll" %CA_DEPENDENCIES% Where > CA_PROJDIR: Absolute path to your managed custom action project directory > CA_OUTDIR: Absolute path to your managed custom action project's output > directory > CA_DEPENDENCIES: List of depenencies for your managed custom action > project I generated the list of dependencies using windows batch commands, although I know this could probably be handled better using MSBuild directly. This is what I used: > setlocal enabledelayedexpansion enableextensions > > set CA_DEPENDENCIES= > > for /f %%x in ('dir /b "%CA_OUTDIR%\*.dll ^| findstr /vi > "SampleCustomAction."') do set CA_DEPENDENCIES=!CA_DEPENDENCIES! > "%CA_OUTDIR%\%%x" This will set the variable CA_DEPENDENCIES to a string that is formatted as such: > "C:\....\Dependency1.dll" "C:\....\Dependency2.dll" > "C:\....\Dependency3.dll" -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/strong-name-sign-for-C-customaction-dll-tp3485726p7584800.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users