diff --git a/src/Docusaurus/docs/tools/launch-checks.md b/src/Docusaurus/docs/tools/launch-checks.md new file mode 100644 index 0000000..b3505c0 --- /dev/null +++ b/src/Docusaurus/docs/tools/launch-checks.md @@ -0,0 +1,34 @@ +--- +sidebar_position: 91 +--- + +# How To: Block installation based on OS version + +It is often desirable to block installation of an application on too old Windows versions. The following sample demonstrates how to block installation on Windows versions prior to Windows 10 version 21H1. + +```xml + + + + + = 19044)]]> + +``` + +The sample uses the `SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentBuildNumber` registry key to detect the current Windows version. + + +# How To: Block installation on missing or too old VCREDIST + +It is sometimes desirable to block installation of an application if the Microsoft Visual C++ Redistributable is either missing or too old. The following sample demonstrates how block installation if the Microsoft Visual C++ 2015-2022 (x64) Redistributable is either missing or predates the 17.2 version. + +```xml + + + + + + +``` + +Where `36F68A90-239C-34DF-B58C-64B30153CE35` is the UpgradeCode associated with the Microsoft Visual C++ 2015-2022 (x64) Redistributable.