This commit is contained in:
Eugene Chornyi 2020-07-08 07:58:49 +02:00
parent 4da3adf84a
commit beb69bcf9a

View File

@ -60,8 +60,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