LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Run application from CD or USB stick?

Hello,
Can I run a CVI application from a CD without installing that applicaton on the PC?
 
Steps:
1) create a distribution kit, choosing the RTE to be in the application directory
2) install the application using the distribution kit on the PC
3) Copy the complete application folder to a CD
4) Run the application from the CD on a PC with no RTE on it.
 
I tried that on one machine and it seems to work.
 
Question:
Is this guaranteed to work or was I just lucky?
 
Thanks,
Greg
 
0 Kudos
Message 1 of 3
(3,199 Views)
To my (small) knowledge, it looks good but:
- you just need cvirte.dll. If you need drivers for your hardware (NI and worse, non NI), the question would be: "How to make my app. running on the target computer with the distrib. kit created by CVI? Even with stuff installed in C:\Program Files\etc..." 🙂
- there can be a problem if the cvirte.dll is already installed on the target computer. Which dll your sofware will choose? What happened if the versions are differents?
0 Kudos
Message 2 of 3
(3,198 Views)
There is a defined order that dll files are searched for in windows.  The search order for Windows XP is:

  1. The directory from which the application loaded.
  2. The system directory. Use the GetSystemDirectory function to get the path of this directory.
  3. The 16-bit system directory. There is no function that obtains the path of this directory, but it is searched.
  4. The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
  5. The current directory.
  6. The directories that are listed in the PATH environment variable. Note that this does not include the per-application path specified by the App Paths registry key.
This is fully documented on MSDN

----
I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on Vision, a tool for understanding your test data. Visit me at www.cncsoftwaresolutions.com
Message 3 of 3
(3,173 Views)