YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(installer): force kill screenpipe processes before update
louis0301950d65f4e1bf9e
diff --git a/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json b/screenpipe-app-tauri/src-tauri/tauri.windows.conf.jsonindex 4208ca1c5..2b6f6d235 100644--- a/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json+++ b/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json@@ -4,7 +4,8 @@"nsis": {"headerImage": "assets/nsis-header.bmp","sidebarImage": "assets/nsis-sidebar.bmp",- "installerIcon": "icons/icon.ico"+ "installerIcon": "icons/icon.ico",+ "installerHooks": "windows/hooks.nsh"}},"externalBin": [diff --git a/screenpipe-app-tauri/src-tauri/windows/hooks.nsh b/screenpipe-app-tauri/src-tauri/windows/hooks.nshnew file mode 100644index 000000000..9bf62f3d7--- /dev/null+++ b/screenpipe-app-tauri/src-tauri/windows/hooks.nsh@@ -0,0 +1,7 @@+!macro NSIS_HOOK_PREINSTALL+ ; Kill screenpipe processes before installation+ nsExec::ExecToLog 'taskkill /F /IM screenpipe.exe'+ nsExec::ExecToLog 'taskkill /F /IM screenpipe-app.exe'+ ; Wait a moment for processes to fully terminate and release file handles+ Sleep 1000+!macroend