1
0
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:
Daniel García
2025-10-03 17:57:47 +02:00
committed by GitHub
parent a9d7e13db9
commit 97f025c343

View File

@@ -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