diff --git a/src/content/docs/wix/tools/launch-conditions.md b/src/content/docs/wix/tools/launch-conditions.md new file mode 100644 index 0000000..47e1f24 --- /dev/null +++ b/src/content/docs/wix/tools/launch-conditions.md @@ -0,0 +1,16 @@ +--- +title: Launch conditions +--- + +# How To: Block installation based on OS version + +It's common to want to block installers from running on old versions of Windows. The following sample blocks installation on versions of Windows earlier than Windows 10 version 21H1. You can choose different minimum versions by replacing `19044` with a different version number. + +```xml + + + + +``` + +The sample uses the `SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber` registry key to detect the current Windows version.