4

Let's say A.exe is the my exe project which runs fine at windows system.

Let's say B.exe is the external third party driver which is required for A.exe. Currently I am installing both projects separately. Now, I want to include the driver into my A.exeinstallation, s that when the user installs A.exe, B.exe automatically gets installed first.

How should I do that?

5
  • try to add it to Resources.
    – Guy P
    Jan 21, 2013 at 6:18
  • Where is it ? I clicked on setup project but didn't find anything looks like "Add resource"
    – Amit Pal
    Jan 21, 2013 at 6:21
  • not inside the setup wizard, add it as project resource - in the solution explorer, just like you add images and other media files.
    – Guy P
    Jan 21, 2013 at 6:23
  • I do right click on solution and it is showing "Add existing item", "Add new item", "Add new project", "Add existing project". BTW i added a new folder and put exe and it's dependecies in it. Now when i choose project output in setup project, I am not able to choose that folder
    – Amit Pal
    Jan 21, 2013 at 6:31

1 Answer 1

2

See the documentation:

  1. From the Project menu, select Add and click File.
  2. Find the folder that contains MyApplication.exe and MyLibrary.DLL and select them both.
  3. In the File System window, right-click on Application Folder, point to Add and click Create to create a new folder. Call it MyLibrary.
  4. Click on Application Folder again, select MyLibrary.DLL and drag it to the MyLibrary folder.In Solution Explorer, under your project in Detect Dependencies you should see that the Visual Studio detects dependencies on MFC90.dll and MSVCR90.dll. You must add the corresponding Merge Modules for these DLLs.
  5. From the Project menu, point to Add and click Merge Module. Select Microsoft_VC90_CRT_x86.msm and Microsoft_VC90_MFC_x86.msm, and click OK. For the debug versions of these merge modules, select Microsoft_VC90_DebugCRT_x86.msm and Microsoft_VC90_DebugMFC_x86.msm.

For VS2010 deployent examples take a look here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.