From 20cb95bc272feb9691537bccb46e84e583f5a04a Mon Sep 17 00:00:00 2001 From: Dan Hiorns Date: Mon, 12 Oct 2026 00:26:36 -0600 Subject: [PATCH] Windows installer: refuse Windows 7 and 8 with a clear message (#2310) (#3261) The Rust standard library has needed Windows 10 since 1.78, so on Windows 7 and 8 PhotoCraft fails at launch with "The procedure entry point ProcessPrng could not be located in the dynamic link library bcryptprimitives.dll" (#2310). The MSI installed anyway. It now has a launch condition: a registry search sets WINDOWS10ORLATER from HKLM\...\Windows NT\CurrentVersion\CurrentMajorVersionNumber, which exists only from Windows 10 on (in the 32- and 64-bit views), and without it the installer stops with "PhotoCraft needs Windows 10 or later." Repair and uninstall still run (Installed). MSI's VersionNT isn't used: it has reported both 603 and 1000 on Windows 10. The README's Windows downloads now say Windows 10 or later is required; the portable zip can't check, as Windows rejects the exe before any of its code runs. Co-authored-by: Claude Opus 5.5 --- README.md | 2 ++ packaging/windows/photocraft.en-us.wxl | 1 + packaging/windows/photocraft.wxs | 12 ++++++++++++ 3 files changed, 15 insertions(+) diff --git a/README.md b/README.md index b6e8c5a601..0455744b05 100644 --- a/README.md +++ b/README.md @@ -331,6 +331,8 @@ sha256-verified. Fetch them with `cargo xtask corpus --all` and run the tests wi | arm64 (Snapdragon and other ARM PCs) | `photocraft--windows-arm64.msi` | `photocraft--windows-arm64-portable.zip` | | x86 (32-bit) | `photocraft--windows-x86.msi` | `photocraft--windows-x86-portable.zip` | +Windows 10 or later is required. On Windows 7 and 8 the app can't start (the installer says so). + Installers and executables are code-signed. ### macOS diff --git a/packaging/windows/photocraft.en-us.wxl b/packaging/windows/photocraft.en-us.wxl index faa2835abf..8c14594d13 100644 --- a/packaging/windows/photocraft.en-us.wxl +++ b/packaging/windows/photocraft.en-us.wxl @@ -7,5 +7,6 @@ + diff --git a/packaging/windows/photocraft.wxs b/packaging/windows/photocraft.wxs index 98dc1fdfd3..d0b490950f 100644 --- a/packaging/windows/photocraft.wxs +++ b/packaging/windows/photocraft.wxs @@ -31,6 +31,18 @@ DowngradeErrorMessage="A newer version of PhotoCraft is already installed." /> + + + + + +