Add missing SetRegView to get access to the 64-bit registry (#2933).
authorCarl Hetherington <cth@carlh.net>
Tue, 14 Jan 2025 00:11:53 +0000 (01:11 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 14 Jan 2025 22:47:53 +0000 (23:47 +0100)
Otherwise since Uninstall.exe is 32-bit we get the WOW64 version, which
does not contain the DCP-o-matic keys.

platform/windows/wscript

index c1d37a414ea28ac42055b12898fe21110a5e4591..3071468b21ffd62c6cdc0e7ecf3bc0762e13c2f4 100644 (file)
@@ -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)