fix(install): prevent install loop when re-running original exe#118
Closed
fix(install): prevent install loop when re-running original exe#118
Conversation
Add standardized scaffolding: expand .gitignore, add .gitattributes, dependabot.yml, DebugMCP config, and permissions block on deploy-website workflow. Fix Program.cs to skip File.Copy when source and destination resolve to the same path, and ensure sentinel is written in IOException fallback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…creen When the exe was installed to a different directory (e.g. AppData or a Desktop subfolder), re-running the original exe showed the install screen again because it had no .installed sentinel. Now TryInstall writes an .installed-at redirect marker next to the source exe pointing to the installed copy. On subsequent launches HandleNotInstalledLaunch detects the marker and launches the installed copy directly. Also fixes OnBrowseClicked to skip appending the PaperNexus subfolder when the exe is already in the selected folder, avoiding a confusing parallel copy. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0Keith
added a commit
that referenced
this pull request
Mar 22, 2026
Combines: - fix(install): redirect to installed copy instead of looping (#118) - Bump CommunityToolkit.Mvvm 8.4.0 → 8.4.1 (#114) - Bump Microsoft.Extensions.Hosting 10.0.3 → 10.0.5 (#115) - Bump Microsoft.NET.Test.Sdk 17.13.0 → 18.3.0 (#116) - Bump xunit.runner.visualstudio 3.0.2 → 3.1.5 (#117) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4 tasks
Owner
Author
|
Superseded by #119 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.installedsentinel at the source location). This creates an install loop from the user's perspective.TryInstallnow writes an.installed-atredirect marker next to the source exe containing the installed exe's full path. On subsequent launches,HandleNotInstalledLaunchdetects the marker and launches the installed copy directly — skipping the install screen.OnBrowseClickedno longer appends a redundantPaperNexussubfolder when the exe is already in the selected folder, preventing a confusing parallel copy..installed-atto.gitignore.Test plan
.installed-atis written next to source exe🤖 Generated with Claude Code