From 6cb4f178280bc7c7bc2b309da353b7f10bbfa227 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 15 Jul 2021 09:35:45 -0700 Subject: [PATCH] NSIS: Add DPI awareness Set `ManifestDPIAware true` in the NSIS installer and uninstaller. Note that this trades a better appearance on HiDPI displays for some oddly-sized controls. --- packaging/nsis/common.nsh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packaging/nsis/common.nsh b/packaging/nsis/common.nsh index 7d58414560..82a7c5d1b1 100644 --- a/packaging/nsis/common.nsh +++ b/packaging/nsis/common.nsh @@ -4,6 +4,15 @@ ; ============================================================================ Unicode true +; This improves the installer's appearance considerably here on a display scaled +; to 225%, but checkboxes are comically small. We might be able to fix this +; using the SysCompImg extension: +; http://forums.winamp.com/showthread.php?t=443754 +ManifestDPIAware true +; These might be correct in the future, but are currently undocumented: +; http://forums.winamp.com/showthread.php?t=452632 +; ManifestDPIAware System +; ManifestDPIAwareness "PerMonitorV2,System" !ifdef NSIS_INCLUDE_DIR !addincludedir ${NSIS_INCLUDE_DIR}