Fix bug in #39 (#40)

- Closes #39
  - $arch is not set to a value in the script, and it throws an error when the If-Statement is called
    - Fixed by replacing the $arch variable check with a wmic check
This commit is contained in:
Carter 2022-06-29 21:35:33 -05:00 committed by GitHub
parent ebaf52a774
commit 2bc8329f03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1399,7 +1399,7 @@ $WPFFixesUpdate.Add_Click({
Get-BitsTransfer | Remove-BitsTransfer
Write-Host "10) Attempting to install the Windows Update Agent..."
If ($arch -eq 64) {
If (!((wmic OS get OSArchitecture | Out-String).IndexOf("64") -eq -1)) {
wusa Windows8-RT-KB2937636-x64 /quiet
}
else {