LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Stand alone executable without installing CVIRTE, is it possible ?

Hi,

I'm using labwindows CVI 6.0 full,

Here is what I would like to do, I have a CVI application that will be distributed with a handheld device. for some people depending on there OS system I will provide the adequate driver. I would like to do some kind of wizard installer, A panel that will automatically popup when the user insert the CD. And that popu will detect the OS (already done) and give the user to select either to install the driver or the software. But my problem is that I need to install the wizard first and then the user can install whatever he wants. This is kind of dumb...because it will create a wizard folder in the Program files and another one for the software. Is it possible to
only make a small executable that will not require any kind of installation procedure ?

thank you,
0 Kudos
Message 1 of 5
(3,607 Views)
If you use any CVI function, then you will require the CVI Run-time engine, just like Visual C++. You can build executables that do NOT use the CVI Run-time engine by going to Build->Target Settings... and changing runtime support to Instrument driver only. However, they will still use a small subset of the CVI function in the instrsup.dll.

If I understand what you are wanting to do though, you can do it. What you would do, is just put the RTE on the CD in the application directory with your wizard program. The easiest way to do this would be this.

1) Make you wizard application.
2) Create a distribution kit for the application MAKING SURE to set the "Run-time engine install location" to application directory.
3) Install the wizard application
on the local machine.
4) Copy the contents of the application directory to the CD and write an autorun.inf file to launch the EXE when the CD is inserted.

Best Regards,

Chris Matthews
National Instruments
Message 2 of 5
(3,607 Views)
Hi Chris,

Thank you for your help again :-), another problem is once I've installed the wizard it will go on the Hard drive probably C:\program files\... but after all the other setups for the software and drivers will be on the CD. And I don't know what is the letter of that drive.

What I understand from your suggestion is, first time the user insert the CD I autorun the installation of the wizard. then how do I automatically run my wizard after the installation ?...once the wizard is running (from the C drive) how do I execute it from the CD, finding the CD letter drive ?

I really need to do this, because I want to make my application Newbie proof, the problem is if the user install the wrong driver with the wrong OS, it will crash and then its har
d to remove all the bad stuff.

you guys should create a stand-alone option with basic code, usually peoples who use CVI also use it with a device connected to it isn't the idea of using National CVI ?
0 Kudos
Message 3 of 5
(3,607 Views)
No, that wasn't what I was saying. What I was suggesting was NOT to install the wizard app on the hard drive at all. Put the application directly on the CD and run it from the CD with the CVI RTE in the same directory.

As for your other question, you can use the SDK to find out the CD-ROM drive letter. I haven't done this, but you should be able to find out how from the SDK help. I know there is a GetLogicalDrives function that will tell you what drives exist.
0 Kudos
Message 4 of 5
(3,607 Views)
Hi,

Yes I did what what you said and I tried it, it works fine ! 🙂

Thank you very much, you saved my day !
0 Kudos
Message 5 of 5
(3,607 Views)