From d4e028c9b976cbc5c3321e6a6a92ef60f7566a14 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Thu, 5 Oct 2023 23:08:50 -0700 Subject: [PATCH] fix #1476 installer not remove old installer registry keys --- packaging/windows/shotcut.iss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packaging/windows/shotcut.iss b/packaging/windows/shotcut.iss index db02652bc1..843fe0db38 100644 --- a/packaging/windows/shotcut.iss +++ b/packaging/windows/shotcut.iss @@ -108,3 +108,12 @@ begin WizardForm.ProgressGauge.Left + ((WizardForm.ProgressGauge.Width - CustomStatusLabel.Width) div 2); end; + +procedure CurPageChanged(CurPageID: Integer); +begin + if CurPageID = wpInstalling then + begin; + RegDeleteKeyIncludingSubkeys(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Shotcut'); + RegDeleteKeyIncludingSubkeys(HKEY_LOCAL_MACHINE, 'SOFTWARE\Shotcut'); + end; +end;