fix: always delete auto start registry entry (#13006)

This commit is contained in:
Tony
2025-03-17 19:21:14 +08:00
committed by GitHub
parent a483ba7c27
commit 4062e49914

View File

@@ -839,9 +839,7 @@ Section Uninstall
; This ensures the program does not launch automatically after uninstallation if it exists.
; If it doesn't exist, it does nothing.
; We do this when not updating (to preserve the registry value on updates)
; and when the installation is for the current user only - as it is difficult to delete registry values for other users or for the local machine
${If} $UpdateMode <> 1
${AndIf} "${INSTALLMODE}" == "currentUser"
DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "${PRODUCTNAME}"
${EndIf}