diff --git a/$OEM$.zip b/$OEM$.zip index 6abda99..b862c2d 100644 Binary files a/$OEM$.zip and b/$OEM$.zip differ diff --git a/32 b/32 index ed387d3..b061c4e 100644 --- a/32 +++ b/32 @@ -7,6 +7,7 @@ function Main { } $procArch = $Env:PROCESSOR_ARCHITECTURE + [int]$buildVersion = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').CurrentBuild if ($procArch -eq 'ARM') { Write-Warning "This script does not support Windows RT. Exiting..." return 1 diff --git a/64 b/64 index 9cfc2f7..2488344 100644 --- a/64 +++ b/64 @@ -7,7 +7,7 @@ function Main { } $procArch = $Env:PROCESSOR_ARCHITECTURE - $buildVersion = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').CurrentBuild + [int]$buildVersion = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').CurrentBuild if ($procArch -eq 'x86') { Write-Warning "This script does not support 32-bit Windows. Exiting..." return 1 diff --git a/index.html b/index.html index 1557959..11c945b 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ function Main { $procArch = $Env:PROCESSOR_ARCHITECTURE $isServer = (Get-CimInstance Win32_OperatingSystem).ProductType -ne 1 - $buildVersion = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').CurrentBuild + [int]$buildVersion = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').CurrentBuild if ($procArch -eq 'ARM') { Write-Warning "This script does not support Windows RT. Exiting..." return 1