diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-14 01:11:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-14 23:47:53 +0100 |
| commit | 2a3a5622275f8dc669d589625718c8a2a14e75f1 (patch) | |
| tree | 7062cf125dc2157cc46b57597357193be042e2af | |
| parent | 13cfc02d972b96e1ea101acd7fbfc45344e8b414 (diff) | |
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.
| -rw-r--r-- | platform/windows/wscript | 8 |
1 files changed, 8 insertions, 0 deletions
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) |
