Originally created by: Alexander Lokotkov
Sorry, I am not sure that this is an appropriate forum for that kind of questions.
I have the tnf-file containing the following (our target ID value replaced with XXXXX).
In order to run the InstallTarget silently, I issue the following command from the bat-file:
"%CDSDIR%"\InstallTarget.exe d:\work\fwio\tsp\fwio.tnf /auto "%CDSDIR%\Targets\Fastwel"
where %CDSDIR% is an environment variable pointing to installtarget.exe location. The fwio.trg is located in d:\work\fwio\tsp.
But this command doesn't install our target ("%CDSDIR%\Targets\Fastwel" remains empty).
Could anyone please suggest the correct way to silently run the InstallTarget utility (in particular, from installshield script)?
Thanks in advance.
To use enviroment variables you need the InstallTarget.exe with version 220.127.116.11. It is part of the CoDeSys V18.104.22.168 setup.
The options of InstallTarget are:
<path installtarget-exe=""> "<path *.tnf="" info-file="">" /auto [<install directory="">]</install></path></path>
If you want to use it in a Batch-File, this works:
"%CDSDIR%\InstallTarget.exe" d:\work\fwio\tsp\fwio.tnf /auto %CDSDIR%\Targets\Fastwel
(note the missing quotation marks)
If you want to use it in an InstallShield script, this works:
szCommand = '"' + TARGETDIR ^ 'InstallTarget.exe"';
szCmdLine = '"' + szTNFFile + '" /auto ' + szInstallDir;
if (LaunchAppAndWait (szCommand, szCmdLine, WAIT) < 0) then
I hope that helps,
Thanks for your help. It works perfectly.
Log in to post a comment.