Try finding out qjpeg1.dll's dependencies using depends.exe(available in the PSDK). Do you include both msvcpXX.dll and msvcrXX.dll in your installer? Maybe you forgot the c runtime dll(as opposed to the c++ one) and qjpeg1.dll needs it.
P.S.
If everything else fails, try FileMon from sysinternals and see what file access is going on when your application fails.
Bookmarks