How do I include a third party exe in a visual studio 2010 install and deployment project?

Let's say A.exe

this is a project of mine exe

that works great in windows system

.

Let's say it B.exe

is an external third party driver that is required for A.exe

. I am currently installing both projects separately. Now I want to include the driver in my installation A.exe

since when the user installs A.exe

, it is B.exe

automatically installed first.

How should I do it?

+3


source to share


1 answer


See documentation:

  • From the Project menu, select Add and click File.
  • Find the folder with the files MyApplication.exe and MyLibrary.DLL and select both of them.
  • In the File System window, right-click the Applications folder, select Add, and click New to create a new folder. Call it MyLibrary.
  • Click the Applications Folder again, select MyLibrary.DLL and drag it to the MyLibrary folder. In Solution Explorer in your project, under Detection Definitions, you will see that Visual Studio detects dependencies on the MFC90.dll and MSVCR90.dll files. You must add the appropriate merge modules for these DLLs.
  • From the Project menu, select Add and Merge Module. Select Microsoft_VC90_CRT_x86.msm and Microsoft_VC90_MFC_x86.msm and click OK. For debug versions of these merge modules, select Microsoft_VC90_DebugCRT_x86.msm and Microsoft_VC90_DebugMFC_x86.msm.


For VS2010 deployment examples take a look here .

+2


source







All Articles