Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

What files related to NI-DAQ must be included in the application setup?

Using a PCI-6024E,I developed a medical signal collection system. The data acquisition software was developed by Visual C++. I tried to build a SETUP program for it by the InstallShield. Except the "*.exe" file of the software and some data files, some "*.DLL" files related to the NI-DAQ were included. Unfortunately, when I installed it to a computer and ran it, I got an error message:"The application failed to initialize properly (0xc0000142)". I think I may miss some files that should be included. I really appreciate you for any comments on the problem.
0 Kudos
Message 1 of 5
(3,297 Views)
Use depends.exe to check what files are necessary for your program.
This programm is standart tool in MSVC++.
0 Kudos
Message 2 of 5
(3,297 Views)
You also need to make sure that you have installed the NI-DAQ driver software(preferably the same version you used to develop) on your target machine. Im not sure if InstallSheild will be able to install all the necesary files for you. I would recommend running a silent install for NI-DAQ after your program installs, perhaps using a batch file. You can run a silent install by using the the following command line options

"path to NI-DAQ install files"\setup.exe /q /r:n

These are commands that work with any msi installer.

You can obtain NI-DAQ from here

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 3 of 5
(3,297 Views)
Thanks a lot for your replies.

According to your replies, I downloaded the "nidaq693" and ran it to get the setup.exe and others. Then I ran the following command from the 'run' box: "path to setup.exe\setup/q/r:n". But I got a error message: 'path\setup.exe/q/r:n is not accessible. The filename, directory name, or volume label syntax is incorrect.'
And I built a batch file: setup.bat like
"path\myApplication\setup.exe
path\NI_DAQ\setup.exe/q/r:n"
and copied all files to CD-ROM. Then ran 'setup.bat', I also got an error message: "Invalid command line parameters"

Could you give me more comments on the problem?

Best Regards!

Kylin
0 Kudos
Message 4 of 5
(3,297 Views)
try using setup.exe /q in the folder contains the ni-daq setup files, just to be sure that its not the command line parameters that are wrong. One other thing is to make sure that the path is correct.
The "/q" option is just to start the install silently. so its not doing anything special. Its part of the standard msi command line parameters

Bilal
Bilal Durrani
NI
0 Kudos
Message 5 of 5
(3,297 Views)