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

packaging: properly unregister Alloy when uninstalling on Windows #166

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Apr 10, 2024

grafana/agent#6550 fixed an issue where the service settings were not being removed properly, but inadvertedly broke the process of removing the application from the Add/Remove programs list.

Alloy is registered as a program to the 32-bit registry, and so it must be removed from the 32-bit registry and not the 64-bit registry.

Fixes #165.

As a temporary workaround to this bug, users should delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Alloy from the 32-bit registry.

grafana/agent#6550 fixed an issue where the service settings were not
being removed properly, but inadvertedly broke the process of removing
the application from the Add/Remove programs list.

Alloy is registered as a program to the 32-bit registry, and so it must
be removed from the 32-bit registry and not the 64-bit registry.

Fixes #165.

As a temporary workaround to this bug, users should delete
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Alloy from the
32-bit registry.
@rfratto rfratto requested a review from mattdurham April 10, 2024 12:59
@rfratto rfratto added the backport-to-agent PR should be backported to the agent repo. label Apr 12, 2024
@mattdurham
Copy link
Collaborator

This makes sense but its super painful we have to use both registries.

Copy link
Collaborator

@mattdurham mattdurham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@tpaschalis tpaschalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the conflict so we can get this in, enabling auto-merge.

I'll backport this to the agent repo tomorrow.

@tpaschalis tpaschalis enabled auto-merge (squash) April 17, 2024 21:11
@tpaschalis tpaschalis merged commit 3201389 into main Apr 17, 2024
13 checks passed
@tpaschalis tpaschalis deleted the fix-windows-uninstall branch April 17, 2024 21:16
@rfratto rfratto added the backport-to-agent:done PR has been backported to the agent repo and merged. label Apr 24, 2024
hainenber pushed a commit to hainenber/alloy that referenced this pull request May 1, 2024
…afana#166)

grafana/agent#6550 fixed an issue where the service settings were not
being removed properly, but inadvertedly broke the process of removing
the application from the Add/Remove programs list.

Alloy is registered as a program to the 32-bit registry, and so it must
be removed from the 32-bit registry and not the 64-bit registry.

Fixes grafana#165.

As a temporary workaround to this bug, users should delete
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Alloy from the
32-bit registry.

Co-authored-by: Paschalis Tsilias <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport-to-agent:done PR has been backported to the agent repo and merged. backport-to-agent PR should be backported to the agent repo. frozen-due-to-age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After uninstall on Windows Alloy stays present in program list
3 participants