title: Environment variable not recognized [not available] for [Run] programs in Inno Setup
body: <p>I have a <code>license.exe</code> file that I call in my setup code at the end,</p>
  <p>The code needs the environment variable to be set before working correctly,</p>
  <p>The code is as follows:</p>
  <pre><code>[Registry]
  ; set PATH
  Root: HKLM; \
      Subkey: &quot;SYSTEM\CurrentControlSet\Control\Session Manager\Environment&quot;; \
      ValueType: string; ValueName: &quot;PATH&quot;; ValueData: &quot;{app}&quot;
  
  [Setup]
  ; Tell Windows Explorer to reload the environment
  ChangesEnvironment=yes
  
  [Run]
  Filename: &quot;{app}\temp\installation_files\license.exe&quot;;
  </code></pre>
  <p>Here the code executes, but does not find the correct path.</p>
  <p>When I check the system environment variable, it is set correctly,</p>
  <p>When I run the <code>license.exe</code> code afterwards manually, it works correctly and sees the environment variable.</p>
  <p>Can someone tell me how to fix this?</p>
  <p>Or how to delay the <code>[Run]</code> section until the system recognizes the environment variable?</p>