forest Posted May 10, 2011 Posted May 10, 2011 Hi,I'm building a program that will run on Windows PE (Win7) and it uses some libraries that are compiled in VC++ 2008. They dynamically link MFC and as WinPE doesn't have VS2008 redistributables, application ends with side-by-side error.Does someone have any idea how to include the redistributables in WinPE?The redistributables setup uses Windows Installer that isn't in WinPE, so it cannot be installed on startup.Also, we cannot recompile the library for static link MFC, we need to get it working with dynamic link.Thanks
MagicAndre1981 Posted May 10, 2011 Posted May 10, 2011 link the DLLs static into the Exe. The exe is a bit larger but works on all system even if you don't have the redistributables installed. So it should work in PE, too.
forest Posted May 10, 2011 Author Posted May 10, 2011 Sorry, but I cannot build it with static link, I need to link dynamically. I tried to find which files and registry keys are changed during the redistributable installation, but it still doesn't work...
allen2 Posted May 10, 2011 Posted May 10, 2011 (edited) You could try with installrite (monitor the vc ++2008 redistributable install on a clean XP).You can also use depency walker to find which dll are needed.As Win 7 include .net, you might also need it to make your app run on other OS (that's why i said monitor the vc++ 2008 redistributable install on a clean XP) and winpe 3 doesn't have native .net support. Edited May 10, 2011 by allen2
wimb Posted May 10, 2011 Posted May 10, 2011 I'm building a program that will run on Windows PE (Win7) and it uses some libraries that are compiled in VC++ 2008. They dynamically link MFC and as WinPE doesn't have VS2008 redistributables, application ends with side-by-side error.You can use Make_PE3 to make Portable 7PEYou will find in Make_PE3\MULTI\SxS_Fix_Win7PE folder info and file SxS_7PE_SFX.exe to fix the side by side errors.
forest Posted May 11, 2011 Author Posted May 11, 2011 You can use Make_PE3 to make Portable 7PEYou will find in Make_PE3\MULTI\SxS_Fix_Win7PE folder info and file SxS_7PE_SFX.exe to fix the side by side errors.Thanks, the package SxS_7PE_SFX.exe really helped
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now