From bf428de31078a73914e955d174844b4395f0bd30 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 11 Jan 2023 23:20:22 +1000 Subject: [PATCH] Fix to ensure Windows uninstaller removes reg entries from the 64 bit registry --- packaging/windows/buildpackage.nsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/windows/buildpackage.nsi b/packaging/windows/buildpackage.nsi index fa5f6c7..67dd433 100644 --- a/packaging/windows/buildpackage.nsi +++ b/packaging/windows/buildpackage.nsi @@ -186,6 +186,10 @@ Function ${UN}Clean Delete $INSTDIR\IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP RMDir /r $INSTDIR\Support + !ifndef USE_PROGRAMFILES32 + SetRegView 64 + !endif + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGING_WINDOWS_REGISTRY_KEY}" DeleteRegKey HKLM "Software\Classes\openra-${MOD_ID}-${TAG}"