使用.net以编程方式安装Windows Media Player

前端之家收集整理的这篇文章主要介绍了使用.net以编程方式安装Windows Media Player前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
如何使用.net以编程方式安装 Windows Media Player.

Windows媒体播放器不是产品,它是Windows操作系统的功能.如果已经关闭,如何使用.net程序打开.如果需要,还可以安装更高版本(例如,如果Windows媒体播放器9存在并打开……它应该升级到Windows媒体播放器11).所有这些都可以通过编程方式完成.

这样做的所有方法是什么..在Windows版本中 – 例如:xp,Vista,Windows 7等.

解决方法

您可以通过Process.Start执行DISM实用程序

这至少在Windows 7中起作用,如果你打开一个cmd提示符并运行它:

dism /online /enable-feature /featurename:WindowsMediaPlayer

请参阅此处查看完整文章How to disable / enable Windows 7 features from a command line

猜你在找的Windows相关文章