英文:
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.
-
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..
-
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”.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论