From a00b53a83a615b83c684b66f422d4991605f236b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Mon, 20 May 2024 11:19:02 +0200 Subject: [PATCH] build: remove the autostart link before updating/reinstalling to prevent duplicates --- scripts/package/activitywatch-setup.iss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/package/activitywatch-setup.iss b/scripts/package/activitywatch-setup.iss index dc582e59..6b820172 100644 --- a/scripts/package/activitywatch-setup.iss +++ b/scripts/package/activitywatch-setup.iss @@ -61,3 +61,7 @@ Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChang ; NOTE: Doesn't work? And also discouraged by the docs ;[InstallDelete] ;Type: filesandordirs; Name: "{app}\" + +; Removes the previously installed version before installing the new one +[InstallDelete] +Type: files; Name: "{userstartup}\{#MyAppName}"