<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Rif.: Running multiple .exe after installer using .bat file in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253876#M1237953</link>
    <description>&lt;P&gt;When my batch file looks like this:&lt;/P&gt;
&lt;P&gt;@echo on&lt;BR /&gt;cd /d "%1"&lt;BR /&gt;"%1Newport.XPS.CommandInterface_x86.exe"&lt;BR /&gt;"%1Newport.XPS.CommandInterface_x64.exe"&lt;BR /&gt;"%1uEye_49610.exe"&lt;BR /&gt;"%1"Newport.XPS.CommandInterface_x86.exe&lt;BR /&gt;"%1"Newport.XPS.CommandInterface_x64.exe&lt;BR /&gt;"%1"uEye_49610.exe&lt;BR /&gt;Newport.XPS.CommandInterface_x86.exe&lt;BR /&gt;Newport.XPS.CommandInterface_x64.exe&lt;BR /&gt;uEye_49610.exe&lt;BR /&gt;pause&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get the following result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ongelofeloos_0-1662538085835.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/6bd7ee6045a62f7af2ab388e73bba430e7376d1d/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303737343869324339323937304330304146383134442f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="Ongelofeloos_0-1662538085835.png" alt="Ongelofeloos_0-1662538085835.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does not seem like it wants to switch drives or directories. Also %1 doesn't pass on the full path. It cuts when the first space appears.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2022 08:12:08 GMT</pubDate>
    <dc:creator>Ongelofeloos</dc:creator>
    <dc:date>2022-09-07T08:12:08Z</dc:date>
    <item>
      <title>Running multiple .exe after installer using .bat file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253647#M1237876</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created a batch file that should run executables sequentially. The problem is that the batch file is run in the wrong directory. It should be run in 'ProgramFilesFolder\COLLIN\installers.bat', but instead it is run in the installer directory. I could use "cd 'C:\Program Files (x86)\COLLIN\installers.bat'" but that would mean you can only install it in the default folder. Is it possible to include the executable files to the installer or is there another solution?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ongelofeloos_0-1662454993619.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/f8e01ee1c0165022e5991d423d4e1c619c11e2bf/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303736393569453335324146363230304237393643432f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="Ongelofeloos_0-1662454993619.png" alt="Ongelofeloos_0-1662454993619.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ongelofeloos_1-1662455370721.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/24aae1339e36ca85a14cff162c7fcc7c4ae82b2b/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303736393769434433393446393534454343304139332f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="Ongelofeloos_1-1662455370721.png" alt="Ongelofeloos_1-1662455370721.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 09:15:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253647#M1237876</guid>
      <dc:creator>Ongelofeloos</dc:creator>
      <dc:date>2022-09-06T09:15:17Z</dc:date>
    </item>
    <item>
      <title>Rif.: Running multiple .exe after installer using .bat file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253698#M1237889</link>
      <description>&lt;P&gt;Check the help of the Advanced settings:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;UL class="List-Hyphen"&gt;
&lt;LI&gt;&lt;STRONG&gt;Command line arguments&lt;/STRONG&gt;—Specifies the arguments to send to the application you want to run after the installation is complete. For each argument that represents a path, enclose the argument with quotation marks because paths can contain spaces. In addition to specifying standard arguments, you can embed any of the following variables in the &lt;STRONG&gt;Command line arguments&lt;/STRONG&gt; field. &lt;BR /&gt;
&lt;TABLE class="Bordered"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="Bordered"&gt;Command-Line Argument&lt;/TH&gt;
&lt;TH class="Bordered"&gt;Description&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="Bordered"&gt;&lt;SPAN class="Monospace"&gt;[INSTALLDIR]&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="Bordered"&gt;Application installation directory that the user selects.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="Bordered"&gt;&lt;SPAN class="Monospace"&gt;[DISTROOT]&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="Bordered"&gt;Full directory path containing the &lt;SPAN class="Monospace"&gt;setup.exe&lt;/SPAN&gt; file that launched this installer.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
If any of these strings are present at installation, the installer replaces them with the correct values before it sends the arguments to the application&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I guess that [INSTALLDIR] is what you are searching for. You can use the passed parameter in the bat or cmd file specifying "%1" in a command text.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:49:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253698#M1237889</guid>
      <dc:creator>pincpanter</dc:creator>
      <dc:date>2022-09-06T13:49:59Z</dc:date>
    </item>
    <item>
      <title>Rif.: Running multiple .exe after installer using .bat file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253855#M1237947</link>
      <description>&lt;P&gt;So I put [INSTALLDIR] as a command line argument and in the .bat file I write "%1/executable"?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 06:47:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253855#M1237947</guid>
      <dc:creator>Ongelofeloos</dc:creator>
      <dc:date>2022-09-07T06:47:48Z</dc:date>
    </item>
    <item>
      <title>Rif.: Running multiple .exe after installer using .bat file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253862#M1237948</link>
      <description>&lt;P&gt;I would use "%1executable_name", since [INSTALLDIR] includes the trailing separator according to the help.&lt;/P&gt;
&lt;P&gt;For a test, put&lt;/P&gt;
&lt;P&gt;pause&lt;/P&gt;
&lt;P&gt;as the last cmd line. The command prompt window will not close, waiting for you to press a key. This will allow you to check what's the final command.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 07:07:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253862#M1237948</guid>
      <dc:creator>pincpanter</dc:creator>
      <dc:date>2022-09-07T07:07:30Z</dc:date>
    </item>
    <item>
      <title>Rif.: Running multiple .exe after installer using .bat file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253876#M1237953</link>
      <description>&lt;P&gt;When my batch file looks like this:&lt;/P&gt;
&lt;P&gt;@echo on&lt;BR /&gt;cd /d "%1"&lt;BR /&gt;"%1Newport.XPS.CommandInterface_x86.exe"&lt;BR /&gt;"%1Newport.XPS.CommandInterface_x64.exe"&lt;BR /&gt;"%1uEye_49610.exe"&lt;BR /&gt;"%1"Newport.XPS.CommandInterface_x86.exe&lt;BR /&gt;"%1"Newport.XPS.CommandInterface_x64.exe&lt;BR /&gt;"%1"uEye_49610.exe&lt;BR /&gt;Newport.XPS.CommandInterface_x86.exe&lt;BR /&gt;Newport.XPS.CommandInterface_x64.exe&lt;BR /&gt;uEye_49610.exe&lt;BR /&gt;pause&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get the following result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ongelofeloos_0-1662538085835.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/6bd7ee6045a62f7af2ab388e73bba430e7376d1d/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303737343869324339323937304330304146383134442f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="Ongelofeloos_0-1662538085835.png" alt="Ongelofeloos_0-1662538085835.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It does not seem like it wants to switch drives or directories. Also %1 doesn't pass on the full path. It cuts when the first space appears.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 08:12:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253876#M1237953</guid>
      <dc:creator>Ongelofeloos</dc:creator>
      <dc:date>2022-09-07T08:12:08Z</dc:date>
    </item>
    <item>
      <title>Rif.: Running multiple .exe after installer using .bat file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253885#M1237956</link>
      <description>&lt;P&gt;Figured it out. Had to put [INSTALLDIR] between quotation marks.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 08:29:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253885#M1237956</guid>
      <dc:creator>Ongelofeloos</dc:creator>
      <dc:date>2022-09-07T08:29:45Z</dc:date>
    </item>
    <item>
      <title>Rif.: Running multiple .exe after installer using .bat file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253887#M1237958</link>
      <description>&lt;P&gt;From the 5th line you only have %1 in quotation marks, the full command must be in quotes, like in row 2-4.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 08:34:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Running-multiple-exe-after-installer-using-bat-file/m-p/4253887#M1237958</guid>
      <dc:creator>Yamaeda</dc:creator>
      <dc:date>2022-09-07T08:34:28Z</dc:date>
    </item>
  </channel>
</rss>

