<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number:  Win32NT             10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Any other software?
Windows Terminal built from git clone 9/92019.  Have noticed it in the past.
"><pre lang="Windows" class="notranslate"><code class="notranslate">Windows build number:  Win32NT             10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Any other software?
Windows Terminal built from git clone 9/92019.  Have noticed it in the past.

</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Build Microsoft Terminal<br>
git clone <a href="https://github.com/microsoft/Terminal.git">https://github.com/microsoft/Terminal.git</a><br>
cd Terminal<br>
git submodule update --init --recursive<br>
nuget restore OpenConsole.sln<br>
Open VS2019<br>
Set build to release X64<br>
Build Solution<br>
Deploy Solution</p>

<p dir="auto">Launch Terminal from Start menu.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">At this point the build directory should be able to be deleted.  Solution was deployed.  Build dirs should not be used</p>

<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Build dir tree is still used by running deployed release build app<br>
Terminal\src\cascadia\CascadiaPackage\bin\x64\Release\AppX<br>
Files opened by running "Windows Terminal.exe" verified by  Process Explorer.</p>

<p dir="auto">Not sure why it does this, but it shouldn't</p>
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Microsoft Windows [Version 10.0.18936.1000]
Windows Terminal version (if applicable):  Version: 0.3.2171.0

Any other software?"><pre class="notranslate"><code class="notranslate">Microsoft Windows [Version 10.0.18936.1000]
Windows Terminal version (if applicable):  Version: 0.3.2171.0

Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Run powershell as admin<br>
Run the following command: choco upgrade microsoft-windows-terminal</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">I expect Chocolatey to install the latest version of Terminal (0.4.2382.0)</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The installation fails with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RROR: The running command stopped because the preference variable &quot;ErrorActionPreference&quot; or common parameter is set to Stop: Deployment failed with HRESULT: 0x80073CFB, The provided package is already installed, and reinstallation of the package was blocked. Check the AppXDeployment-Server event log for details.

Deployment of package Microsoft.WindowsTerminal_0.3.2171.0_x64__8wekyb3d8bbwe was blocked because the provided package has the same identity as an already-installed package but the contents are different. Increment the version number of the package to be installed, or remove the old package for every user on the system before installing this package.

NOTE: For additional information, look for [ActivityId] a1d00f98-5894-0000-f26c-d5a19458d501 in the Event Log or use the command line Get-AppPackageLog -ActivityID a1d00f98-5894-0000-f26c-d5a19458d501

The upgrade of microsoft-windows-terminal was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyinstall.ps1'.
 See log for details.

Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - microsoft-windows-terminal (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyinstall.ps1'.
 See log for details."><pre class="notranslate"><code class="notranslate">RROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Deployment failed with HRESULT: 0x80073CFB, The provided package is already installed, and reinstallation of the package was blocked. Check the AppXDeployment-Server event log for details.

Deployment of package Microsoft.WindowsTerminal_0.3.2171.0_x64__8wekyb3d8bbwe was blocked because the provided package has the same identity as an already-installed package but the contents are different. Increment the version number of the package to be installed, or remove the old package for every user on the system before installing this package.

NOTE: For additional information, look for [ActivityId] a1d00f98-5894-0000-f26c-d5a19458d501 in the Event Log or use the command line Get-AppPackageLog -ActivityID a1d00f98-5894-0000-f26c-d5a19458d501

The upgrade of microsoft-windows-terminal was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyinstall.ps1'.
 See log for details.

Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - microsoft-windows-terminal (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyinstall.ps1'.
 See log for details.
</code></pre></div>
<p dir="auto">Full logfile:<br>
<a href="https://gist.github.com/Taubin/57643031f49ab624cfe5375d79f7b93e">https://gist.github.com/Taubin/57643031f49ab624cfe5375d79f7b93e</a></p>