Let's say I have an application that uses MSHTML. Installing IE9 beta would update MSHTML which breaks my application. I found that copies of IE8 dll is still present in the WinSxS folder, so maybe I can somehow use them without recompiling my program? Can WinSxS do it?
I've searched for a long time but couldn't figure out how to redirect the loader to use the IE8 MSHTML (which is in WinSXS) instead of the IE9 (which is in %SYSTEMROOT%\system32). Any ideas/examples would be appreciated.
I've since gone with a different approach to this problem. I'll share what I eventually did -- I hijack
LoadLibrary
and load whatever DLL I want: DLL file loaded twice with DLL redirection through manifest.To answer the specific title of the question ("use WinSxS manifests to redirect"), I'll answer with "No, you can't" based on my long time battle with WinSxS (downvote if you disagree, I'll be happy to see how that can be done.)