LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Installed application into WinXP Virtual Machine gave error "This application has failed to start because the application configuration is incorrect"

I created my applications in MSVC 2008, and they use CVI 9.0.1 libraries.  If I install the applications into the same machine I created the (setup.exe) installer *.CDS file, then the install works fine.

 

However, if I run the installer (*.CDS) output file (setup.exe) in a virtual machine (VM), with bare Windows XP O/S, running the same *.EXE application (that worked on my machine) did not work.  It gave the error.  The CDS file is set up to install the CVI to the machine (not subdirectory of the project).

 

c:\Program Files\myApp.exe

This application has failed to start because the application configuration is incorrect.  Reinstalling the application may fix this problem.

 

When I uninstall the application, restart the VM, and re-install the application again, I get the same error.  When I copy the working files from my machine directly into the VM, I get the same error! 

 

When I installed a simple (hello world-type) CVI application, I actually get the same error...

 

Question: is the CVI-RTE not getting installed correctly?  is there a setting in the Distribution that I am not selecting?

 

Thanks.

0 Kudos
Message 1 of 2
(3,248 Views)

In my experience, this message appears when the Microsoft VC runtime is missing from the target machine, it doesn't have anything to do with the CVI runtime. You have a number of options, which one works for you depends on a number of things, not all of which I know or indeed understand:

 

  1. Change the Visual Studio project settings (Configuration Properties|C/C++|Code Generation|Runtime Library) to link to the static multithreaded library (/MT) rather than the DLL library (/MD).
  2. Include the VC runtime as a merge module within your application distribution kit. The merge module is usually C:\Program Files\Common Files\Merge Modules\Microsoft_VC90_CRT_x86.msm
  3. Explicitly install the VC runtime redistributable on the target machine. The redistributable can be downloaded here.

Hope that helps.

--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 2
(3,220 Views)