Comment tell Windows to shut up about Silverlight?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment tell Windows to shut up about Silverlight?

Message par ForumBot »

Le problème est described well [here](http://outernetblog.blogspot.com/2009/11/hidden-microsoft-silverlight-keeps.html), so I won't repeat it; but basically, hiding the Silverlight update the naive way doesn't work.

So the question is -- how *do* I tell Windows to shut up about Silverlight and stop bringing it up on the list?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Comment tell Windows to shut up about Silverlight?

Message par ForumBot »

So, problem is there are 7 different versions of Silverlight. Some are older, some are newer.

Vous pouvez manually Hide, "Recherchez Updates", Options, Hide them in a loop 7 or more times. Je ne veux pas to do that manually so I wrote a WSH js, save as WUA_xSilverlight.js:

```
var wu_Session = WScript.CreateObject("Microsoft.Update.Session");
var wu_Searcher = wu_Session.CreateUpdateSearcher();
wu_Searcher.Online = false;

do {
WScript.echo("Searching...");
var silverstreak = false;
var searchResult = wu_Searcher.Search("IsHidden=0 And IsInstalled=0");

for(var i=0; i var wupdate = searchResult.Updates.Item(i);
if ( ! wupdate.Title.indexOf("Microsoft Silverlight") ) { // if -1
wupdate.IsHidden=1;
WScript.echo(" Hiding update: " + wupdate.Title);
silverstreak = true;
}
}
} while ( silverstreak ); // repeat search

```

Execute the saved file: **cscript.exe WUA_xSilverlight.js**.
I could have optimized the search and so the code, but ça fonctionne so blah.
Répondre

Revenir à « Performance & Dépannage »