Skip to content

Commit 8b5abbe

Browse files
authored
Added check for Windows 10
1 parent 3f2be44 commit 8b5abbe

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

windows-installer/idt-win-installer.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ if ([Environment]::Is64BitProcess -ne [Environment]::Is64BitOperatingSystem)
99
exit
1010
}
1111

12+
# Check for Windows 10
13+
if ([System.Environment]::OSVersion.Version.Major -ne 10)
14+
{
15+
echo "This installer requires Windows 10."
16+
exit
17+
}
18+
1219
# Running as admin defaults to system32 change to home directory.
1320
cd ~
1421

@@ -119,4 +126,4 @@ if( $EXT_PLUGINS.contains("sdk-gen")) {
119126
$restart = Read-Host "A system restart is required. Would you like to restart now (y/n)? (default is n)"
120127
if($restart -eq "y" -Or $restart -eq "yes") {
121128
Restart-Computer
122-
}
129+
}

0 commit comments

Comments
 (0)