Add DisplayVersion to Windows uninstaller registry key (#2933).
authorCarl Hetherington <cth@carlh.net>
Sun, 12 Jan 2025 00:51:12 +0000 (01:51 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 14 Jan 2025 22:47:53 +0000 (23:47 +0100)
platform/windows/wscript

index 80382f73da9136ab4b29a35647f694a9f8995380..a7ef24589f64e322a79f52da86cd652b30c4e4d3 100644 (file)
@@ -432,6 +432,7 @@ File "%binaries%/src/tools/dcpomatic2_disk_writer.exe.manifest"
         start_menu_shortcut(f, tool_name(variant, debug, l), 'bin\\dcpomatic2_%s%s' % (s, suffix), variant, debug=True)
     start_menu_shortcut(f, 'Uninstall %s' % long_name_with_debug, 'Uninstall.exe', variant, debug=True)
     print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\%s" "DisplayName" "%s (remove only)"' % (long_name_with_debug, long_name_with_debug), file=f)
+    print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\%s" "DisplayVersion" "%s"' % (long_name_with_debug, dcpomatic_version), file=f)
     print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\%s" "UninstallString" "$INSTDIR\\Uninstall.exe"' % long_name_with_debug, file=f)
 
     print("SectionEnd", file=f)