<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Winui on ErrorZap</title><link>https://errorzap.com/tags/winui/</link><description>Recent content in Winui on ErrorZap</description><image><title>ErrorZap</title><url>https://errorzap.com/og.png</url><link>https://errorzap.com/og.png</link></image><generator>Hugo</generator><language>en-US</language><copyright>ErrorZap</copyright><lastBuildDate>Thu, 19 Nov 2026 09:00:00 -0700</lastBuildDate><atom:link href="https://errorzap.com/tags/winui/index.xml" rel="self" type="application/rss+xml"/><item><title>The App Built Cleanly and Launched the Old Package</title><link>https://errorzap.com/posts/the-app-built-cleanly-and-launched-the-old-package/</link><pubDate>Thu, 19 Nov 2026 09:00:00 -0700</pubDate><guid>https://errorzap.com/posts/the-app-built-cleanly-and-launched-the-old-package/</guid><description>The compiler was right, the tests were green, and Windows still opened yesterday&amp;rsquo;s app. Build success had nothing to do with runtime identity.</description><content:encoded><![CDATA[<p>The app built without errors. That fact wasted an hour.</p>
<p>I had changed the interface, rebuilt the package, and launched it expecting the new behavior. Windows opened a perfectly responsive window containing the old behavior. Because the build had succeeded, every instinct pointed back toward the source code.</p>
<p>Maybe the XAML was cached. Maybe the resource dictionary was wrong. Maybe the new binary had not copied. Maybe the framework was doing framework things.</p>
<p>The code was fine. Windows had launched a different installed package.</p>
<h2 id="a-build-does-not-choose-what-runs">A build does not choose what runs</h2>
<p>On packaged Windows apps, several identities can coexist:</p>
<ul>
<li>the source tree you edited;</li>
<li>the binary produced by the current build;</li>
<li>a registered development package;</li>
<li>a Store-installed or sideloaded package under a different name or publisher;</li>
<li>a shortcut pinned to an older identity;</li>
<li>a running process that never actually closed.</li>
</ul>
<p>The compiler proves that one source tree can produce an artifact. It does not prove that the Start menu, shortcut, shell activation, or debugger will launch that artifact.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-text" data-lang="text"><span style="display:flex;"><span>source -&gt; build output -&gt; package registration -&gt; shell activation -&gt; process
</span></span><span style="display:flex;"><span>   OK         OK                old                    old           old UI
</span></span></code></pre></div><p>The missing test was identity.</p>
<h2 id="the-window-is-the-receipt">The window is the receipt</h2>
<p>The fastest useful acceptance check was not another build. It was to put a visible version marker in the app, launch through the same path a human would use, and read the process/package identity back from Windows.</p>
<p>That turns a vague complaint—&ldquo;it still looks old&rdquo;—into a test:</p>
<ol>
<li>Close every process for the app.</li>
<li>Enumerate registered packages with the relevant family name.</li>
<li>Confirm the package path and version you expect.</li>
<li>Launch from the user&rsquo;s real shortcut or Start entry.</li>
<li>Verify the running executable path and visible build marker.</li>
</ol>
<p>If those do not line up, stop debugging application logic. You have a deployment or registration problem.</p>
<h2 id="stale-registration-is-a-polite-liar">Stale registration is a polite liar</h2>
<p>This failure is irritating because every subsystem tells a partial truth.</p>
<p>The build tool says it succeeded. True.</p>
<p>The installer says a package exists. True.</p>
<p>Windows opens an app with the right name and icon. Also true.</p>
<p>None of those statements answers the actual question: <em>Did the user launch the thing I just built?</em></p>
<p>This is the same trap seen in servers deployed to an old address and scripts imported from an installed wheel instead of the edited source. The command runs. The target is wrong.</p>
<h2 id="test-the-path-people-use">Test the path people use</h2>
<p>Developer shortcuts can conceal packaging bugs. Debug launch can bypass the shell. A direct executable can work while the registered app remains stale. Conversely, reinstalling packages repeatedly can destroy useful evidence about which identity owned the shortcut.</p>
<p>The final test should follow the human route:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-text" data-lang="text"><span style="display:flex;"><span>Start menu -&gt; app identity -&gt; package path -&gt; process -&gt; visible behavior
</span></span></code></pre></div><p>And the negative test matters too: the old package path should no longer own the activation.</p>
<p>The lesson is embarrassingly broad. A clean build is evidence about compilation. A responsive window is evidence about a process. Only identity-pinned launch and visible behavior prove that the new app reached the user.</p>
]]></content:encoded></item></channel></rss>