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

[core] Windows: Only remove Pulsar/PPM from PATH during uninstall #1183

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

Conversation

confused-Techie
Copy link
Member

@confused-Techie confused-Techie commented Jan 5, 2025

Fixes #1157

When I originally wrote the section of our NSIS that removes Pulsar from the PATH during uninstallation, I was aware that this code would also be run during an upgrade, since the upgrade process uninstalls the old version then installs the new.
But I was under the impression that those steps were linear, running uninstallation steps then running installation steps.

But it seems that isn't the case. Meaning that even though the installation steps would add items to the PATH, our custom uninstallation steps were run afterwards, ultimately removing Pulsar/PPM from the PATH.

Luckily, electron-builder makes it easy to check if we are running an upgrade rather than a full uninstall. Meaning we can check how we are running, and only remove items from the PATH during a complete uninstall.

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.

Windows Installer in update mode does not update path on Windows
1 participant