tags:

views:

34

answers:

0

I have an App I have updated with some .Net4 assemblies, including the custom actions .dll that runs when the app is going to be uninstalled. The App was initially installed with .Net 3.5 and it requires some custom actions when installing and uninstalling.

The problem is that now when uninstalling the .dll of the custom actions have changed to its .Net 4 version and I'm getting a System.BadImageFormatException: Could not load file or assembly 'X' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. File name: 'X'

Does anyone knows a way to tell the uninstaller to start the process with .Net 4 instead of calling .Net 3.5 to load the custom actions Dll? Where does this uninstall information is stored for each product? and how?