Fix bug in #39

- 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:
Carterpersall 2022-05-18 09:06:15 -05:00
parent 4d2364072e
commit 63cf93336c

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 {