tij
August 20th, 2009, 04:07 AM
Hi all.
I just created a wrapper that wraps NI-DAQmx driver's (.NET) functionality for a program (programmed using C++ Builder 5). I used Visual Studio 2008 (C++ project).
The problem is that I need to distribute this wrapper together with the program that uses it but there are some dependencies that I'm not aware of or libraries that I don't know about that prevents this.
I tried to copy the wrapper dll and the required dll's that are mentioned in NI's documentation to the program folder but it does no good. The program crashes when it tries to use any member of that NI-DAQmx library.
I then created a setup project for that wrapper and after I installed it everything worked just fine. So it's obvious that I don't have necessary dll's or because the installer installs something in the Windows' GAC (Global Assembly Cache) folder. You see, I changed setup project's setting so that it doesn't put files to a cabinet but uses "loose uncompressed files" option. See "image1.jpg".
After building the setup project there were two folders in the output folder: "Global Assembly Cache Folder" and "Module Retargetable Folder" which contain the required NI dll's and also policy and config files.
See "image2.jpg" to see the list of the required merged modules. VC90 isn't the problem because it's already installed on the target computer.
Hope there's enough information about my situation...
So the main question is: how can I bypass MSI and do XCOPY deployment of the wrapper.
Regards,
-J-
I just created a wrapper that wraps NI-DAQmx driver's (.NET) functionality for a program (programmed using C++ Builder 5). I used Visual Studio 2008 (C++ project).
The problem is that I need to distribute this wrapper together with the program that uses it but there are some dependencies that I'm not aware of or libraries that I don't know about that prevents this.
I tried to copy the wrapper dll and the required dll's that are mentioned in NI's documentation to the program folder but it does no good. The program crashes when it tries to use any member of that NI-DAQmx library.
I then created a setup project for that wrapper and after I installed it everything worked just fine. So it's obvious that I don't have necessary dll's or because the installer installs something in the Windows' GAC (Global Assembly Cache) folder. You see, I changed setup project's setting so that it doesn't put files to a cabinet but uses "loose uncompressed files" option. See "image1.jpg".
After building the setup project there were two folders in the output folder: "Global Assembly Cache Folder" and "Module Retargetable Folder" which contain the required NI dll's and also policy and config files.
See "image2.jpg" to see the list of the required merged modules. VC90 isn't the problem because it's already installed on the target computer.
Hope there's enough information about my situation...
So the main question is: how can I bypass MSI and do XCOPY deployment of the wrapper.
Regards,
-J-