mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-04-01 17:12:09 +00:00
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:
parent
4d2364072e
commit
63cf93336c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user