Building an Executable with LabVIEW 8.x and Database Connectivity ToolsetPrimary Software: LabVIEW Toolkits>>Database Connectivity ToolsetPrimary Software Version: 1.0.1 Primary Software Fixed Version: N/A Secondary Software: LabVIEW Toolkits>>Application Builder
Problem: I know how to build an installer using the Application Builder tools in LabVIEW 8.x. How can I add the necessary support to a LabVIEW executable for the Database Connectivity Toolset? Solution: The Database Connectivity Toolset has an old style build script that includes the necessary files for distributing an executable that uses this toolset. LabVIEW 8.0 and later has a utility to convert build scripts from LabVIEW 7.1 and previous into the build specifications used by LabVIEW 8.0 and later. In LabVIEW select Tools»Convert Build Script from the pulldown menu. This will create a new LabVIEW project using an old build script. The build script for the Database Connectivity Toolset will be located at the path <labview>/Database/Database application template.bld where <labview> is the path to your LabVIEW installation. After the project is built add your VIs to the project.Once your project is complete right-click on Application under Build Specifications and select Properties. Select the Source Files category to view the files included in your build. Make sure you see mdac_typ.exe. This is the MDAC 2.5 installer and is required for the Database Connectivity Toolset VIs to work. Select this file and the other related files and add them as support files to the application. Add your VI as a top level VI. Click the Build button. Next, right-click on the Installer under Build Specifications and select Properties. In addition to adding the application and additional files as source files for the installer, select the Advanced category and specify that mdac_typ.exe is automatically run when you install your application. Click Build to build the installer. You are now ready to distribute the application. For additional information on including Data Links and DSNs in your application, please refer to Chapter 6 of the Database Connectivity Toolset User Manual. Related Links: KnowledgeBase 2SJG16HM: Building Stand-Alone Executables With Database Connectivity Toolkit VIs Product Manuals: Database Connectivity Toolset User Manual DevZone Document: Converting a .bld File from a Previous Version of LabVIEW into a Build Specification Attachments:
Report Date: 06/28/2006 Last Updated: 09/21/2006 Document ID: 3YR8K3G2 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
