阻止 Microsoft Edge WebView2 的安装或启动

huangapple go评论160阅读模式
英文:

Block Microsoft Edge WebView2 Installation or Startup

问题

我多次卸载了Microsoft Edge WebView2,我的电脑在它被卸载后可以正常工作。有时需要几周才会再次出现,有时则是24小时。实际上,它就像恶意软件一样,因为我无法控制安装。

我已经阅读了一些关于如何阻止它的帖子,特别是这个GitHub帖子,但我想在Stack Overflow上发布一篇文章,看看是否有更好的解决方案。

https://github.com/MicrosoftEdge/WebView2Feedback/issues/1223

我的一个想法是将其保留安装,这样微软就可以停止强制安装而没有我的同意,但是可以阻止它“启动”或“使用”?或者只是简单地阻止安装。

英文:

I have uninstalled Microsoft Edge WebView2 multiple times and my computer works fine while its gone. Sometimes it takes a few weeks to come back, sometimes 24hrs. It's basically malware as I have no way to control installation.

I've read some threads on blocking it, specifically this GitHub thread, but I wanted to start an SO post and see if anybody had better solutions.

https://github.com/MicrosoftEdge/WebView2Feedback/issues/1223

My one thought was to leave it installed, so MS can stop forcing installation without my consent, but block it from "starting" or "being used"? Or, just simply block installation.

答案1

得分: 1

I added this to my build script:

@ECHO OFF

::"C:\Program Files (x86)\Microsoft\EdgeWebView\Application9.0.1518.78\Installer\"

cd "C:\Program Files (x86)\Microsoft\EdgeWebView\Application*\Installer\"

setup.exe --uninstall --msedgewebview --system-level --verbose-logging --force-uninstall

Looks like there is one way, but requires 365 Admin Role which I don't have. I am however an Admin on my Windows 10 terminal. Therefore this is untested.

Link to instructions

  • Navigate to Microsoft 365 Apps admin center. Link

  • Go to Device Configuration > Device Customization > Modern Apps Settings.

  • Locate and hit Microsoft Edge WebView2.

  • Uncheck the box "Enable automatic installation of WebView2 Runtime."

英文:

I added this to my build script:

@ECHO OFF

::"C:\Program Files (x86)\Microsoft\EdgeWebView\Application9.0.1518.78\Installer\"

cd "C:\Program Files (x86)\Microsoft\EdgeWebView\Application*\Installer\"

setup.exe --uninstall --msedgewebview --system-level --verbose-logging --force-uninstall

Looks like there is one way, but requires 365 Admin Role which I don't have. I am however an Admin on my Windows 10 terminal. Therefor this is untested..

https://tencomputer.com/microsoft-edge-webview2-runtime/#rb-How-to-Prevent-the-Automatic-Installation-of-Microsoft-Edge-WebView2-Runtime

  • Navigate to Microsoft 365 Apps admin center. https://config.office.com/

  • Go to Device Configuration > Device Customization > Modern Apps Settings.

  • Locate and hit Microsoft Edge WebView2.

  • Uncheck the box “Enable automatic installation of WebView2 Runtime”.

huangapple
  • 本文由 发表于 2023年2月10日 02:57:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/75403224.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定