title: Custom Action to set INSTALLFOLDER path
body: <p>So I created this customAction that gets me the path of another app using Registries</p>
  <pre><code>string value = Registry.GetValue(userRoot, key, -1).ToString();
  session[&quot;INSTALLLOCATION&quot;] = value; 
  </code></pre>
  <p>And it works. The problem is how I send it back to the .wxs file and set the installation path of something to be that string value. I have this thing in the Wix file:</p>
  <pre><code>
      &lt;CustomAction Id=&quot;CustomAction&quot; Property=&quot;CustomAction2&quot; Value=&quot;path=[INSTALLLOCATION]&quot; /&gt;
      
      &lt;Binary Id=&quot;CustomActionBinary&quot; SourceFile=&quot;$(var.ProAdmin_TargetDir)ExtractRegistryPath\bin\Debug\ExtractRegistryPath.CA.dll&quot;/&gt;
      &lt;CustomAction Id=&quot;CustomAction2&quot; Impersonate=&quot;no&quot; BinaryKey=&quot;CustomActionBinary&quot; DllEntry=&quot;CustomAction1&quot; Return=&quot;check&quot; Execute=&quot;deferred&quot;/&gt;
  
  &lt;InstallUISequence&gt;
        &lt;Custom Action=&quot;CustomAction&quot; Before=&quot;CustomAction2&quot; /&gt;
        &lt;Custom Action='CustomAction2' Before=&quot;ExecuteAction&quot; /&gt;
      &lt;/InstallUISequence&gt;
  
  </code></pre>
  <p>This thing throws an 2762 error code.</p>