07-13-2011 08:46 AM
I'm creating a program that communicates with an external USB device not from NI. This device needs to have the drivers installed so that I can do library function calls and communicate with the device. It has a silent installer (*.exe filetype) that I would like to fun automatically when a user runs the isntaller for my program. I don't see a way to incorporate that installer into my program installer. Is this possible to do or will I just need to specify that users also need to run the driver install file?
Thanks,
Jeff
Solved! Go to Solution.
07-13-2011 08:50 AM
You can build an installer that runs both installer (You can use inno setup (for free) to build this installer)
07-13-2011 08:57 AM
I've done this with some installers using the option to run an executable at the completion of installation:
There may be some problems with MSI still being locked when the second installer is called. I think the way around this is to create a batch file. It's been a while so I don't remember all the details.
07-13-2011 11:03 AM
Thanks. That looks like the option I was looking for, it just wasn't where I expected it to be.
08-29-2011 12:57 PM
Yep, MSI installers do not run after the main installation. Can you recall the details? Thanks...
08-29-2011 01:13 PM
One thing I have found after using the above solution is that it gets ugly trying to uninstall and update the software I'm developing. My installer package installs a driver for a device. If you blindly run the driver installer after the LV installer then it pops up an error stating that the driver is already installed (by nature of how that particular driver is set). So any time I update my program and have someone install the newer revision they'll get an error running the installer because it tries to run the driver installer and doens't need it at that point.
Can you create an MSI installer from LV code?
08-29-2011 01:23 PM
08-29-2011 04:32 PM - edited 08-29-2011 04:35 PM
Well, there is a problem with running MSI from a bat file. For some reason it won't launch if I specify it in bat files, however the MSI runs when it is double-clicked. I found a reference on the NI site, however they recommend to use bat files for versions 7.1. and earlier.