From 70776ba66720d69d70818034a42246dbdb1624d0 Mon Sep 17 00:00:00 2001 From: Eugene Chornyi Date: Wed, 8 Jul 2020 07:58:49 +0200 Subject: [PATCH] Amend 32e501a2 --- development/Win32/packaging/installer/setup/configure.nsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/development/Win32/packaging/installer/setup/configure.nsh b/development/Win32/packaging/installer/setup/configure.nsh index 7a40848796..fac90f5244 100644 --- a/development/Win32/packaging/installer/setup/configure.nsh +++ b/development/Win32/packaging/installer/setup/configure.nsh @@ -64,8 +64,10 @@ Section -InstallData DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}$OldVersionNumber" DeleteRegKey SHCTX "SOFTWARE\${APP_NAME}\$OldVersionNumber" # also delete in the case of an emergency release - DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}$OldVersionNumber1" - DeleteRegKey SHCTX "SOFTWARE\${APP_NAME}\$OldVersionNumber1" + ${For} $7 0 20 + DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}$OldVersionNumber$7" + DeleteRegKey SHCTX "SOFTWARE\${APP_NAME}\$OldVersionNumber$7" + ${Next} ${endif} SectionEnd