From 3c32c260829c818a369f103e02e41520de232231 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Tue, 16 Jul 2024 00:53:31 +0200 Subject: [PATCH] Fix updateSession not being created --- .../data/opus-nt/postSetup/uninstall-pchc.vbs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/[all-nu]/uninstall pc health check/data/opus-nt/postSetup/uninstall-pchc.vbs b/mods/[all-nu]/uninstall pc health check/data/opus-nt/postSetup/uninstall-pchc.vbs index cc5fe2c..a0b75b4 100644 --- a/mods/[all-nu]/uninstall pc health check/data/opus-nt/postSetup/uninstall-pchc.vbs +++ b/mods/[all-nu]/uninstall pc health check/data/opus-nt/postSetup/uninstall-pchc.vbs @@ -1,3 +1,4 @@ +Set updateSession = CreateObject("Microsoft.Update.Session") Set updateSearcher = updateSession.CreateUpdateSearcher() Set searchResult = updateSearcher.Search("Type='Software'") @@ -13,4 +14,4 @@ For I = 0 to searchResult.Updates.Count-1 End If update.IsHidden = true End If -Next \ No newline at end of file +Next