Why Does My Batch File Not Work When Run After My Application Builder Installer?
Primary Software Version: 8.2.1
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW Full Development System
I have an application builder installer that is using the advanced installer property Run executable after Installation to run the batch file. The installer is calling the batch file but it is not behaving correctly. The batch file works fine when I run it, but when the installer runs it, nothing happens. How do I fix this?
The batch file is not working correctly because its working directory is not what you expect it to be. When you run the batch file yourself the working directory is the same as the location of the batch file. When the application builder installer runs the batch file, the working directory is the same location as the installer's setup.exe. It does not matter where you have the batch file installed, the working directory will be the location of setup.exe.
If you are trying to launch an application with your batch file, here are two ways to get it working. For both cases the batch file is run using the Run executable after installation installer option. This can be found in your installer's Properties under the Advanced category.
If you need help getting the installer to run the batch file, see the KnowledgeBases linked below.
KnowledgeBase 149BHCQH: How Do I Make My LabVIEW-built Installer Run an Executable After Installation?
KnowledgeBase 2A6ECPG4: How Can I Include Additional Installers with My LabVIEW Applications' Installer?
KnowledgeBase 2WCDS3DI: Creating a Batch File
KnowledgeBase 33DAKEJ4: Running a Batch File Automatically After an Installation to Access Installed Files
Report Date: 12/27/2007
Last Updated: 01/31/2008
Document ID: 4GQAERN9