Example Programs

Showing results for 
Search instead for 
Did you mean: 

Standalone LabVIEW-built Mac Application with Post-Build Action

This VI is intended to be used as a Post Build Action in a Build Application Specification on Mac. The VI installs the LabVIEW Run-Time Engine inside the built application so that it can be used as a completely standalone application and not depend on a separate installation of the LabVIEW Run-Time Engine.

This VI will copy the corresponding version of the LabVIEW Run-Time Engine into the application you are building and then remove all but the core Run-Time engine components. If your application has dependency on other components of the Run-Time Engine (MathScript, HTTP VIs, Sound VIs, etc), you can modify which components are removed by removing the corresponding item from the Unnecessary Runtime Engine Parts control in the VI.

The action then compresses the .app (.zip) to make it ready for distribution and deletes the .aliases and Preferences files.


  • LabVIEW 2012 (or compatible)

Steps to Implement or Execute Code

  1. Create a new Project
  2. Create a Build Specification (make sure to set the top level VI)
  3. In the Pre/Post Build Actions for the Build Specification, set this “Install Runtime Engine 2012 NIVerified.vi” as the "Execute VI after build"
  4. Observe that the Run-Time Engine is installed directly in your application and a .zip file of your application is next to it
  5. This application can be run on computers without first installing the LabVIEW Run-Time Engine


Additional Information or References
VI Block Diagram


 **This document has been updated to meet the current required format for the NI Code Exchange.**