<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Can Codesys report its installation directory?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bd5a2cdd2d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bd5a2cdd2d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/bd5a2cdd2d/</id><updated>2020-02-27T13:55:52.457000Z</updated><subtitle>Recent posts to Can Codesys report its installation directory?</subtitle><entry><title>Can Codesys report its installation directory?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bd5a2cdd2d/?limit=25#baf2" rel="alternate"/><published>2020-02-27T13:55:52.457000Z</published><updated>2020-02-27T13:55:52.457000Z</updated><author><name>DavidD</name><uri>https://forge.codesys.com/u/davidd/</uri></author><id>https://forge.codesys.com76204e10dfc621173173dad8d5727e02a4bdd3fe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ah! It looks like I can just use relative addressing, and not worry about the installation directory at all.&lt;/p&gt;
&lt;p&gt;so something like ```&lt;/p&gt;
&lt;p&gt;&amp;lt;tocroot&amp;gt;CODESYS.chm::/f_welcome_to_codesys.htm&amp;lt;/tocroot&amp;gt;&lt;/p&gt;
&lt;p&gt;``` &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Can Codesys report its installation directory?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bd5a2cdd2d/?limit=25#e8b9" rel="alternate"/><published>2020-02-27T13:55:51.772000Z</published><updated>2020-02-27T13:55:51.772000Z</updated><author><name>DavidD</name><uri>https://forge.codesys.com/u/davidd/</uri></author><id>https://forge.codesys.com1716565d1a9bf44d5fbebfc8d4006d9b94410480</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;br/&gt;
we are adding extra HTML Help (.CHM files) to our package, and using the XML 'merge file' mechanism to tell the help system where to place these extra CHMs in the table of contents.&lt;/p&gt;
&lt;p&gt;Currently our merge files have a line such as &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;TOCRoot&amp;gt;&lt;/span&gt;ms-its:C:\Program Files (x86)\3S CODESYS\CODESYS\Online Help\en\CODESYS.chm::/f_welcome_to_codesys.htm &lt;span class="nt"&gt;&amp;lt;/TOCRoot&amp;gt;&lt;/span&gt; 
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Obviously, this makes an assumption about where Codesys is installed, which may not be correct. &lt;br/&gt;
Is the Codesys installation directory available as an environment variable, so we can use this in the URLs in our merge files?&lt;/p&gt;
&lt;p&gt;For example, something like:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;TOCRoot&amp;gt;&lt;/span&gt;ms-its:%CODESYS_INSTALL_DIRECTORY%\Online Help\en\CODESYS.chm::/f_welcome_to_codesys.htm &lt;span class="nt"&gt;&amp;lt;/TOCRoot&amp;gt;&lt;/span&gt; 
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry></feed>