From 4062e49914e8f8327e0daf1481e62002aef91f18 Mon Sep 17 00:00:00 2001 From: Tony <68118705+Legend-Master@users.noreply.github.com> Date: Mon, 17 Mar 2025 19:21:14 +0800 Subject: [PATCH] fix: always delete auto start registry entry (#13006) --- crates/tauri-bundler/src/bundle/windows/nsis/installer.nsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/tauri-bundler/src/bundle/windows/nsis/installer.nsi b/crates/tauri-bundler/src/bundle/windows/nsis/installer.nsi index 556aed8e6..c960eeb14 100644 --- a/crates/tauri-bundler/src/bundle/windows/nsis/installer.nsi +++ b/crates/tauri-bundler/src/bundle/windows/nsis/installer.nsi @@ -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}