System.BadImageFormatException When Installing Program From VS2010 Installer Project
See the question and my original answer on StackOverflowMaybe you could try to create a [yourfile.exe].config aside [yourfile.exe] like this:
<configuration>
<startup>
<supportedRuntime version="v4.0.30319" />
</startup>
</configuration>
or maybe the machine you're installing to just does not have the Framework 4 installed?