Skip to content
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

feat(uninstaller): remove autostart entry during uninstallation #12643

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

animeshchaudhri
Copy link

Summary

This PR fixes issue #12422 by ensuring that the autostart registry entry at
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
is removed when the application is uninstalled.

Previously, uninstalling an application that was set to autostart via tauri-plugin-autostart would leave behind an invalid registry entry, causing unintended behavior. This PR modifies the uninstallation process to clean up these entries properly.

Related PRs

  • This is similar to the fix implemented in PR #12427 for another registry cleanup issue.

Changes

  • Modify the uninstallation script to check and remove the autostart registry entry.
  • Ensure cleanup happens consistently during uninstallation.

Testing

  • Reproduced the issue by enabling autostart and uninstalling the app.
  • Verified the fix by checking the registry after uninstallation to confirm the entry is removed.

References

Closes #12422.

@animeshchaudhri animeshchaudhri requested a review from a team as a code owner February 7, 2025 10:46
Copy link
Contributor

github-actions bot commented Feb 7, 2025

Package Changes Through 407df75

There are 8 changes which include tauri-cli with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-utils with minor, tauri with minor, @tauri-apps/api with minor, @tauri-apps/cli with minor, tauri-bundler with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.2.0 2.3.0
tauri-utils 2.1.1 2.2.0
tauri-bundler 2.2.3 2.2.4
tauri-runtime 2.3.0 2.4.0
tauri-runtime-wry 2.3.0 2.4.0
tauri-codegen 2.0.4 2.0.5
tauri-macros 2.0.4 2.0.5
tauri-plugin 2.0.4 2.0.5
tauri-build 2.0.5 2.0.6
tauri 2.2.5 2.3.0
@tauri-apps/cli 2.2.7 2.3.0
tauri-cli 2.2.7 2.3.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] Remove invalid autostart during the uninstallation process
1 participant