<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi everybody<br>
    </p>
    <p>I need to deploy a software to English and German Windows
      systems, which works flawlessly until German users also want to
      use the English version of said software. <br>
      <br>
      Since these cases are few, I thought about introducing a new
      environment variable to determine the correct language, but I have
      troubles understanding how the "switch" would work.</p>
    <p>Here's the language selection part of my package. <br>
    </p>
    <pre><span class="nt"><!-- Default language de -->
<variable</span> <span class="na">name=</span><span class="s">"PKG_LANG"</span> <span class="na">value=</span><span class="s">"de"</span><span class="nt">/></span>

<!-- Overwrite if lcid is en -->
<span class="nt"><variable</span> <span class="na">name=</span><span class="s">"PKG_LANG"</span> <span class="na">value=</span><span class="s">"en"</span> <span class="na">lcid=</span><span class="s">"</span><span class="s">409,809,c09,2809,1009,2409,3c09,4009,3c09,4009,3809,1809,2009,4409,1409,3409,4809,1c09,2c09,3009"</span><span class="nt">/></span>

</pre>
    <pre><span class="nt"><check</span> <span class="na">type=</span><span class="s">"registry"</span> <span class="na">condition=</span><span class="s">"equals"</span> <span class="na">path=</span><span class="s">"</span><span class="s"><code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment</code>\USERLANG"</span> <span class="na">value=</span><span class="s">"en"</span> <span class="nt">>
</span><span class="nt"><span class="nt"><variable</span> <span class="na">name=</span><span class="s">"PKG_LANG"</span> <span class="na">value=</span><span class="s">"en"</span><span class="nt">/>
</span></check>

As far as I understand, PKG_LANG should be assigned the value "en" when the USERLANG env var is found and set to "en". The logs show that the registry Key exists 
and has the correct value but PKG_LANG still stays on "de". 

Any hints are appreciated. 

Thanks

Tom
</span></pre>
  </body>
</html>