mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
[PM-2021] Remove startup entry on windows uninstall (#16701)
This commit is contained in:
@@ -7,3 +7,14 @@
|
||||
${endif}
|
||||
${endif}
|
||||
!macroend
|
||||
|
||||
# When the user is uninstalling the app, remove the auto-start registry entries
|
||||
!macro customUnInstall
|
||||
${ifNot} ${isUpdated}
|
||||
DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "electron.app.${PRODUCT_NAME}"
|
||||
DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "electron.app.${PRODUCT_NAME}"
|
||||
|
||||
DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" "electron.app.${PRODUCT_NAME}"
|
||||
DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" "electron.app.${PRODUCT_NAME}"
|
||||
${endIf}
|
||||
!macroend
|
||||
|
||||
Reference in New Issue
Block a user