Skip to content

Commit

Permalink
Better check for windows version number and allow win Home (#169)
Browse files Browse the repository at this point in the history
* Update check-setup-mds.sh

* re-wrote for >=19041

* Allow for windows home

Win Home now works fine and we removed education edition from the installation instructions already.

---------

Co-authored-by: Joel Ostblom <[email protected]>
  • Loading branch information
yuliaUU and joelostblom authored Aug 14, 2024
1 parent afcc933 commit 4ecbbbf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions resources_pages/check-setup-mds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ elif [[ "$OSTYPE" == 'msys' ]]; then
os_edition=$(wmic os get caption | grep Micro | sed 's/\n//g')
echo $os_edition >> check-setup-mds.log
wmic os get osarchitecture | grep bit | sed 's/\n//g' >> check-setup-mds.log
os_version=$(wmic os get version | grep 10 | sed 's/\n//g')
echo $os_version >> check-setup-mds.log
os_version_full=$(wmic os get version | grep -Eo '[0-9]+(\.[0-9]+){2}')
echo $os_version_full >> check-setup-mds.log
file_browser="explorer"

if ! $(grep -iq "22[0-9]|1904[1|2|3|4]" <<< $os_version); then
os_version=${os_version_full%%.*} # Major version (before the first dot)
os_build=${os_version_full##*.} # Build number (after the last dot)
if [[ $os_version -eq 10 && $os_build -lt 19041 ]]; then
echo '' >> check-setup-mds.log
echo "MISSING You need Windows 10 or 11 with build number >= 10.0.19041. Please run Windows update." >> check-setup-mds.log
fi
Expand Down

0 comments on commit 4ecbbbf

Please sign in to comment.