From 2a3a5622275f8dc669d589625718c8a2a14e75f1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 14 Jan 2025 01:11:53 +0100 Subject: Add missing SetRegView to get access to the 64-bit registry (#2933). Otherwise since Uninstall.exe is 32-bit we get the WOW64 version, which does not contain the DCP-o-matic keys. --- platform/windows/wscript | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/windows/wscript b/platform/windows/wscript index c1d37a414..3071468b2 100644 --- a/platform/windows/wscript +++ b/platform/windows/wscript @@ -503,6 +503,10 @@ RMDir "$INSTDIR" print('Delete "$SMPROGRAMS\\DCP-o-matic 2 debug\\*.*"', file=f) print('RmDir "$SMPROGRAMS\\DCP-o-matic 2 debug"', file=f) + + if bits == 64: + print("SetRegView 64", file=f) + print('DeleteRegKey HKLM "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 debug"', file=f) print('SectionEnd', file=f) else: @@ -513,6 +517,10 @@ RMDir "$INSTDIR" print('Delete "$SMPROGRAMS\\DCP-o-matic 2\\*.*"', file=f) print('RmDir "$SMPROGRAMS\\DCP-o-matic 2"', file=f) + + if bits == 64: + print("SetRegView 64", file=f) + print('DeleteRegKey HKLM "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2"', file=f) print('SectionEnd', file=f) -- cgit v1.2.3