Jump to content

Recommended Posts

Posted

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


Posted

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.

Posted

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...

Posted (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 by allen2
Posted

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 7PE

You will find in Make_PE3\MULTI\SxS_Fix_Win7PE folder info and file SxS_7PE_SFX.exe to fix the side by side errors.

Posted

You can use Make_PE3 to make Portable 7PE

You 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 :thumbup

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...