Include additional installers or not
#1
Posted 27 April 2012 - 05:56 AM
I have an application that uses both VISA and DAQmx. I often email new releases of the application to the "customers" around the world. The built exe-file is around 10MB, so it can be emailed quite easially.
The zipped file size with all installer included (LabVIEW runtime, VISA and DAQmx) is around 210MB. The additonal installer are only required at the first installation, so I don't want distribute them outside the office.
The problem is that not all "new cutomers" read the instructions that they should download and install VISA and DAQmx(and, of course, LabVIEW runtime) manually from NI.
Is there a way to look in the main code(from the "splash" starter) and look if anything is missing(in this case VISA or DAQmx) and then show a dialog or perhaps, try to download the missing driver. Another way is perhaps to look in the registry after DAQmx or VISA?
How do you distibute your applications?
#2
Posted 27 April 2012 - 02:46 PM
As for your actual question: Sure, you can create a launcher that looks for the essential components then error out and close should they not be there, or dynamically load the main app if all is well. It's a good place to put custom license control stuff too.

#3
Posted 27 April 2012 - 03:09 PM
I like the idea of pinging the system to see if the needed drivers are installed. Then prompting the user to download.
I have used installers. I find them very large and they take time to set up. However customers are familiar with installers and they do have their place.
There are also core versions of DAQmx that are smaller file size. These look to be promising. However in my experience there seems to be always one little feature I use that is not supported in the core and I need the full.
Good Luck!
#4
Posted 27 April 2012 - 03:28 PM
Do you make sure that both installers have the same component code (unique installer ID)?A side note: when I'm in this situation, I create two installers:.....
If I would make two of these installers I would make the full version one version higher than the
This makes sure that if the user installed
Full 1.2.4
Greetings,
Ton
Edited by Ton Plomp, 28 April 2012 - 05:00 PM.
#5
Posted 27 April 2012 - 03:48 PM
Ok, we're confusing terms: "Base" = Full (it's got everything including all the other installers), then "Upgrade". Can you repost using those terms, because I' mnot understanding what you're trying to say when we mix the terms.If I would make two of these installers I would make the full version one version higher than the base installer.

#6
Posted 30 April 2012 - 09:39 AM
Have a look at this. It is an API to interact with MAX.
I like the idea of pinging the system to see if the needed drivers are installed. Then prompting the user to download.
I have used installers. I find them very large and they take time to set up. However customers are familiar with installers and they do have their place.
There are also core versions of DAQmx that are smaller file size. These look to be promising. However in my experience there seems to be always one little feature I use that is not supported in the core and I need the full.
Good Luck!
The problem with MAX API-functions is that you have to have MAX installed first... Catch 22
#7
Posted 30 April 2012 - 12:48 PM
The problem with MAX API-functions is that you have to have MAX installed first... Catch 22. The API was 155MB to install as well...
Right you are...
I just include a readme text file with a list of supporting software (i.e. runtimes, drivers, etc). I am usually doing the initial system setup for my customers. I install all the necessary hardware.
I have had customers where the program will be distributed around. In that case I make an installer. I have had good luck with batch files. They are handy when you need to do something outside the LV environmet. I am wondering if you could create a batch file that could check to see if the necessary drivers are installed. If drivers are present run the installer Else display a message.
#8
Posted 30 April 2012 - 07:35 PM
#9
Posted 30 April 2012 - 09:03 PM
- VISA: HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\NI-VISA
- NI- DAQ: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\National Instruments\NI-DAQ\CurrentVersion
(HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\LabVIEW Run-Time)












