Missing InstallShield Dependencies

I am trying to create my installation using installshield software, as in VS2012, you should use it. I was able to prepare, but I have one problem, which is the following warnings: Warning 5 -6248: Could not find dependent file u2dmapi.dll or one of its component dependencies Aamali_New.Primary_output ISEXP: warning: -6248: Could not find dependent file u2dmapi.dll or one of its dependencies component Aamali_New.Primary_output

Actually he is looking for this u2dmapi.dll file !! I managed to download the file from the Internet, but I do not know where to put the file so that the builder finds it. I tried to put it in several places in the project, but he could not see it. Could you please help me regarding the location so that he receives it and will not generate this warning again. Waiting for your response. Thank you

+6
source share
1 answer

In accordance with this article, you must place the DLL "in the same place as the key file for the component specified in the warning." In my case, this was the output of the project, so I had to put my DLLs in this bin folder of the project along with the EXE (bin \ release).

There are many ways to do this:

  • If it is a managed DLL, add it as a reference in the project. This will not allow you if it is uncontrollable.
  • If this is not the case, you must manually copy them where they are needed.
  • Or automatically by adding a command line after the build (Projects tab, Events tab) as follows:

    copy "$(ProjectDir)lib\$(PlatformName)\Unmanaged\*" "$(TargetDir)" 

Where $(...) are predefined macros. Check them out, there are many others.

A bit complicated and error prone ... I would rather just indicate the file as a dependency in the project, but I did not find a way to do this.

+1
source

Source: https://habr.com/ru/post/956356/


All Articles