We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f2be44 commit 8b5abbeCopy full SHA for 8b5abbe
1 file changed
windows-installer/idt-win-installer.ps1
@@ -9,6 +9,13 @@ if ([Environment]::Is64BitProcess -ne [Environment]::Is64BitOperatingSystem)
9
exit
10
}
11
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
+
19
# Running as admin defaults to system32 change to home directory.
20
cd ~
21
@@ -119,4 +126,4 @@ if( $EXT_PLUGINS.contains("sdk-gen")) {
119
126
$restart = Read-Host "A system restart is required. Would you like to restart now (y/n)? (default is n)"
120
127
if($restart -eq "y" -Or $restart -eq "yes") {
121
128
Restart-Computer
122
-}
129
0 commit comments