mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix: always delete auto start registry entry (#13006)
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user