I have two programs that rely on some .dll files. (Wikidpad and Microsoft WebMatrix2.)
I was using WikidPad for a while without issue. After I installed WebMatrix2 (which uses IIS Express, I guess), I got a bunch of "Bad Image" dialog boxes of the form:
WikidPad.exe - Bad Image
C:\Program Files (x86)\iis express\PHP\v5.3\icudt.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator of the software vendor for support.
After some struggling I checked the PATH variable and
C:\Program Files (x86)\iis express\PHP\v5.3\
was added to the path.
I deleted this part of the PATH variable, and WikidPad no longer showed the dialog boxes. However, WebMatrix2 no longer worked, for the same reason: Bad Image errors.
So one program needs the path to be there, and the other needs it to not be there.
How do I fix this?