<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Question on InstallTarget with /auto command line option</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/687a785238/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/687a785238/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/687a785238/</id><updated>2020-02-27T19:50:13.518000Z</updated><subtitle>Recent posts to Question on InstallTarget with /auto command line option</subtitle><entry><title>Question on InstallTarget with /auto command line option</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/687a785238/?limit=25#9178" rel="alternate"/><published>2020-02-27T19:50:13.518000Z</published><updated>2020-02-27T19:50:13.518000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com79f8d571af000d435a59851a6a7f0bb1fb0d8022</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Alexander Lokotkov&lt;/p&gt;
&lt;p&gt;Thanks for your help. It works perfectly.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Question on InstallTarget with /auto command line option</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/687a785238/?limit=25#655b" rel="alternate"/><published>2020-02-27T19:50:09.818000Z</published><updated>2020-02-27T19:50:09.818000Z</updated><author><name>Sabine.Mack</name><uri>https://forge.codesys.com/u/sabine-mack/</uri></author><id>https://forge.codesys.comcd7dc8930d167441be6543722ab75f9a37852d2c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;To use enviroment variables you need the InstallTarget.exe with version 1.1.0.0. It is part of the CoDeSys V2.3.4.1 setup.&lt;/p&gt;
&lt;p&gt;The options of InstallTarget are:&lt;/p&gt;
&lt;p&gt;&amp;lt;path installtarget-exe=""&amp;gt; "&amp;lt;path *.tnf="" info-file=""&amp;gt;" /auto &lt;span&gt;[&amp;lt;install directory=""&amp;gt;]&amp;lt;/install&amp;gt;&lt;/span&gt;&amp;lt;/path&amp;gt;&amp;lt;/path&amp;gt;&lt;/p&gt;
&lt;p&gt;If you want to use it in a Batch-File, this works:&lt;/p&gt;
&lt;p&gt;"%CDSDIR%\InstallTarget.exe" d:\work\fwio\tsp\fwio.tnf /auto %CDSDIR%\Targets\Fastwel&lt;/p&gt;
&lt;p&gt;(note the missing quotation marks)&lt;/p&gt;
&lt;p&gt;If you want to use it in an InstallShield script, this works:&lt;/p&gt;
&lt;p&gt;szCommand = '"' + TARGETDIR ^ 'InstallTarget.exe"';&lt;/p&gt;
&lt;p&gt;szCmdLine = '"' + szTNFFile + '" /auto ' + szInstallDir;&lt;/p&gt;
&lt;p&gt;if (LaunchAppAndWait (szCommand, szCmdLine, WAIT) &amp;lt; 0) then&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;MessageBox&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;@&lt;span class="nv"&gt;ERROR_INSTALLTARGET&lt;/span&gt;, &lt;span class="nv"&gt;SEVERE&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;endif;&lt;/p&gt;
&lt;p&gt;I hope that helps,&lt;/p&gt;
&lt;p&gt;Sabine Mack&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Question on InstallTarget with /auto command line option</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/687a785238/?limit=25#7fe3" rel="alternate"/><published>2020-02-27T19:50:08.436000Z</published><updated>2020-02-27T19:50:08.436000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com826a7c3bc8cb247170010e89ae6c4b23ded70b01</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Alexander Lokotkov&lt;/p&gt;
&lt;p&gt;Sorry, I am not sure that this is an appropriate forum for that kind of questions.&lt;/p&gt;
&lt;p&gt;I have the tnf-file containing the following (our target ID value replaced with XXXXX).&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[Targets]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Target1=fwio.trg,XXXXX&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[Files]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;In order to run the InstallTarget silently, I issue the following command from the bat-file:&lt;/p&gt;
&lt;p&gt;"%CDSDIR%"\InstallTarget.exe d:\work\fwio\tsp\fwio.tnf /auto "%CDSDIR%\Targets\Fastwel"&lt;/p&gt;
&lt;p&gt;where %CDSDIR% is an environment variable pointing to installtarget.exe location. The fwio.trg is located in d:\work\fwio\tsp.&lt;/p&gt;
&lt;p&gt;But this command doesn't install our target ("%CDSDIR%\Targets\Fastwel" remains empty).&lt;/p&gt;
&lt;p&gt;Could anyone please suggest the correct way to silently run the InstallTarget utility (in particular, from installshield script)?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Alexander Lokotkov&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>