LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

exectable runs in one folder only

If an executable is installed using the deployment tool dist kit) in CVI, and the executable is then copied to a different folder, is it possible to run the executable from the new folder?  I have heard that it will not, that a popup comes up and indicates the executable is not in the correct folder.

Older versions of CVI (pre 8.0) didn't do this as I recall.

Is this behavior a consequence of the dist kit install, or is it a consequence of the target settings in the build of the executable? 

Menchar
0 Kudos
Message 1 of 3
(2,994 Views)
There are only a couple reasons I can think of why moving the executable might cause a problem.  The first is if the executable is moved, but a UIR file from which it loads the user interface is not also moved.  This can be avoided by setting the "embed uir" option in the project's target settings.  The other potential problem is if your distribution installs the program with a local copy of the CVI run-time engine ("Install ... in the application directory" option on the Advanced tab of the distribution settings).  In this case, if there is not a system-global installation of the CVI run-time engine (in the Windows system directory), then moving the executable out of the application directory will prevent it from loading the run-time engine.

If you run into a problem situation that is not explained by either of these potential causes, please let us know what the exact message of the popup is and we'll investigate.

Hope this helps.

Mert A.
National Instruments
0 Kudos
Message 2 of 3
(2,989 Views)
Mert -

Thanks, I was surprised by this report also, I'll follow up on it.

It almost sounds like there is something in the MSI doing it, nothing that NI is or isn't doing.

Menchar
0 Kudos
Message 3 of 3
(2,983 Views)