title: App-V Calling an Exe in the VMFS due the environment variable
body: <p>I have two question regarding the latest App-V that comes with Windows 10. I sequenced an application which has the following structure:</p>
  
  <ul>
  <li>Program files\OwnApp\run.ps1</li>
  <li>Program files\Firefox\firefox.exe</li>
  <li>Program files\java (some old version)</li>
  </ul>
  
  <p>Now, I need to run Firefox through my own app/script, which is linked due the environment variable. But by using App-V, the env variables does not point to my vmfs but instead to my local drive. Is there any way, how I can link the PowerShell file to the correct Firefox version in my vmfs but without hardcoding?</p>
  
  <pre><code>    "${env:programfiles} (x86)$browser"
  </code></pre>
  
  <p>Besides, in my PowerShell file I create a log file in the app folder. Unfortunately, I get an access denied error unless I change the permission in the program data folder.</p>
  
  <pre><code>    Out-file : Access to the path 'C:\ProgramData\Microsoft\AppV\Client\Integration\AD721672-C59B-4FB4-9EBB-E23AD314A95D\Root\VFS\ProgramFilesX86\OwnApp\OwnApp.log' is denied.
  </code></pre>
  
  <p>How I can still write the file without manually changing permisson after installation? Was this not one benefit of AppV that the user has write permisson?</p>
  
  <p>Thanks in advance
  Stephan</p>