02-15-2010
01:18 PM
- last edited on
06-03-2024
10:32 PM
by
Content Cleaner
Did you know there is a programmatic interface to Application Builder? In LabVIEW 2009 and later, you can programmatically build EXEs, DLLs, and Source Distributions with the VIs in the following location:
[LabVIEW]\vi.lib\AppBuilder\AB_API
These VIs contain a subset of the functionality provided in the App Builder UI for creating, editing, and building these three build specification types. Note that there is no shipping documentation for these VIs, nor are there any shipping examples. The example attached below demonstrates some basic functionality:
Note that the App Builder API shipped with LabVIEW 8.6 as well, but only with the DLL and Source Dist build types. EXEs were added to the App Builder API in LabVIEW 2009.
02-15-2010 04:23 PM
I was actually talking to a collegue about this kind of thing this morning so very good timing Darren! 🙂
One of the things I was interested in doing was retrieving a build's version number programatically (for a number of reasons). One such use case is shown in the snippet below. My question, as shown in the snippet, is "Is there an easy way to do this using the AB API?"
(I know I have used the EXE for the installer, but I couldn't see any installer VIs in the folder you suggested, and this image is more as an illustration than an actual use-case)
This would be really great as we could then tie un a whole bunch of things such as SVN manipulations (update X, commit Y), set installer version to match EXEs, before sending build to target destination (e.g. ftp server, etc).
02-16-2010 09:40 AM
02-16-2010 09:52 AM
Bob P wrote:
There's not a public way to get version number like there is to set version number. I have created a request # for a Get Version VI: 208246.
We are evaluating whether to add an api for the Installer Builder.
Is that a post by Dr RT?
Nice to see your still around.
Ben
02-16-2010 10:08 AM
Hi Ben, yep same person, new screen name. 🙂
02-16-2010 10:10 AM - edited 02-16-2010 10:14 AM
<duplicate post, server snafu>
02-17-2010 05:48 AM
02-17-2010 09:35 AM
jcarmody wrote:
I don't mean to be obtuse, but when would this be helpful?
I write programs to build executables and installers and thought this would be the next step, but I can't think of how.
Thanks,
If all you need to do is build, this API offers you no additional utility beyond vi.lib\AppBuilder\BuildTargetBuildSpecification.vi as described in your link. The API is useful to those who need to create new build specifications, edit existing build specifications, *and* build.
It's helpful because it's programmatic.
02-17-2010 09:43 AM
I'm missing something basic. What situation would be improved by programmatically creating build specifications? The API's existence tells me that there are use-cases. Could you give me a for-instance?
Bob P wrote:[...] The API is useful to those who need to create new build specifications, edit existing build specifications, *and* build.
It's helpful because it's programmatic.
02-22-2010 09:04 AM