Remove context menu and shell entries for Pulsar during uninstallation#1403
Remove context menu and shell entries for Pulsar during uninstallation#1403VeryUsual wants to merge 3 commits intopulsar-edit:masterfrom
Conversation
|
@confused-Techie, could use your help reviewing this one. |
|
Thanks a ton @VeryUsual for your contribution! Sorry it's taken some time to get to reviewing it! Taking a quick look at this one, I'm curious how this has preformed in testing for you, since I have a couple concerns that I'd have to test drive to see how they actually behave.
Again I appreciate your contributions here! Gonna have to test this one out to see what's going on under the hood with these changes. Otherwise as informational fluff, diving into this thought I'd spell out exactly where Pulsar writes to the registry for the purposes of Win10 context menus.
|
|
I've whipped up a quick test installer NSI file to test what's going on here. But considering we are editing a users registry, we should really error on the side of safety, since we would really want to make sure we never cause any issues. The following pattern would likely be our safest and most concise method to delete these values, while making sure to only delete anything that exist. ; Context Menu registry cleanup
ClearErrors
; File Context Menu
Var FileContextMenuRK
StrCpy $FileContextMenuRK "Software\Classes\*\shell\Pulsar\"
ReadRegStr $0 HKCU $FileContextMenuRK ""
${IfNot} ${Errors}
DeleteRegKey HKCU $FileContextMenuRK
${EndIf}
ClearErrorsWhile this might be overkill, feels like the safest method for editing the users system just to ensure nothing ever goes wrong. And sure the variable isn't needed at all, but feels better than having to type it out twice. |
|
Alright, ended up pushing my suggested changes to the PR since editing was enabled, and will test with a built bin once CI is done |
…n uninstall macro
Fixes #274