Trigger the possible crash due to lacking .NET Framework ASAP

...simply to waste less time.
This commit is contained in:
Fierelier 2021-10-31 16:58:12 +01:00
parent 10f319e4ba
commit e1b4c84856
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,4 @@
Set userUpdatesToApply = CreateObject("System.Collections.ArrayList")
Set updateSession = CreateObject("Microsoft.Update.Session")
'updateSession.ClientApplicationID = "MSDN Sample Script"
Set updateSearcher = updateSession.CreateUpdateSearcher()
@ -10,7 +11,6 @@ If searchResult.Updates.Count = 0 Then
WScript.Quit
End If
Set userUpdatesToApply = CreateObject("System.Collections.ArrayList")
Do While True
WScript.Echo "List of applicable items on the machine:"
For I = 0 To searchResult.Updates.Count-1