Search code examples
c#opencvinstallationwindows-installerdependency-management

Setup project does not call all the .dll assembly file and throw an exception


I am trying to make a setup project using visual studio 2015 for my image processing project.
In my project the main used libraries are Aforge and emug cv libraries.

The project output during making the project as setup file The project output

The Detected dependencies are
Detected dependencies

installation folder after install my setup project
installation folder

The main project before made it as a setup project was working correctly without any exception but after converting it to a setup project this exception is fired
The Exception

which mean that the emug cv library not founded in the output directory or what is the main problem !

Any help
Thanks in advance


Solution

  • I founded the solution for my problem.

    The solution is:

    All the used assembly files (DLLS) must be registered first before doing any thing.

    Follow these steps:

    1.After adding the "Setup Project" to the solution,
    2.Right-click on the "Setup Project", go on "Add" then click "Assembly" then
    3.Browse for all the used assembly files (DLLS) and add them to the "Setup 
      Project" then 
    4.After adding the assemblies files, right-click on them in "Solution 
      Explorer" and click "Properties" then in the properties of DLLS
    5.Set the "Register" property to "vsdraCOM".
    

    Thanks