Skip to content

[New Feature]: Remove Legacy Installer Version for Portable Package #255610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DanTheMan827 opened this issue May 11, 2025 · 2 comments
Open

[New Feature]: Remove Legacy Installer Version for Portable Package #255610

DanTheMan827 opened this issue May 11, 2025 · 2 comments
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Triage This work item needs to be triaged by a member of the core team.

Comments

@DanTheMan827
Copy link
Contributor

Description of the new feature/enhancement

I have an application that ships with both an installer and a portable version. For WinGet distribution, I would prefer to use the portable package as it's a CLI-based tool.

However, if a user previously installed the app via the traditional installer, that version would take priority in the system (e.g., in the PATH), which can lead to confusion or unexpected behavior when the portable version is installed via WinGet.

Proposed technical implementation details (optional)

Add a manifest option that allows a WinGet package to specify that any existing installation of the same application installed with a different installer technology should be uninstalled (or optionally prompted for removal) before or during the installation of the new package.

@DanTheMan827 DanTheMan827 added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label May 11, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label May 11, 2025
@DuckDuckStudio
Copy link
Contributor

DuckDuckStudio commented May 12, 2025

Is it helpful to use UpgradeBehavior: uninstallPreviousfor the portable installer?

@DanTheMan827
Copy link
Contributor Author

I tried using UpgradeBehavior, but it refused because it was a different technology.

I suppose it's really more of a bug with the validation check, but #216705, #213818, and #229556 all had an issue with validation despite the manifest working fine in the Windows Sandbox.

I would have just started with the portable package, but it would've had an issue with the existing installed version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Triage This work item needs to be triaged by a member of the core team.
Projects
None yet
Development

No branches or pull requests

2 participants